Hello community,

here is the log from the commit of package tbb for openSUSE:Factory checked in 
at 2018-01-16 09:31:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tbb (Old)
 and      /work/SRC/openSUSE:Factory/.tbb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tbb"

Tue Jan 16 09:31:53 2018 rev:13 rq:562780 version:2018_20171205

Changes:
--------
--- /work/SRC/openSUSE:Factory/tbb/tbb.changes  2017-12-29 00:01:58.297052469 
+0100
+++ /work/SRC/openSUSE:Factory/.tbb.new/tbb.changes     2018-01-16 
09:31:57.530924772 +0100
@@ -1,0 +2,6 @@
+Mon Jan  8 09:41:48 UTC 2018 - [email protected]
+
+- Add conditions to build with py2 and py3 respectively in order
+  to allow us disable one based on codestream
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tbb.spec ++++++
--- /var/tmp/diff_new_pack.erb941/_old  2018-01-16 09:31:59.078852349 +0100
+++ /var/tmp/diff_new_pack.erb941/_new  2018-01-16 09:31:59.082852162 +0100
@@ -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 @@
 # 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 @@
 
 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 @@
     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 @@
 %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}*


Reply via email to