Compare commits
No commits in common. "e9cb7892cd86ff4850ef1437fa59041d421b0c25" and "1ae5fc5a82d79c22ba4665334a51f5a2c4a4c0f1" have entirely different histories.
e9cb7892cd
...
1ae5fc5a82
35
tbb.spec
35
tbb.spec
@ -1,8 +1,6 @@
|
|||||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
|
||||||
|
|
||||||
Name: tbb
|
Name: tbb
|
||||||
Version: 2020.3
|
Version: 2020.3
|
||||||
Release: 5
|
Release: 2
|
||||||
Summary: Threading Building Blocks lets you easily write parallel C++ programs
|
Summary: Threading Building Blocks lets you easily write parallel C++ programs
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://threadingbuildingblocks.org/
|
URL: http://threadingbuildingblocks.org/
|
||||||
@ -48,7 +46,7 @@ TBB module of Python 3
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n oneTBB-%{version} -p1
|
%autosetup -n oneTBB-%{version} -p1
|
||||||
|
|
||||||
sed -i 's/"`hostname -s`" ("`uname -m`"/%{vendor}build (%{_arch}/' \
|
sed -i 's/"`hostname -s`" ("`uname -m`"/openEulerbuild (%{_arch}/' \
|
||||||
build/version_info_linux.sh
|
build/version_info_linux.sh
|
||||||
sed -i 's/-mrtm//' build/linux.gcc.inc
|
sed -i 's/-mrtm//' build/linux.gcc.inc
|
||||||
sed -i 's,env python,python3,' python/TBB.py python/tbb/__*.py
|
sed -i 's,env python,python3,' python/TBB.py python/tbb/__*.py
|
||||||
@ -56,8 +54,8 @@ sed -i '/^#!/d' python/tbb/{pool,test}.py
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build tbb_build_prefix=obj stdver=c++14 \
|
%make_build tbb_build_prefix=obj stdver=c++14 \
|
||||||
CXXFLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD -fstack-protector-strong" \
|
CXXFLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
|
||||||
LDFLAGS="$RPM_LD_FLAGS -lpthread -fstack-protector-strong"
|
LDFLAGS="$RPM_LD_FLAGS -lpthread"
|
||||||
%define pcsource {%{SOURCE6} %{SOURCE7} %{SOURCE8}}
|
%define pcsource {%{SOURCE6} %{SOURCE7} %{SOURCE8}}
|
||||||
for pcfile in %{pcsource}; do
|
for pcfile in %{pcsource}; do
|
||||||
base=$(basename ${pcfile})
|
base=$(basename ${pcfile})
|
||||||
@ -68,12 +66,12 @@ done
|
|||||||
. build/obj_release/tbbvars.sh
|
. build/obj_release/tbbvars.sh
|
||||||
pushd python
|
pushd python
|
||||||
%make_build -C rml stdver=c++14 \
|
%make_build -C rml stdver=c++14 \
|
||||||
CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD -fstack-protector-strong" \
|
CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
|
||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
LDFLAGS="$RPM_LD_FLAGS -lpthread -fstack-protector-strong -latomic"
|
LDFLAGS="$RPM_LD_FLAGS -lpthread -latomic"
|
||||||
%else
|
%else
|
||||||
LDFLAGS="$RPM_LD_FLAGS -lpthread -fstack-protector-strong"
|
LDFLAGS="$RPM_LD_FLAGS -lpthread"
|
||||||
%endif
|
%endif
|
||||||
cp -p rml/libirml.so* .
|
cp -p rml/libirml.so* .
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
@ -81,7 +79,7 @@ popd
|
|||||||
make doxygen
|
make doxygen
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test %{?_smp_mflags} tbb_build_prefix=obj stdver=c++14 CXXFLAGS="$RPM_OPT_FLAGS"
|
make test tbb_build_prefix=obj stdver=c++14 CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_libdir}
|
mkdir -p %{buildroot}/%{_libdir}
|
||||||
@ -149,18 +147,9 @@ rm %{buildroot}%{_libdir}/cmake/tbb/README.rst
|
|||||||
%{python3_sitearch}/__pycache__/TBB*
|
%{python3_sitearch}/__pycache__/TBB*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Nov 17 2022 liyanan <liyanan32@h-partners.com> - 2020.3-5
|
* Wed Nov 11 2020 yangyanchao <yangyanchao6@huawei.com> - 2020.3-2
|
||||||
- Replace openEuler with vendor
|
|
||||||
|
|
||||||
* Fri Jul 2 2021 Hugel <genqihu1@huawei.com> - 2020.3-4
|
|
||||||
- Add multiple threads to make test
|
|
||||||
|
|
||||||
* Wed Apr 14 2021 yangyanchao <yangyanchao6@huawei.com> - 2020.3-3
|
|
||||||
- Link to libatomic in riscv
|
- Link to libatomic in riscv
|
||||||
|
|
||||||
* Sat Mar 20 2021 shenyangyang <shenyangyang4@huawei.com> - 2020.3-2
|
|
||||||
- Add -fstack-protector-strong for so file
|
|
||||||
|
|
||||||
* Fri Jul 24 2020 shixuantong <shixuantong@huawei.com> - 2020.3-1
|
* Fri Jul 24 2020 shixuantong <shixuantong@huawei.com> - 2020.3-1
|
||||||
- update to 2020.3-1
|
- update to 2020.3-1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user