!3 Add OpenCL-headers files for opencl-clhpp build

From: @greatpanc
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2021-11-12 09:47:03 +00:00 committed by Gitee
commit 43914005c5
2 changed files with 20 additions and 7 deletions

View File

@ -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 <yinchangpan2@huawei.com> - v2.12.0-3
- Add OpenCL-headers files for opencl-clhpp build
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-2
- Updata README

BIN
v2020.12.18.tar.gz Normal file

Binary file not shown.