Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nftables for openSUSE:Factory checked in at 2024-01-07 21:39:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nftables (Old) and /work/SRC/openSUSE:Factory/.nftables.new.28375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nftables" Sun Jan 7 21:39:05 2024 rev:34 rq:1137257 version:1.0.9 Changes: -------- --- /work/SRC/openSUSE:Factory/nftables/nftables.changes 2024-01-04 15:57:09.279986661 +0100 +++ /work/SRC/openSUSE:Factory/.nftables.new.28375/nftables.changes 2024-01-07 21:39:09.173510476 +0100 @@ -6,0 +7,11 @@ +Wed Jan 3 10:05:39 UTC 2024 - Ben Greiner <[email protected]> + +- Fix the python bindings subpackages + * The PEP517 python build requires setuptools + * Actually use the rpm subpackage definition + * The version is actually python3dist(nftables) = 0.1 + * is noarch and requires libnftables1 through dlopen, tell + rpmlint + * remove unused shebang + +------------------------------------------------------------------- New: ---- nftables.rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nftables.spec ++++++ --- /var/tmp/diff_new_pack.hSeigv/_old 2024-01-07 21:39:10.581561694 +0100 +++ /var/tmp/diff_new_pack.hSeigv/_new 2024-01-07 21:39:10.581561694 +0100 @@ -16,6 +16,11 @@ # +# configure subpackage rewriter for the python3XX-nftables bindings +%define python_subpackage_only 1 +# check py/src/nftable.py:NFTABLES_VERSION +%define pyversion 0.1 + Name: nftables Version: 1.0.9 Release: 0 @@ -28,6 +33,7 @@ Source: http://ftp.netfilter.org/pub/%name/%name-%version.tar.xz Source2: http://ftp.netfilter.org/pub/%name/%name-%version.tar.xz.sig Source3: %name.keyring +Source4: nftables.rpmlintrc BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -79,15 +85,17 @@ %package -n python-nftables Summary: Python bindings for nftables Group: Development/Languages/Python -Conflicts: python3-nftables # uses dlopen Requires: libnftables1 +BuildArch: noarch %description -n python-nftables Python bindings for nftables %prep %autosetup -p1 +# remove unused shebang +sed -i '1{/bin/d}' py/src/nftables.py %build autoreconf -fi @@ -120,7 +128,7 @@ %post -n libnftables1 -p /sbin/ldconfig %postun -n libnftables1 -p /sbin/ldconfig -%files -n nftables +%files %license COPYING %_sysconfdir/nftables/ %_sbindir/nft @@ -131,12 +139,13 @@ %files -n libnftables1 %_libdir/libnftables.so.1* -%files -n nftables-devel +%files devel %_includedir/%name/ %_libdir/libnftables.so %_libdir/pkgconfig/*.pc %_mandir/man3/*.3* -%files %{python_files} -%{python_sitelib}/nftables* +%files %{python_files nftables} +%{python_sitelib}/nftables +%{python_sitelib}/nftables-%{pyversion}.dist-info ++++++ nftables.rpmlintrc ++++++ # dlopen of python package not recognized by rpm requirements generator addFilter("explicit-lib-dependency libnftables1")
