Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opencl-cpp-headers for 
openSUSE:Factory checked in at 2025-01-27 20:54:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opencl-cpp-headers (Old)
 and      /work/SRC/openSUSE:Factory/.opencl-cpp-headers.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opencl-cpp-headers"

Mon Jan 27 20:54:17 2025 rev:16 rq:1240366 version:2024.10.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/opencl-cpp-headers/opencl-cpp-headers.changes    
2024-11-15 15:43:46.515761066 +0100
+++ 
/work/SRC/openSUSE:Factory/.opencl-cpp-headers.new.2316/opencl-cpp-headers.changes
  2025-01-27 20:54:36.317029209 +0100
@@ -1,0 +2,7 @@
+Wed Jan 22 15:18:48 UTC 2025 - Eyad Issa <eyadlore...@gmail.com>
+
+- Install pkg-config and CMake files
+- Use CMake setup
+- Use %autosetup macro 
+
+-------------------------------------------------------------------

Old:
----
  v2024.10.24.tar.gz

New:
----
  _service
  opencl-cpp-headers-2024.10.24.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opencl-cpp-headers.spec ++++++
--- /var/tmp/diff_new_pack.Y3VEJW/_old  2025-01-27 20:54:37.109061853 +0100
+++ /var/tmp/diff_new_pack.Y3VEJW/_new  2025-01-27 20:54:37.109061853 +0100
@@ -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
@@ -24,12 +24,22 @@
 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
+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,18 +50,23 @@
 around the C headers.
 
 %prep
-%setup -q -n OpenCL-CLHPP-%{version}
+%autosetup -n OpenCL-CLHPP-%{version}
 
 %build
 # Fix line endings
 find -type f -exec dos2unix {} \;
 
+%cmake -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
+%{_datadir}/cmake/OpenCLHeadersCpp/
+%{_datadir}/pkgconfig/OpenCL-CLHPP.pc
 

++++++ _service ++++++
<services>
    <service name="download_files" mode="manual" />
</services>

Reply via email to