Hello community, here is the log from the commit of package tbb for openSUSE:Factory checked in at 2017-11-10 14:40:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tbb (Old) and /work/SRC/openSUSE:Factory/.tbb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tbb" Fri Nov 10 14:40:39 2017 rev:10 rq:539294 version:2018_20170726 Changes: -------- --- /work/SRC/openSUSE:Factory/tbb/tbb.changes 2017-09-25 13:55:37.574830674 +0200 +++ /work/SRC/openSUSE:Factory/.tbb.new/tbb.changes 2017-11-10 14:41:41.626147888 +0100 @@ -1,0 +2,6 @@ +Wed Nov 1 17:31:14 UTC 2017 - [email protected] + +- Build python2 and python3 bindings +- Do not bundle python bindings with shared library + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tbb.spec ++++++ --- /var/tmp/diff_new_pack.UQVclw/_old 2017-11-10 14:41:42.482116947 +0100 +++ /var/tmp/diff_new_pack.UQVclw/_new 2017-11-10 14:41:42.482116947 +0100 @@ -18,7 +18,6 @@ %define rel_ver 2018 %define so_ver 2 - Name: tbb Version: 2018_20170726 Release: 0 @@ -32,9 +31,9 @@ # PATCH-FIX-OPENSUSE reproducible.patch -- Do not compile build hostname+kernel into binary Patch2: reproducible.patch BuildRequires: gcc-c++ -BuildRequires: python-devel +BuildRequires: python2-devel +BuildRequires: python3-devel BuildRequires: swig >= 3.0.6 -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Threading Building Blocks (TBB) offers a rich and complete approach to @@ -71,6 +70,22 @@ address critical issues in parallel programming: scalability and false sharing. +%package -n python2-%{name} +Summary: Python 2 support for Threading Building Blocks (TBB) +Group: Development/Languages/Python + +%description -n python2-%{name} +This package contains python 2 bindings for Threading Building Blocks +(TBB). + +%package -n python3-%{name} +Summary: Python 3 support for Threading Building Blocks (TBB) +Group: Development/Languages/Python + +%description -n python3-%{name} +This package contains python 2 bindings for Threading Building Blocks +(TBB). + %package devel Summary: Development Files for Threading Building Blocks (TBB) Group: Development/Libraries/C and C++ @@ -100,9 +115,16 @@ ln -s ../build/obj_release/*.so* . popd +cp -r python python3 + export TBBROOT=$PWD +. build/obj_release/tbbvars.sh pushd python -make release +%python2_build +popd + +pushd python3 +%python3_build popd %install @@ -123,9 +145,11 @@ popd pushd python - mkdir -p %{buildroot}%{python_sitelib} - install -m 0644 TBB.py %{buildroot}%{python_sitelib} - install -m 0755 _TBB.so %{buildroot}%{python_sitelib} +%python2_install +popd + +pushd python3 +%python3_install popd %post -n libtbb%{so_ver} -p /sbin/ldconfig @@ -134,17 +158,19 @@ %postun -n libtbbmalloc%{so_ver} -p /sbin/ldconfig %files -n libtbb%{so_ver} -%defattr(-,root,root) %{_libdir}/libtbb.so.%{so_ver}* -%{python_sitelib}/* + +%files -n python2-%{name} +%{python_sitearch}/* + +%files -n python3-%{name} +%{python3_sitearch}/* %files -n libtbbmalloc%{so_ver} -%defattr(-,root,root) %{_libdir}/libtbbmalloc.so.%{so_ver}* %{_libdir}/libtbbmalloc_proxy.so.%{so_ver}* %files devel -%defattr(-,root,root) %doc CHANGES LICENSE index.html %doc doc/Release_Notes.txt doc/html/ %{_includedir}/tbb/
