add access control
This commit is contained in:
parent
71b0a63fef
commit
0bcd54d50d
@ -1,16 +1,19 @@
|
|||||||
%global date 2020.12.18
|
%global date 2020.12.18
|
||||||
Name: opencl-clhpp
|
Name: opencl-clhpp
|
||||||
Version: 2.0.12
|
Version: 2.0.12
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: OpenCL (Open Computing Language) bind cpp header files.
|
Summary: OpenCL (Open Computing Language) bind cpp header files.
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/KhronosGroup/OpenCL-CLHPP
|
URL: https://github.com/KhronosGroup/OpenCL-CLHPP
|
||||||
Source0: https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v%{version}.tar.gz
|
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
|
Source1: https://github.com/KhronosGroup/OpenCL-Headers/archive/v%{date}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ cmake >= 3.14.0
|
BuildRequires: gcc-c++ cmake >= 3.14.0 ocl-icd
|
||||||
|
|
||||||
Provides: bundled(grpc)
|
Provides: bundled(grpc)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
@ -19,13 +22,16 @@ Provides: bundled(grpc)
|
|||||||
tar -zxf %SOURCE1 -C %{_builddir}/OpenCL-CLHPP-%{version}
|
tar -zxf %SOURCE1 -C %{_builddir}/OpenCL-CLHPP-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
ln -s /usr/lib64/libOpenCL.so.1 %{_builddir}/OpenCL-CLHPP-%{version}/libOpenCL.so
|
||||||
|
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DOPENCL_INCLUDE_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/OpenCL-Headers-%{date} \
|
cmake .. -DOPENCL_INCLUDE_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/OpenCL-Headers-%{date} \
|
||||||
-DBUILD_TESTS=OFF \
|
-DOPENCL_LIB_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/ \
|
||||||
-DBUILD_DOCS=OFF \
|
-DBUILD_TESTS=OFF \
|
||||||
-DBUILD_EXAMPLES=OFF
|
-DBUILD_DOCS=ON \
|
||||||
|
-DBUILD_EXAMPLES=ON
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
@ -36,6 +42,9 @@ make install DESTDIR=%{buildroot}
|
|||||||
/usr/local/include/CL/cl2.hpp
|
/usr/local/include/CL/cl2.hpp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-4
|
||||||
|
- Add Access Control
|
||||||
|
|
||||||
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-3
|
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-3
|
||||||
- Add OpenCL-headers files for opencl-clhpp build
|
- Add OpenCL-headers files for opencl-clhpp build
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user