SHA256
1
0
forked from pool/net-snmp

Accepting request 853302 from network:utilities

OBS-URL: https://build.opensuse.org/request/show/853302
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/net-snmp?expand=0&rev=93
This commit is contained in:
Dominique Leuenberger 2020-12-08 12:24:00 +00:00 committed by Git OBS Bridge
commit 0312fcb71a
2 changed files with 40 additions and 3 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun Nov 22 00:19:34 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Fix the python subpackage generation
gh#openSUSE/python-rpm-macros#79
-------------------------------------------------------------------
Thu Nov 19 18:23:53 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Support multiple python 3 flavors in the python subpackage
gh#openSUSE/python-rpm-macros#66
-------------------------------------------------------------------
Mon Jun 29 17:20:01 UTC 2020 - Alexander van Kaam <alexvkaam@gmail.com>

View File

@ -80,6 +80,17 @@ Requires(post): %fillup_prereq
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 @@ Requires: perl-base = %{perl_version}
%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 @@ Requires: %{libname} = %{version}
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 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{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