Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencl-headers: update to 3.0 #11709

Open
wants to merge 1 commit into
base: 3.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"Signatures": {
"OpenCL-Headers-49f07d3.tar.gz": "71bf87f27a5c4336d2af75bb7b07696380533def5213a93cfdfbf5bfc0f8f70a",
"cl.hpp": "08034743b513512bb6ea3a1e9a59bdf1842d8199fccad73ac1b406a88d60f7e0",
"cl2.hpp": "7c5bce92a5c38480db1f8d929c965378c8448e956b1e3b41d49c57b3cc0398ec"
"OpenCL-Headers-8275634.tar.gz": "56ada4c07e840a8f9f99b14cddaac12bcd67347872ced617eb872b0d34efa7f8",
"OpenCL-CLHPP-v2024.05.08.tar.gz": "22921fd23ca72a21ac5592861d64e7ea53cd8a705fccd73905911f8489519a0b"
}
}
55 changes: 36 additions & 19 deletions SPECS-EXTENDED/opencl-headers/opencl-headers.spec
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
%global commit0 49f07d313344ddb22701847ea5c18cb7db03b0d7

%global commit0 8275634cf9ec31b6484c2e6be756237cb583999d
%global date 20240412
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global cl_hpp_ver 2.0.10
%global cl_hpp_ver 2024.05.08

Name: opencl-headers
Version: 2.2
Release: 7%{?dist}
Version: 3.0
Release: 1%{?dist}
Summary: OpenCL (Open Computing Language) header files

License: MIT
License: Apache-2.0
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
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/2.1/cl.hpp
Source0: https://github.com/KhronosGroup/OpenCL-Headers/archive/%{commit0}/OpenCL-Headers-%{shortcommit0}.tar.gz#/OpenCL-Headers-%{shortcommit0}.tar.gz
Source1: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v%{cl_hpp_ver}/OpenCL-CLHPP-v%{cl_hpp_ver}.tar.gz
#Source2: https://github.com/KhronosGroup/OpenCL-Headers/archive/8275634cf9ec31b6484c2e6be756237cb583999d/OpenCL-Headers-8275634.tar.gz
#Source3: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v2024.05.08.tar.gz

BuildArch: noarch

Expand All @@ -25,7 +27,8 @@ BuildArch: noarch
%prep
%autosetup -n OpenCL-Headers-%{commit0}

cp -p %{SOURCE1} %{SOURCE2} .
tar -xf %{SOURCE1}
cp -p OpenCL-CLHPP-%{cl_hpp_ver}/include/CL/{cl2,opencl}.hpp .

%build
# Nothing to build
Expand All @@ -35,24 +38,37 @@ mkdir -p %{buildroot}%{_includedir}/CL/
install -p -m 0644 *hpp CL/* -t %{buildroot}%{_includedir}/CL/
# We're not interested in Direct3D things
rm -vf %{buildroot}%{_includedir}/CL/cl_{dx9,d3d}*
# Install pkgconfig files
mkdir -p %{buildroot}%{_datadir}/pkgconfig
sed -e 's|@CMAKE_INSTALL_PREFIX@|%{_prefix}|' -e 's|@OPENCL_INCLUDEDIR_PC@|%{_includedir}|' OpenCL-Headers.pc.in > %{buildroot}%{_datadir}/pkgconfig/OpenCL-Headers.pc
sed -e 's|@CMAKE_INSTALL_PREFIX@|%{_prefix}|' -e 's|@OPENCLHPP_INCLUDEDIR_PC@|%{_includedir}|' OpenCL-CLHPP-%{cl_hpp_ver}/OpenCL-CLHPP.pc.in > %{buildroot}%{_datadir}/pkgconfig/OpenCL-CLHPP.pc

%files
%license LICENSE
%dir %{_includedir}/CL
%{_includedir}/CL/opencl.h
%{_includedir}/CL/cl_platform.h
%{_includedir}/CL/cl.h
%{_includedir}/CL/cl_ext.h
%{_includedir}/CL/cl2.hpp
%{_includedir}/CL/cl_egl.h
%{_includedir}/CL/cl_gl.h
%{_includedir}/CL/cl_gl_ext.h
%{_includedir}/CL/cl_ext.h
%{_includedir}/CL/cl_ext_intel.h
%{_includedir}/CL/cl_function_types.h
%{_includedir}/CL/cl_gl_ext.h
%{_includedir}/CL/cl_gl.h
%{_includedir}/CL/cl.h
%{_includedir}/CL/cl_half.h
%{_includedir}/CL/cl_icd.h
%{_includedir}/CL/cl_layer.h
%{_includedir}/CL/cl_platform.h
%{_includedir}/CL/cl_va_api_media_sharing_intel.h
%{_includedir}/CL/cl_version.h
%{_includedir}/CL/cl2.hpp
%{_includedir}/CL/cl.hpp
%{_includedir}/CL/opencl.h
%{_includedir}/CL/opencl.hpp
%{_datadir}/pkgconfig/OpenCL-Headers.pc
%{_datadir}/pkgconfig/OpenCL-CLHPP.pc

%changelog
* Thu Oct 24 2024 Durga Jagadeesh Palli <[email protected]> - 3.0-1
- Update to 3.0
- License verified

* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 2.2-7
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
- Converting the 'Release' tag to the '[number].[distribution]' format.
Expand Down Expand Up @@ -115,3 +131,4 @@ rm -vf %{buildroot}%{_includedir}/CL/cl_{dx9,d3d}*
* Wed Feb 27 2013 Dave Airlie <[email protected]> 1.2-1
- OpenCL header files from Khronos for OpenCL 1.2

## END: Generated by rpmautospec
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15073,8 +15073,8 @@
"type": "other",
"other": {
"name": "opencl-headers",
"version": "2.2",
"downloadUrl": "https://github.com/KhronosGroup/OpenCL-Headers/archive/49f07d313344ddb22701847ea5c18cb7db03b0d7/OpenCL-Headers-49f07d313344ddb22701847ea5c18cb7db03b0d7.tar.gz"
"version": "3.0",
"downloadUrl": "https://github.com/KhronosGroup/OpenCL-Headers/archive/8275634cf9ec31b6484c2e6be756237cb583999d/OpenCL-Headers-8275634.tar.gz"
}
}
},
Expand Down