opencl-headers/opencl-headers.spec
Fabian Deutsch 3347e3d686 Move patch applicaiton into install
This package is a bit special, because we've got no buildroot.
To address this th epatch is applied to the installed header file.
Thus we need to run the patch cmd after the installation.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2014-04-25 12:13:55 +02:00

77 lines
2.0 KiB
RPMSpec

Summary: Khronos OpenCL development headers
Name: opencl-headers
Version: 1.2
Release: 4%{?dist}
License: MIT
URL: http://www.khronos.org/registry/cl/
BuildArch: noarch
Source0: http://www.khronos.org/registry/cl/api/1.2/opencl.h
Source1: http://www.khronos.org/registry/cl/api/1.2/cl_platform.h
Source2: http://www.khronos.org/registry/cl/api/1.2/cl.h
Source3: http://www.khronos.org/registry/cl/api/1.2/cl_ext.h
Source4: http://www.khronos.org/registry/cl/api/1.2/cl_dx9_media_sharing.h
Source5: http://www.khronos.org/registry/cl/api/1.2/cl_d3d10.h
Source6: http://www.khronos.org/registry/cl/api/1.2/cl_d3d11.h
Source7: http://www.khronos.org/registry/cl/api/1.2/cl_gl.h
Source8: http://www.khronos.org/registry/cl/api/1.2/cl_gl_ext.h
Source9: http://www.khronos.org/registry/cl/api/1.2/cl.hpp
Patch0: arm-nosse2.patch
%description
Khronos OpenCL development headers
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_includedir}/CL/
cp \
%{SOURCE0} \
%{SOURCE1} \
%{SOURCE2} \
%{SOURCE3} \
%{SOURCE4} \
%{SOURCE5} \
%{SOURCE6} \
%{SOURCE7} \
%{SOURCE8} \
%{SOURCE9} \
$RPM_BUILD_ROOT%{_includedir}/CL/
patch $RPM_BUILD_ROOT%{_includedir}/CL/cl.hpp %{PATCH0}
%files
%dir %{_includedir}/CL
%{_includedir}/CL/opencl.h
%{_includedir}/CL/cl.h
%{_includedir}/CL/cl_ext.h
%{_includedir}/CL/cl_d3d10.h
%{_includedir}/CL/cl_d3d11.h
%{_includedir}/CL/cl_gl.h
%{_includedir}/CL/cl_gl_ext.h
%{_includedir}/CL/cl_platform.h
%{_includedir}/CL/cl_dx9_media_sharing.h
%{_includedir}/CL/cl.hpp
%changelog
* Fri Apr 25 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 1.2-4
- Add patch for cl.hpp to be usable on arm rhbz#1027199
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Mar 01 2013 Dave Airlie <airlied@redhat.com> 1.2-2
- fix missing dir and remove defattr.
* Wed Feb 27 2013 Dave Airlie <airlied@redhat.com> 1.2-1
- OpenCL header files from Khronos for OpenCL 1.2