Add Make Test Check
This commit is contained in:
parent
e40e0b5be0
commit
72385639f8
@ -1,16 +1,19 @@
|
||||
%global date 2020.12.18
|
||||
Name: opencl-clhpp
|
||||
Version: 2.0.12
|
||||
Release: 4
|
||||
Release: 5
|
||||
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
|
||||
Source2: https://github.com/ThrowTheSwitch/CMock/archive/refs/tags/v2.5.3.tar.gz
|
||||
Source3: https://github.com/ThrowTheSwitch/Unity/archive/refs/tags/v2.5.2.tar.gz
|
||||
Source4: https://github.com/ThrowTheSwitch/CException/archive/refs/tags/v1.3.3.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gcc-c++ cmake >= 3.14.0 ocl-icd
|
||||
BuildRequires: gcc-c++ cmake >= 3.14.0 ocl-icd rubygems ruby python
|
||||
|
||||
Provides: bundled(grpc)
|
||||
|
||||
@ -20,6 +23,12 @@ Provides: bundled(grpc)
|
||||
%prep
|
||||
%autosetup -n OpenCL-CLHPP-%{version}
|
||||
tar -zxf %SOURCE1 -C %{_builddir}/OpenCL-CLHPP-%{version}
|
||||
tar -zxf %SOURCE2 -C %{_builddir}/OpenCL-CLHPP-%{version}/external/
|
||||
tar -zxf %SOURCE3 -C %{_builddir}/OpenCL-CLHPP-%{version}/external/
|
||||
tar -zxf %SOURCE3 -C %{_builddir}/OpenCL-CLHPP-%{version}/external/CMock/vendor/
|
||||
tar -zxf %SOURCE4 -C %{_builddir}/OpenCL-CLHPP-%{version}/external/CMock/vendor/
|
||||
|
||||
mv %{_builddir}/OpenCL-CLHPP-%{version}/external/CMock/vendor/Unity/* %{_builddir}/OpenCL-CLHPP-%{version}/external/CMock/vendor/unity/
|
||||
|
||||
%build
|
||||
ln -s /usr/lib64/libOpenCL.so.1 %{_builddir}/OpenCL-CLHPP-%{version}/libOpenCL.so
|
||||
@ -29,7 +38,7 @@ mkdir build
|
||||
cd build
|
||||
cmake .. -DOPENCL_INCLUDE_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/OpenCL-Headers-%{date} \
|
||||
-DOPENCL_LIB_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/ \
|
||||
-DBUILD_TESTS=OFF \
|
||||
-DBUILD_TESTS=ON \
|
||||
-DBUILD_DOCS=ON \
|
||||
-DBUILD_EXAMPLES=ON
|
||||
|
||||
@ -37,11 +46,18 @@ cmake .. -DOPENCL_INCLUDE_DIR=%{_builddir}/OpenCL-CLHPP-%{version}/OpenCL-Header
|
||||
cd build
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%check
|
||||
cd build
|
||||
make test
|
||||
|
||||
%files
|
||||
%dir /usr/local/include/CL
|
||||
/usr/local/include/CL/cl2.hpp
|
||||
|
||||
%changelog
|
||||
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-5
|
||||
- Add Make Test Check
|
||||
|
||||
* Tue Nov 12 2021 yinchangpan <yinchangpan2@huawei.com> - v2.12.0-4
|
||||
- Add Access Control
|
||||
|
||||
|
||||
BIN
v1.3.3.tar.gz
Normal file
BIN
v1.3.3.tar.gz
Normal file
Binary file not shown.
BIN
v2.5.2.tar.gz
Normal file
BIN
v2.5.2.tar.gz
Normal file
Binary file not shown.
BIN
v2.5.3.tar.gz
Normal file
BIN
v2.5.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user