SHA256
5
0
forked from pool/tbb

Accepting request 562437 from openSUSE:Factory:Staging:O:DVD

- Add conditions to build with py2 and py3 respectively in order
  to allow us disable one based on codestream

OBS-URL: https://build.opensuse.org/request/show/562437
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=43
This commit is contained in:
2018-01-09 08:02:08 +00:00
committed by Git OBS Bridge
parent f5a3326d97
commit 371a6931e6
2 changed files with 25 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 8 09:41:48 UTC 2018 - tchvatal@suse.com
- Add conditions to build with py2 and py3 respectively in order
to allow us disable one based on codestream
-------------------------------------------------------------------
Thu Dec 21 12:20:59 UTC 2017 - idonmez@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package tbb
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,6 +18,8 @@
%define rel_ver 2018_U2
%define so_ver 2
%bcond_without python2
%bcond_without python3
Name: tbb
Version: 2018_20171205
Release: 0
@@ -33,8 +35,12 @@ Patch2: reproducible.patch
# PATCH-FIX-OPENSUSE disable-irml.patch -- Don't try to link to irml
Patch3: disable-irml.patch
BuildRequires: gcc-c++
%if %{with python2}
BuildRequires: python2-devel
%endif
%if %{with python3}
BuildRequires: python3-devel
%endif
BuildRequires: swig >= 3.0.6
%description
@@ -122,13 +128,17 @@ cp -r python python3
export TBBROOT=$PWD
. build/obj_release/tbbvars.sh
%if %{with python2}
pushd python
%python2_build
popd
%endif
%if %{with python3}
pushd python3
%python3_build
popd
%endif
%install
mkdir -p %{buildroot}%{_includedir}
@@ -147,13 +157,17 @@ pushd build/obj_release
done
popd
%if %{with python2}
pushd python
%python2_install
popd
%endif
%if %{with python3}
pushd python3
%python3_install
popd
%endif
%post -n libtbb%{so_ver} -p /sbin/ldconfig
%postun -n libtbb%{so_ver} -p /sbin/ldconfig
@@ -163,11 +177,15 @@ popd
%files -n libtbb%{so_ver}
%{_libdir}/libtbb.so.%{so_ver}*
%if %{with python2}
%files -n python2-%{name}
%{python_sitearch}/*
%endif
%if %{with python3}
%files -n python3-%{name}
%{python3_sitearch}/*
%endif
%files -n libtbbmalloc%{so_ver}
%{_libdir}/libtbbmalloc.so.%{so_ver}*