17
0

8 Commits

Author SHA256 Message Date
3840a8e88d Accepting request 1295983 from science
- Update to version 2025.07.22
  * Synchronize with OpenCL v3.0.19 specification release.
  * Introduction of `CL_ENABLE_BETA_EXTENSIONS` to guard beta
    features or extensions that can be modified with backward-
    incompatible changes. Previously unguarded extensions are now
    guarded.
- Add remove-opencl-install.patch to only include .cmake files if
  opencl-headers exports theirs.

OBS-URL: https://build.opensuse.org/request/show/1295983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencl-cpp-headers?expand=0&rev=17
2025-07-30 09:42:18 +00:00
Aaron Puchert
9ff88880c5 - Mention patch in change log.
OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=35
2025-07-27 19:36:45 +00:00
Aaron Puchert
8fc7a8acd7 - Update to version 2025.07.22
* Synchronize with OpenCL v3.0.19 specification release.
  * Introduction of `CL_ENABLE_BETA_EXTENSIONS` to guard beta
    features or extensions that can be modified with backward-
    incompatible changes. Previously unguarded extensions are now
    guarded.

OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=34
2025-07-27 19:19:03 +00:00
Aaron Puchert
968c567d5b Accepting request 1241522 from home:VaiTon:branches:science
- Only include .cmake files if opencl-headers exports theirs

OBS-URL: https://build.opensuse.org/request/show/1241522
OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=33
2025-01-30 22:46:03 +00:00
ebecadf295 Accepting request 1240366 from science
OBS-URL: https://build.opensuse.org/request/show/1240366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencl-cpp-headers?expand=0&rev=16
2025-01-27 19:54:17 +00:00
Aaron Puchert
c429bd3d49 Accepting request 1240222 from home:VaiTon:branches:science
- Install pkg-config and CMake files
- Use CMake setup
- Use %autosetup macro

OBS-URL: https://build.opensuse.org/request/show/1240222
OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=31
2025-01-26 13:40:50 +00:00
10fed2cd92 Accepting request 1224323 from science
- Update to version 2024.10.24.
  * Synchronize with OpenCL v3.0.17 specification release.
  * Support for the `cl_khr_external_semaphore_dx_fence` and
    `cl_khr_external_memory_dx` extensions was removed.

OBS-URL: https://build.opensuse.org/request/show/1224323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencl-cpp-headers?expand=0&rev=15
2024-11-15 14:43:35 +00:00
Aaron Puchert
73c7b72cc9 - Update to version 2024.10.24.
* Synchronize with OpenCL v3.0.17 specification release.
  * Support for the `cl_khr_external_semaphore_dx_fence` and
    `cl_khr_external_memory_dx` extensions was removed.

OBS-URL: https://build.opensuse.org/package/show/science/opencl-cpp-headers?expand=0&rev=29
2024-11-15 00:34:58 +00:00
6 changed files with 115 additions and 11 deletions

3
_service Normal file
View File

