Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package liblnk for openSUSE:Factory checked 
in at 2022-01-23 12:16:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/liblnk (Old)
 and      /work/SRC/openSUSE:Factory/.liblnk.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "liblnk"

Sun Jan 23 12:16:15 2022 rev:18 rq:948166 version:20210417

Changes:
--------
--- /work/SRC/openSUSE:Factory/liblnk/liblnk.changes    2021-06-27 
19:00:24.916381157 +0200
+++ /work/SRC/openSUSE:Factory/.liblnk.new.1938/liblnk.changes  2022-01-23 
12:17:16.107834146 +0100
@@ -1,0 +2,5 @@
+Sat Jan 22 23:11:20 UTC 2022 - Jan Engelhardt <[email protected]>
+
+- Enable multipython builds. (This reenables python2 on Leap 15)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ liblnk.spec ++++++
--- /var/tmp/diff_new_pack.GAnqw3/_old  2022-01-23 12:17:16.691830243 +0100
+++ /var/tmp/diff_new_pack.GAnqw3/_new  2022-01-23 12:17:16.703830162 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package liblnk
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,10 +27,12 @@
 Source:         %name-%version.tar.xz
 Source2:        Windows_Shortcut_File_LNK_format.pdf
 Patch1:         system-libs.patch
+BuildRequires:  %{python_module devel}
 BuildRequires:  c_compiler
 BuildRequires:  gettext-tools >= 0.18.1
 BuildRequires:  libtool
 BuildRequires:  pkg-config
+BuildRequires:  python-rpm-macros
 BuildRequires:  pkgconfig(libbfio) >= 20201229
 BuildRequires:  pkgconfig(libcdata) >= 20200509
 BuildRequires:  pkgconfig(libcerror) >= 20201121
@@ -46,7 +48,7 @@
 BuildRequires:  pkgconfig(libfwps) >= 20191221
 BuildRequires:  pkgconfig(libfwsi) >= 20210419
 BuildRequires:  pkgconfig(libuna) >= 20201204
-BuildRequires:  pkgconfig(python3)
+%python_subpackages
 
 %description
 liblnk is a library and tools to access Windows Shortcut File (LNK) format 
files.
@@ -79,30 +81,24 @@
 This subpackage contains libraries and header files for developing
 applications that want to make use of %name.
 
-%package -n python3-%name
-Summary:        Python bindings for liblnk, a Windows Shortcut Link parser
-License:        LGPL-3.0-or-later
-Group:          Development/Libraries/Python
-Requires:       %lname = %version
-
-%description -n python3-%name
-Python3 binding for liblnk, which can read Windows Shortcut Link files.
-
 %prep
 %autosetup -p1
 cp "%SOURCE2" .
 
 %build
-if [ ! -e configure ]; then ./autogen.sh; fi
-%configure \
-    --disable-static \
-    --enable-wide-character-type \
-    --enable-python3
+autoreconf -fi
+# OOT builds are presently broken, so we have to install
+# within each python iteration now, not in %%install.
+%{python_expand #
+%configure --disable-static --enable-wide-character-type --enable-python 
PYTHON_VERSION="%{$python_bin_suffix}"
 %make_build
+%make_install DESTDIR="%_builddir/rt"
+%make_build clean
+}
 
 %install
-%make_install
-find %buildroot -name '*.la' -delete
+mv %_builddir/rt/* %buildroot/
+find %{buildroot} -type f -name "*.la" -delete -print
 
 %post   -n %lname -p /sbin/ldconfig
 %postun -n %lname -p /sbin/ldconfig
@@ -111,11 +107,11 @@
 %license COPYING*
 %_libdir/liblnk.so.*
 
-%files tools
+%files -n %name-tools
 %_bindir/lnk*
 %_mandir/man1/lnkinfo.1*
 
-%files devel
+%files -n %name-devel
 %doc Windows_Shortcut_File_*.pdf
 %_includedir/liblnk.h
 %_includedir/liblnk/
@@ -123,8 +119,8 @@
 %_libdir/pkgconfig/liblnk.pc
 %_mandir/man3/liblnk.3*
 
-%files -n python3-%name
+%files %python_files
 %license COPYING*
-%python3_sitearch/pylnk.so
+%python_sitearch/pylnk.so
 
 %changelog

Reply via email to