forked from pool/opencl-cpp-headers
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e4895608cb | |||
|
|
05f5a0ef90 | ||
| 6c2ddb149f | |||
|
|
f271fcd374 |
3
opencl-cpp-headers-2024.10.24.tar.gz
Normal file
3
opencl-cpp-headers-2024.10.24.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:51aebe848514b3bc74101036e111f8ee98703649eec7035944831dc6e05cec14
|
||||||
|
size 132695
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c1031afde6e9eb042e6fcfbc17078f4b437a7e8d55482a1ca6e0fa762d262a89
|
|
||||||
size 133002
|
|
||||||
@@ -1,19 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
Wed Jan 22 15:18:48 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -18,16 +18,13 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: opencl-cpp-headers
|
Name: opencl-cpp-headers
|
||||||
Version: 2025.07.22
|
Version: 2024.10.24
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: OpenCL C++ headers
|
Summary: OpenCL C++ headers
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://www.khronos.org/registry/OpenCL/
|
URL: https://www.khronos.org/registry/OpenCL/
|
||||||
Source: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v%{version}.tar.gz#/%{name}-%{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: cmake
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
@@ -53,19 +50,13 @@ This package provides the official C++ headers for OpenCL, which are wrappers
|
|||||||
around the C headers.
|
around the C headers.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n OpenCL-CLHPP-%{version}
|
%autosetup -n OpenCL-CLHPP-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Fix line endings
|
# Fix line endings
|
||||||
find -type f -exec dos2unix {} +
|
find -type f -exec dos2unix {} \;
|
||||||
|
|
||||||
%cmake \
|
%cmake -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF
|
||||||
%if 0%{?suse_version} <= 1600
|
|
||||||
-DOPENCL_INCLUDE_DIR=%{_includedir} \
|
|
||||||
%endif
|
|
||||||
-DBUILD_DOCS=OFF \
|
|
||||||
-DBUILD_EXAMPLES=OFF \
|
|
||||||
-DBUILD_TESTING=OFF \
|
|
||||||
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
@@ -76,9 +67,7 @@ find -type f -exec dos2unix {} +
|
|||||||
%dir %{_includedir}/CL
|
%dir %{_includedir}/CL
|
||||||
%{_includedir}/CL/cl2.hpp
|
%{_includedir}/CL/cl2.hpp
|
||||||
%{_includedir}/CL/opencl.hpp
|
%{_includedir}/CL/opencl.hpp
|
||||||
%if 0%{?suse_version} > 1600
|
|
||||||
%{_datadir}/cmake/OpenCLHeadersCpp/
|
%{_datadir}/cmake/OpenCLHeadersCpp/
|
||||||
%endif
|
|
||||||
%{_datadir}/pkgconfig/OpenCL-CLHPP.pc
|
%{_datadir}/pkgconfig/OpenCL-CLHPP.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
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")
|
|
||||||
Reference in New Issue
Block a user