Hello community, here is the log from the commit of package net-snmp for openSUSE:Factory checked in at 2020-12-08 13:24:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/net-snmp (Old) and /work/SRC/openSUSE:Factory/.net-snmp.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "net-snmp" Tue Dec 8 13:24:00 2020 rev:93 rq:853302 version:5.8 Changes: -------- --- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes 2020-07-26 16:17:57.780730796 +0200 +++ /work/SRC/openSUSE:Factory/.net-snmp.new.5913/net-snmp.changes 2020-12-08 13:25:34.158703989 +0100 @@ -1,0 +2,12 @@ +Sun Nov 22 00:19:34 UTC 2020 - Benjamin Greiner <[email protected]> + +- Fix the python subpackage generation + gh#openSUSE/python-rpm-macros#79 + +------------------------------------------------------------------- +Thu Nov 19 18:23:53 UTC 2020 - Benjamin Greiner <[email protected]> + +- Support multiple python 3 flavors in the python subpackage + gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ net-snmp.spec ++++++ --- /var/tmp/diff_new_pack.Z1ZhLT/_old 2020-12-08 13:25:35.058706556 +0100 +++ /var/tmp/diff_new_pack.Z1ZhLT/_new 2020-12-08 13:25:35.062706568 +0100 @@ -80,6 +80,17 @@ BuildRequires: libsensors4-devel %endif +%if 0%{?python38_version_nodots} +# if python multiflavor is in place yet, use it to generate subpackages +%define python_subpackage_only 1 +%python_subpackages +%else +# same "defaults" for all distributions, used in files section +%define python_files() -n python3-%{**} +%define python_sitearch %{python3_sitearch} +%endif + + %description Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6. The suite includes: @@ -177,6 +188,19 @@ %description -n perl-SNMP The Perl5 'SNMP' Extension Module v3.1.0 for the UCD SNMPv3 library. +%if 0%{?python_subpackage_only} +%package -n python-%{name} +Summary: The Python 3 'netsnmp' module for the Net-SNMP +License: BSD-3-Clause AND MIT +Group: Development/Libraries/Python +Requires: %{libname} = %{version} + +%description -n python-%{name} +The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3, +SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the +Net-SNMP toolkit library. + +%else %package -n python2-%{name} Summary: The Python 'netsnmp' module for the Net-SNMP License: BSD-3-Clause AND MIT @@ -201,6 +225,7 @@ The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the Net-SNMP toolkit library. +%endif %prep %setup -q @@ -387,14 +412,14 @@ %{perl_vendorarch}/NetSNMP %{_bindir}/tkmib -%if %{with python2} +%if %{with python2} && ! 0%{?python_subpackage_only} %files -n python2-%{name} %doc README %{python2_sitearch}/* %endif -%files -n python3-%{name} +%files %{python_files %{name}} %doc README -%{python3_sitearch}/* +%{python_sitearch}/* %changelog _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
