Hello community,

here is the log from the commit of package evemu for openSUSE:Factory checked 
in at 2020-05-05 19:08:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evemu (Old)
 and      /work/SRC/openSUSE:Factory/.evemu.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evemu"

Tue May  5 19:08:32 2020 rev:5 rq:800430 version:2.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/evemu/evemu.changes      2020-05-04 
18:43:23.769407236 +0200
+++ /work/SRC/openSUSE:Factory/.evemu.new.2738/evemu.changes    2020-05-05 
19:08:52.463120124 +0200
@@ -1,0 +2,6 @@
+Tue May  5 10:55:57 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Let distros decide if they still want to build python2 bindings
+  (bcond_without python2). Tumbleweed disables this by now.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ evemu.spec ++++++
--- /var/tmp/diff_new_pack.FSiZ6P/_old  2020-05-05 19:08:53.919123141 +0200
+++ /var/tmp/diff_new_pack.FSiZ6P/_new  2020-05-05 19:08:53.923123149 +0200
@@ -16,6 +16,9 @@
 #
 
 
+# Let the distro decide if py2 support is still valid. TW disables it
+%bcond_without python2
+
 %define soname  libevemu
 %define sover   3
 Name:           evemu
@@ -32,7 +35,9 @@
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
+%if %{with python2}
 BuildRequires:  python2-devel
+%endif
 BuildRequires:  python3-devel
 BuildRequires:  xmlto
 BuildRequires:  pkgconfig(libevdev) >= 1.2.99.902
@@ -103,7 +108,11 @@
 
 %build
 %global _configure ../configure
-for py in python2 python3; do
+%if  %{with python2}
+PYTHONS=python2
+%endif
+PYTHONS="$PYTHONS python3"
+for py in $PYTHONS; do
     export PYTHON=$py
     mkdir -p build-$py
     pushd build-$py
@@ -116,7 +125,9 @@
 done
 
 %install
+%if %{with python2}
 %make_install -C build-python2
+%endif
 %make_install -C build-python3
 
 find %{buildroot} -type f -name "*.la" -delete -print
@@ -127,7 +138,9 @@
 
 %fdupes %{buildroot}%{_bindir}/
 %fdupes %{buildroot}%{_mandir}/
+%if %{with python2}
 %fdupes %{buildroot}%{python2_sitelib}
+%endif
 
 %post -n %{soname}%{sover} -p /sbin/ldconfig
 
@@ -142,9 +155,11 @@
 %license COPYING
 %{_libdir}/%{soname}.so.%{sover}*
 
+%if %{with python2}
 %files -n python2-%{name}
 %license COPYING
 %{python2_sitelib}/%{name}/
+%endif
 
 %files -n python3-%{name}
 %license COPYING



Reply via email to