Accepting request 562780 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/562780 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tbb?expand=0&rev=13
This commit is contained in:
commit
ec4d5266b0
@ -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
|
Thu Dec 21 12:20:59 UTC 2017 - idonmez@suse.com
|
||||||
|
|
||||||
|
20
tbb.spec
20
tbb.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package tbb
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
%define rel_ver 2018_U2
|
%define rel_ver 2018_U2
|
||||||
%define so_ver 2
|
%define so_ver 2
|
||||||
|
%bcond_without python2
|
||||||
|
%bcond_without python3
|
||||||
Name: tbb
|
Name: tbb
|
||||||
Version: 2018_20171205
|
Version: 2018_20171205
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -33,8 +35,12 @@ Patch2: reproducible.patch
|
|||||||
# PATCH-FIX-OPENSUSE disable-irml.patch -- Don't try to link to irml
|
# PATCH-FIX-OPENSUSE disable-irml.patch -- Don't try to link to irml
|
||||||
Patch3: disable-irml.patch
|
Patch3: disable-irml.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%if %{with python2}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%endif
|
||||||
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
BuildRequires: swig >= 3.0.6
|
BuildRequires: swig >= 3.0.6
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -122,13 +128,17 @@ cp -r python python3
|
|||||||
|
|
||||||
export TBBROOT=$PWD
|
export TBBROOT=$PWD
|
||||||
. build/obj_release/tbbvars.sh
|
. build/obj_release/tbbvars.sh
|
||||||
|
%if %{with python2}
|
||||||
pushd python
|
pushd python
|
||||||
%python2_build
|
%python2_build
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
pushd python3
|
pushd python3
|
||||||
%python3_build
|
%python3_build
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_includedir}
|
mkdir -p %{buildroot}%{_includedir}
|
||||||
@ -147,13 +157,17 @@ pushd build/obj_release
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
pushd python
|
pushd python
|
||||||
%python2_install
|
%python2_install
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
pushd python3
|
pushd python3
|
||||||
%python3_install
|
%python3_install
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n libtbb%{so_ver} -p /sbin/ldconfig
|
%post -n libtbb%{so_ver} -p /sbin/ldconfig
|
||||||
%postun -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}
|
%files -n libtbb%{so_ver}
|
||||||
%{_libdir}/libtbb.so.%{so_ver}*
|
%{_libdir}/libtbb.so.%{so_ver}*
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
%files -n python2-%{name}
|
%files -n python2-%{name}
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n libtbbmalloc%{so_ver}
|
%files -n libtbbmalloc%{so_ver}
|
||||||
%{_libdir}/libtbbmalloc.so.%{so_ver}*
|
%{_libdir}/libtbbmalloc.so.%{so_ver}*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user