Hello community,

here is the log from the commit of package libolecf for openSUSE:Factory 
checked in at 2020-05-06 11:05:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libolecf (Old)
 and      /work/SRC/openSUSE:Factory/.libolecf.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libolecf"

Wed May  6 11:05:35 2020 rev:13 rq:800523 version:0~20191221

Changes:
--------
--- /work/SRC/openSUSE:Factory/libolecf/libolecf.changes        2020-04-15 
19:55:43.205632133 +0200
+++ /work/SRC/openSUSE:Factory/.libolecf.new.2738/libolecf.changes      
2020-05-06 11:05:36.859436167 +0200
@@ -1,0 +2,6 @@
+Tue May  5 11:19:09 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Allow distros to disable python2 builds (bcond_withou python2):
+  Tumbleweed already declares this, as python2 is EOL.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libolecf.spec ++++++
--- /var/tmp/diff_new_pack.8MDEF0/_old  2020-05-06 11:05:37.599437755 +0200
+++ /var/tmp/diff_new_pack.8MDEF0/_new  2020-05-06 11:05:37.603437764 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without python2
 Name:           libolecf
 %define lname  libolecf1
 %define timestamp      20191221
@@ -111,7 +112,13 @@
 cp "%SOURCE2" .
 
 %build
-%configure --disable-static --enable-wide-character-type --enable-python2 
--enable-python3
+%configure \
+    --disable-static \
+    --enable-wide-character-type \
+%if %{with python2}
+    --enable-python2 \
+%endif
+    --enable-python3
 make %{?_smp_mflags}
 
 %install
@@ -141,11 +148,13 @@
 %_libdir/pkgconfig/libolecf.pc
 %_mandir/man3/libolecf.3*
 
+%if %{with python2}
 %files -n python2-%name
 %defattr(-,root,root)
 %doc AUTHORS README
 %license COPYING 
 %python2_sitearch/pyolecf.so
+%endif
 
 %files -n python3-%name
 %defattr(-,root,root)


Reply via email to