## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global commit0 5907ac1114079de4383cecddf1c8640e3f52f92b %global date 20241023 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: OpenCL-ICD-Loader Version: 3.0.6 Release: %autorelease -s %{date}git%{shortcommit0} Summary: Khronos official OpenCL ICD Loader License: Apache-2.0 URL: https://github.com/KhronosGroup/OpenCL-ICD-Loader Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: opencl-headers Conflicts: ocl-icd %description %{summary}. %package devel Summary: Development files for Khronos official OpenCL ICD Loader Requires: %{name} = %{version}-%{release} Conflicts: ocl-icd-devel %description devel %{summary} %prep %autosetup -n %{name}-%{commit0} %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DOPENCL_ICD_LOADER_HEADERS_DIR="/usr/include/" %cmake_build %install %cmake_install %files %license LICENSE %{_libdir}/libOpenCL.so.1{,.*} %files devel %{_bindir}/cllayerinfo %{_libdir}/libOpenCL.so %{_libdir}/pkgconfig/OpenCL.pc %{_datadir}/cmake/OpenCLICDLoader/OpenCLICDLoader*.cmake %changelog ## START: Generated by rpmautospec * Thu Dec 05 2024 FrantiĊĦek Zatloukal - 3.0.6-1.20241023git5907ac1 - Init (RHBZ#2330385) ## END: Generated by rpmautospec