44 lines
1.2 KiB
RPMSpec
44 lines
1.2 KiB
RPMSpec
%global commit0 49f07d313344ddb22701847ea5c18cb7db03b0d7
|
|
%global date 20190205
|
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
|
Name: opencl-headers
|
|
Version: 2.2
|
|
Release: 6%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist}
|
|
Summary: OpenCL (Open Computing Language) header files
|
|
|
|
License: MIT
|
|
URL: https://www.khronos.org/registry/cl/
|
|
|
|
Source0: https://github.com/KhronosGroup/OpenCL-Headers/archive/%{commit0}/OpenCL-Headers-%{commit0}.tar.gz#/OpenCL-Headers-%{shortcommit0}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -n OpenCL-Headers-%{commit0}
|
|
|
|
%build
|
|
# Nothing to build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_includedir}/CL/
|
|
install -p -m 0644 CL/* -t %{buildroot}%{_includedir}/CL/
|
|
# We're not interested in Direct3D things
|
|
rm -vf %{buildroot}%{_includedir}/CL/cl_{dx9,d3d}*
|
|
|
|
%files
|
|
%dir %{_includedir}/CL
|
|
%{_includedir}/CL/opencl.h
|
|
%{_includedir}/CL/cl_platform.h
|
|
%{_includedir}/CL/cl.h
|
|
%{_includedir}/CL/cl_ext.h
|
|
%{_includedir}/CL/cl_egl.h
|
|
%{_includedir}/CL/cl_gl.h
|
|
%{_includedir}/CL/cl_gl_ext.h
|
|
%{_includedir}/CL/cl_ext_intel.h
|
|
%{_includedir}/CL/cl_va_api_media_sharing_intel.h
|
|
%{_includedir}/CL/cl_version.h
|