Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libsmdev for openSUSE:Factory checked in at 2022-01-24 23:10:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libsmdev (Old) and /work/SRC/openSUSE:Factory/.libsmdev.new.1938 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libsmdev" Mon Jan 24 23:10:06 2022 rev:13 rq:948392 version:20210418 Changes: -------- --- /work/SRC/openSUSE:Factory/libsmdev/libsmdev.changes 2021-06-11 00:18:39.601315487 +0200 +++ /work/SRC/openSUSE:Factory/.libsmdev.new.1938/libsmdev.changes 2022-01-24 23:10:41.150474262 +0100 @@ -1,0 +2,5 @@ +Mon Jan 24 10:41:51 UTC 2022 - Jan Engelhardt <jeng...@inai.de> + +- Enable multipython builds. (This reenables Python2 on Leap 15.) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libsmdev.spec ++++++ --- /var/tmp/diff_new_pack.bYaAT1/_old 2022-01-24 23:10:41.746470188 +0100 +++ /var/tmp/diff_new_pack.bYaAT1/_new 2022-01-24 23:10:41.750470161 +0100 @@ -1,7 +1,7 @@ # # spec file for package libsmdev # -# 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 @@ -26,10 +26,12 @@ URL: https://github.com/libyal/libsmdev Source: %name-%version.tar.xz 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(libcdata) >= 20200509 BuildRequires: pkgconfig(libcerror) >= 20201121 BuildRequires: pkgconfig(libcfile) >= 20201229 @@ -37,7 +39,7 @@ BuildRequires: pkgconfig(libcnotify) >= 20200913 BuildRequires: pkgconfig(libcthreads) >= 20200508 BuildRequires: pkgconfig(libuna) >= 20201204 -BuildRequires: pkgconfig(python3) +%python_subpackages %description libsmdev is a library to access and read storage media devices. @@ -69,24 +71,23 @@ can access and read storage media devices and will determine information about such. -%package -n python3-%{name} -Summary: Python bindings for libsmdev -Group: Development/Languages/Python -Provides: pysmdev = %{version} - -%description -n python3-%{name} -Python 3 bindings for libsmdev, which is a library to access and read storage media devices. - %prep %autosetup -p1 %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 +mv %_builddir/rt/* %buildroot/ find %{buildroot} -type f -name "*.la" -delete -print %post -n %{lname} -p /sbin/ldconfig @@ -96,20 +97,20 @@ %license COPYING* %{_libdir}/libsmdev.so.1* -%files devel +%files -n %name-devel %license COPYING* %{_includedir}/libsmdev* %{_libdir}/libsmdev.so %{_libdir}/pkgconfig/libsmdev.pc %{_mandir}/man3/libsmdev.3* -%files tools +%files -n %name-tools %license COPYING* %{_bindir}/smdevinfo %{_mandir}/man1/smdevinfo.1* -%files -n python3-%{name} +%files %python_files %license COPYING* -%{python3_sitearch}/pysmdev.so +%{python_sitearch}/pysmdev.so %changelog