-
Notifications
You must be signed in to change notification settings - Fork 183
/
tbb.spec
34 lines (28 loc) · 996 Bytes
/
tbb.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
### RPM external tbb v2021.9.0
## INCLUDE cpp-standard
%define tag %{realversion}
%define branch onetbb_2021
%define github_user oneapi-src
%define github_repo oneTBB
Source: git+https://github.com/%{github_user}/%{github_repo}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{branch}-%{tag}.tgz
Requires: hwloc
BuildRequires: cmake
%prep
%setup -n %{n}-%{realversion}
%build
rm -rf %{_builddir}/build
mkdir %{_builddir}/build
cd %{_builddir}/build
cmake ../%{n}-%{realversion} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_FLAGS="-Wno-error=array-bounds -Wno-error=use-after-free -Wno-error=address -Wno-error=uninitialized -Wno-error=stringop-overflow" \
-DCMAKE_CXX_STANDARD=%{cms_cxx_standard} \
-DCMAKE_INSTALL_PREFIX=%{i} \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_HWLOC_2_5_INCLUDE_PATH=$HWLOC_ROOT/include \
-DCMAKE_HWLOC_2_5_LIBRARY_PATH=$HWLOC_ROOT/lib/libhwloc.so \
-DTBB_CPF=ON
make %{makeprocesses}
%install
cd %{_builddir}/build
make install