2016-08-31 08:29:37 +00:00
|
|
|
%global commit 8e196ba99632fc43998cf17cce87282c250d9177
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global cl_hpp_ver 2.0.10
|
2014-04-25 08:00:21 +00:00
|
|
|
|
2016-08-31 08:29:37 +00:00
|
|
|
Name: opencl-headers
|
|
|
|
Version: 2.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: OpenCL (Open Computing Language) header files
|
2013-02-27 23:58:36 +00:00
|
|
|
|
2016-08-31 08:29:37 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://www.khronos.org/registry/cl/
|
2014-04-25 08:00:21 +00:00
|
|
|
|
2016-08-31 08:29:37 +00:00
|
|
|
Source0: https://github.com/KhronosGroup/OpenCL-Headers/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
|
Source1: https://github.com/KhronosGroup/OpenCL-CLHPP/releases/download/v%{cl_hpp_ver}/cl2.hpp
|
|
|
|
# OCL 1.2 compatibility
|
|
|
|
Source2: https://www.khronos.org/registry/cl/api/%{version}/cl.hpp
|
2014-04-25 08:00:21 +00:00
|
|
|
|
2016-08-31 08:29:37 +00:00
|
|
|
BuildArch: noarch
|
2013-02-27 23:58:36 +00:00
|
|
|
|
2016-08-31 08:29:37 +00:00
|
|
|
%description
|
|
|
|
%{summary}.
|
2014-04-25 08:00:21 +00:00
|
|
|
|
2013-02-27 23:58:36 +00:00
|
|
|
%prep
|
2016-08-31 08:29:37 +00:00
|
|
|
%autosetup -n OpenCL-Headers-%{commit}
|
|
|
|
cp -p %{SOURCE1} %{SOURCE2} .
|
|
|
|
# We're not interested in Direct3D things
|
|
|
|
rm -vf cl_dx9_media_sharing.h cl_d3d10.h cl_d3d11.h
|
2013-02-27 23:58:36 +00:00
|
|
|
|
|
|
|
%build
|
2016-08-31 08:29:37 +00:00
|
|
|
# Nothing to build
|
2014-04-25 08:00:21 +00:00
|
|
|
|
2013-02-27 23:58:36 +00:00
|
|
|
%install
|
2016-08-31 08:29:37 +00:00
|
|
|
mkdir -p %{buildroot}%{_includedir}/CL/
|
|
|
|
install -p -m 0644 * -t %{buildroot}%{_includedir}/CL/
|
2014-04-25 09:42:46 +00:00
|
|
|
|
2013-02-27 23:58:36 +00:00
|
|
|
%files
|
2013-02-28 23:23:49 +00:00
|
|
|
%dir %{_includedir}/CL
|
2013-02-27 23:58:36 +00:00
|
|
|
%{_includedir}/CL/opencl.h
|
2016-08-31 08:29:37 +00:00
|
|
|
%{_includedir}/CL/cl_platform.h
|
2013-02-27 23:58:36 +00:00
|
|
|
%{_includedir}/CL/cl.h
|
|
|
|
%{_includedir}/CL/cl_ext.h
|
2016-08-31 08:29:37 +00:00
|
|
|
%{_includedir}/CL/cl_egl.h
|
2013-02-27 23:58:36 +00:00
|
|
|
%{_includedir}/CL/cl_gl.h
|
|
|
|
%{_includedir}/CL/cl_gl_ext.h
|
2016-08-31 08:29:37 +00:00
|
|
|
%{_includedir}/CL/cl2.hpp
|
2013-02-27 23:58:36 +00:00
|
|
|
%{_includedir}/CL/cl.hpp
|
|
|
|
|
|
|
|
%changelog
|
2016-08-31 08:29:37 +00:00
|
|
|
* Wed Aug 31 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.1-1
|
|
|
|
- Update to 2.1
|
|
|
|
|
2016-02-04 11:25:15 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-18 02:55:09 +00:00
|
|
|
* Sun Jan 17 2016 Dave Airlie <airlied@redhat.com> - 1.2-8
|
|
|
|
- add cl_egl.h
|
|
|
|
|
2015-06-17 23:54:35 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-07 16:31:03 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-25 14:30:16 +00:00
|
|
|
* Fri Apr 25 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 1.2-5
|
|
|
|
- Pull patch application into pre
|
|
|
|
|
2014-04-25 08:00:21 +00:00
|
|
|
* Fri Apr 25 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 1.2-4
|
|
|
|
- Add patch for cl.hpp to be usable on arm rhbz#1027199
|
|
|
|
|
2013-08-03 15:32:05 +00:00
|
|
|
* 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
|
|
|
|
|
2013-02-28 23:23:49 +00:00
|
|
|
* Fri Mar 01 2013 Dave Airlie <airlied@redhat.com> 1.2-2
|
|
|
|
- fix missing dir and remove defattr.
|
|
|
|
|
2013-02-27 23:58:36 +00:00
|
|
|
* Wed Feb 27 2013 Dave Airlie <airlied@redhat.com> 1.2-1
|
|
|
|
- OpenCL header files from Khronos for OpenCL 1.2
|
|
|
|
|