@@ -0,0 +1,3 @@
<services>
<service name="download_files" mode="manual" />
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1031afde6e9eb042e6fcfbc17078f4b437a7e8d55482a1ca6e0fa762d262a89
size 133002

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Sun Jul 27 19:16:10 UTC 2025 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Update to version 2025.07.22
* Synchronize with OpenCL v3.0.19 specification release.
* Introduction of `CL_ENABLE_BETA_EXTENSIONS` to guard beta
features or extensions that can be modified with backward-
incompatible changes. Previously unguarded extensions are now
guarded.
-------------------------------------------------------------------
Tue Jan 28 23:45:45 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Add remove-opencl-install.patch to only include .cmake files if
opencl-headers exports theirs.
-------------------------------------------------------------------
Wed Jan 22 15:18:48 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Install pkg-config and CMake files
- Use CMake setup
- Use %autosetup macro
-------------------------------------------------------------------
Thu Nov 14 22:31:46 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Update to version 2024.10.24.
* Synchronize with OpenCL v3.0.17 specification release.
* Support for the `cl_khr_external_semaphore_dx_fence` and
`cl_khr_external_memory_dx` extensions was removed.
-------------------------------------------------------------------
Fri May 10 20:08:28 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@@ -1,7 +1,7 @@
#
# spec file for package opencl-cpp-headers
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 Aaron Puchert.
#
# All modifications and additions to the file contributed by third parties
@@ -18,18 +18,31 @@
Name: opencl-cpp-headers
Version: 2024.05.08
Version: 2025.07.22
Release: 0
Summary: OpenCL C++ headers
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://www.khronos.org/registry/OpenCL/
Source: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v%{version}.tar.gz
Source: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%if 0%{?suse_version} <= 1600
Patch1: remove-opencl-install.patch
%endif
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: findutils
BuildRequires: gcc-c++
%if 0%{?suse_version} >= 1600
BuildRequires: pkgconfig
BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(OpenCL-Headers)
%else
BuildRequires: ocl-icd-devel
BuildRequires: opencl-headers
%endif
Requires: opencl-headers
Conflicts: opencl-headers-1_2
BuildArch: noarch
Requires: opencl-headers
%description
OpenCL is a royalty-free standard for cross-platform, parallel programming
@@ -40,19 +53,32 @@ This package provides the official C++ headers for OpenCL, which are wrappers
around the C headers.
%prep
%setup -q -n OpenCL-CLHPP-%{version}
%autosetup -p1 -n OpenCL-CLHPP-%{version}
%build
# Fix line endings
find -type f -exec dos2unix {} \;
find -type f -exec dos2unix {} +
%cmake \
%if 0%{?suse_version} <= 1600
-DOPENCL_INCLUDE_DIR=%{_includedir} \
%endif
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTING=OFF \
%cmake_build
%install
install -d -m 0755 %{buildroot}%{_includedir}/CL
install -p -m 0644 include/CL/* %{buildroot}%{_includedir}/CL
%cmake_install
%files
%dir %{_includedir}/CL
%{_includedir}/CL/cl2.hpp
%{_includedir}/CL/opencl.hpp
%if 0%{?suse_version} > 1600
%{_datadir}/cmake/OpenCLHeadersCpp/
%endif
%{_datadir}/pkgconfig/OpenCL-CLHPP.pc
%changelog

View File

@@ -0,0 +1,44 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 138d3dd..9d6236e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,39 +83,6 @@ install(
DIRECTORY include/CL
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
-export(
- EXPORT OpenCLHeadersCppTargets
- FILE ${PROJECT_BINARY_DIR}/OpenCLHeadersCpp/OpenCLHeadersCppTargets.cmake
- NAMESPACE OpenCL::
-)
-file(
- WRITE ${PROJECT_BINARY_DIR}/OpenCLHeadersCpp/OpenCLHeadersCppConfig.cmake
- "include(\"\${CMAKE_CURRENT_LIST_DIR}/OpenCLHeadersCppTargets.cmake\")"
-)
-
-set(config_package_location ${CMAKE_INSTALL_DATADIR}/cmake/OpenCLHeadersCpp)
-install(
- EXPORT OpenCLHeadersCppTargets
- FILE OpenCLHeadersCppTargets.cmake
- NAMESPACE OpenCL::
- DESTINATION ${config_package_location}
-)
-install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenCLHeadersCpp/OpenCLHeadersCppConfig.cmake
- DESTINATION ${config_package_location}
-)
-
-unset(CMAKE_SIZEOF_VOID_P)
-include(CMakePackageConfigHelpers)
-write_basic_package_version_file(
- ${CMAKE_CURRENT_BINARY_DIR}/OpenCLHeadersCpp/OpenCLHeadersCppConfigVersion.cmake
- VERSION ${PROJECT_VERSION}
- COMPATIBILITY AnyNewerVersion
-)
-install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenCLHeadersCpp/OpenCLHeadersCppConfigVersion.cmake
- DESTINATION ${config_package_location}
-)
set(UNITY_DIR ${PROJECT_SOURCE_DIR}/external/CMock/vendor/unity CACHE PATH "Unity dir")
set(CMOCK_DIR ${PROJECT_SOURCE_DIR}/external/CMock CACHE PATH "CMock dir")

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22921fd23ca72a21ac5592861d64e7ea53cd8a705fccd73905911f8489519a0b
size 124818