diff --git a/opencl-clhpp.spec b/opencl-clhpp.spec index 103fdce..563b186 100644 --- a/opencl-clhpp.spec +++ b/opencl-clhpp.spec @@ -1,31 +1,44 @@ -%global date 2021.11.11 +%global date 2020.12.18 Name: opencl-clhpp Version: 2.0.12 -Release: 2 +Release: 3 Summary: OpenCL (Open Computing Language) bind cpp header files. License: Apache-2.0 URL: https://github.com/KhronosGroup/OpenCL-CLHPP Source0: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v%{version}.tar.gz +Source1: https://github.com/KhronosGroup/OpenCL-Headers/archive/v%{date}.tar.gz BuildArch: noarch +BuildRequires: gcc-c++ cmake >= 3.14.0 +Provides: bundled(grpc) %description %{summary}. %prep %autosetup -n OpenCL-CLHPP-%{version} +tar -zxf %SOURCE1 -C %{_builddir}/OpenCL-CLHPP-%{version} %build -# Nothing to build +rm -rf build +mkdir build +cd build +cmake .. -DOPENCL_INCLUDE_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/OpenCL-Headers-%{date} \ + -DBUILD_TESTS=OFF \ + -DBUILD_DOCS=OFF \ + -DBUILD_EXAMPLES=OFF %install -mkdir -p %{buildroot}%{_includedir}/CL/ -install -p -m 0644 include/CL/* -t %{buildroot}%{_includedir}/CL/ +cd build +make install DESTDIR=%{buildroot} %files -%dir %{_includedir}/CL -%{_includedir}/CL/cl2.hpp +%dir /usr/local/include/CL +/usr/local/include/CL/cl2.hpp %changelog +* Tue Nov 12 2021 yinchangpan - v2.12.0-3 +- Add OpenCL-headers files for opencl-clhpp build + * Tue Nov 12 2021 yinchangpan - v2.12.0-2 - Updata README diff --git a/v2020.12.18.tar.gz b/v2020.12.18.tar.gz new file mode 100644 index 0000000..43d846e Binary files /dev/null and b/v2020.12.18.tar.gz differ