47 lines
1.3 KiB
RPMSpec
47 lines
1.3 KiB
RPMSpec
%global date 2020.12.18
|
|
Name: opencl-clhpp
|
|
Version: 2.0.12
|
|
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
|
|
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
|
|
cd build
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%files
|
|
%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
|
|
|
|
* Tue Nov 11 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-1
|
|
- Package init
|