Hello community,

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

Package is "libregf"

Wed May  6 11:05:39 2020 rev:18 rq:800524 version:0~20191221

Changes:
--------
--- /work/SRC/openSUSE:Factory/libregf/libregf.changes  2020-04-07 
10:31:20.990500802 +0200
+++ /work/SRC/openSUSE:Factory/.libregf.new.2738/libregf.changes        
2020-05-06 11:05:41.247445585 +0200
@@ -1,0 +2,6 @@
+Tue May  5 11:21:40 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Allow distros to disable python2 build (bcond_without python2):
+  Tumbleweed already declares this, as python2 is EOL.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libregf.spec ++++++
--- /var/tmp/diff_new_pack.yHh6qB/_old  2020-05-06 11:05:42.011447225 +0200
+++ /var/tmp/diff_new_pack.yHh6qB/_new  2020-05-06 11:05:42.015447234 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without python2
 Name:           libregf
 %define lname  libregf1
 %define timestamp      20191221
@@ -28,7 +29,9 @@
 Source:         
https://github.com/libyal/libregf/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
 Source2:        Windows_NT_Registry_File_REGF_format.pdf
 BuildRequires:  pkg-config
+%if %{with python2}
 BuildRequires:  python-devel
+%endif
 BuildRequires:  pkgconfig(fuse) >= 2.6
 BuildRequires:  pkgconfig(libbfio) >= 20131003
 BuildRequires:  pkgconfig(libcdata) >= 20130904
@@ -121,7 +124,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
@@ -151,11 +160,13 @@
 %{_libdir}/pkgconfig/libregf.pc
 %{_mandir}/man3/libregf.3*
 
+%if %{with python2}
 %files -n python2-%{name}
 %defattr(-,root,root)
 %doc AUTHORS README
 %license COPYING
 %{python2_sitearch}/pyregf.so
+%endif
 
 %files -n python3-%{name}
 %defattr(-,root,root)


Reply via email to