Hello community,

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

Package is "libesedb"

Wed May  6 11:05:17 2020 rev:7 rq:800520 version:0~20191220

Changes:
--------
--- /work/SRC/openSUSE:Factory/libesedb/libesedb.changes        2020-04-09 
23:15:05.718232031 +0200
+++ /work/SRC/openSUSE:Factory/.libesedb.new.2738/libesedb.changes      
2020-05-06 11:05:18.735397264 +0200
@@ -1,0 +2,6 @@
+Tue May  5 11:03:08 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Allow distros to decide to no longer build python2 bindings
+  (bcond_without python2). Tumbleweed declares this already.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libesedb.spec ++++++
--- /var/tmp/diff_new_pack.LzXsXC/_old  2020-05-06 11:05:20.007399995 +0200
+++ /var/tmp/diff_new_pack.LzXsXC/_new  2020-05-06 11:05:20.011400003 +0200
@@ -16,6 +16,8 @@
 #
 
 
+%bcond_without python2
+
 %define lname  libesedb1
 %define timestamp 20191220
 Name:           libesedb
@@ -32,7 +34,9 @@
 Source5:        Windows_Search.pdf
 Source6:        libesedb-libfdata.pdf
 BuildRequires:  pkg-config
+%if %{with python2}
 BuildRequires:  python-devel
+%endif
 BuildRequires:  pkgconfig(libbfio) >= 20130721
 BuildRequires:  pkgconfig(libcdata) >= 20140105
 BuildRequires:  pkgconfig(libcerror) >= 20140105
@@ -133,7 +137,13 @@
 cp "%{SOURCE6}" .
 
 %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
@@ -172,11 +182,13 @@
 %{_libdir}/pkgconfig/libesedb.pc
 %{_mandir}/man3/libesedb.3*
 
+%if %{with python2}
 %files -n python2-%{name}
 %defattr(-,root,root)
 %doc AUTHORS README ChangeLog
 %license COPYING 
 %{python2_sitearch}/pyesedb.so
+%endif
 
 %files -n python3-%{name}
 %defattr(-,root,root)


Reply via email to