Hello community,

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

Package is "libevtx"

Wed May  6 11:05:43 2020 rev:17 rq:800525 version:0~20191221

Changes:
--------
--- /work/SRC/openSUSE:Factory/libevtx/libevtx.changes  2020-04-09 
23:15:11.598235431 +0200
+++ /work/SRC/openSUSE:Factory/.libevtx.new.2738/libevtx.changes        
2020-05-06 11:05:45.855455477 +0200
@@ -1,0 +2,6 @@
+Tue May  5 11:09:56 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Allow distros to disable python2 bindings (bcond_without):
+  Tumbleweed already declares this, as python2 is EOL.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libevtx.spec ++++++
--- /var/tmp/diff_new_pack.Fh6OKq/_old  2020-05-06 11:05:46.615457108 +0200
+++ /var/tmp/diff_new_pack.Fh6OKq/_new  2020-05-06 11:05:46.615457108 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without python2
 Name:           libevtx
 %define lname  libevtx1
 %define timestamp      20191221
@@ -28,7 +29,9 @@
 Source:         
https://github.com/libyal/libevtx/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
 Source2:        Windows_XML_Event_Log_EVTX.pdf
 BuildRequires:  pkg-config
+%if %{with python2}
 BuildRequires:  python-devel
+%endif
 #latest version of these in OBS as of Jan 28, 2016
 BuildRequires:  pkgconfig(libbfio) >= 20160108
 BuildRequires:  pkgconfig(libcdata) >= 20130407
@@ -119,7 +122,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
@@ -149,11 +158,13 @@
 %_libdir/pkgconfig/libevtx.pc
 %_mandir/man3/libevtx.3*
 
+%if %{with python2}
 %files -n python2-%name
 %defattr(-,root,root)
 %doc AUTHORS README
 %license COPYING 
 %python2_sitearch/pyevtx.so
+%endif
 
 %files -n python3-%name
 %defattr(-,root,root)


Reply via email to