From b00a4928ce230e2595defb8821212f123014d7f1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 28 2016 11:40:10 +0000 Subject: * Thu Jan 28 2016 Fabian Affolter - 4.3.1-1 - Add py3 support (rhbz#1282245) - Updated to new upstream version 4.3.1 (rhbz#1145004) --- diff --git a/.gitignore b/.gitignore index 7b6de6f..76a5896 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ pysnmp-4.1.12a.tar.gz /pysnmp-4.2.3.tar.gz /pysnmp-4.2.4.tar.gz /pysnmp-4.2.5.tar.gz +/pysnmp-4.3.1.tar.gz diff --git a/pysnmp.spec b/pysnmp.spec index b7cf779..31d1b56 100644 --- a/pysnmp.spec +++ b/pysnmp.spec @@ -1,7 +1,9 @@ +%global sum An SNMP engine written in Python + Name: pysnmp -Version: 4.2.5 -Release: 3%{?dist} -Summary: SNMP engine written in Python +Version: 4.3.1 +Release: 1%{?dist} +Summary: %{sum} License: BSD URL: http://pysnmp.sourceforge.net/ @@ -9,6 +11,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar. BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python3-devel BuildRequires: python-setuptools Requires: net-snmp @@ -21,22 +24,60 @@ from/into given SNMP Object IDs along with associated values. PySNMP also provides a few transport methods specific to TCP/IP networking. +%package -n python2-%{name} +Summary: %{sum} +Requires: python2-pyasn1 +%{?python_provide:%python_provide python2-%{name}} + +%description -n python2-%{name} +This is a Python implementation of SNMP v.1/v.2c engine. It's +general functionality is to assemble/disassemble SNMP messages +from/into given SNMP Object IDs along with associated values. +PySNMP also provides a few transport methods specific to TCP/IP +networking. + +%package -n python3-%{name} +Summary: %{sum} +Requires: python3-pyasn1 +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-%{name} +This is a Python implementation of SNMP v.1/v.2c engine. It's +general functionality is to assemble/disassemble SNMP messages +from/into given SNMP Object IDs along with associated values. +PySNMP also provides a few transport methods specific to TCP/IP +networking. + %prep -%setup -q +%autosetup -n %{name}-%{version} %build -%{__python2} setup.py build +%py2_build +%py3_build %install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%py2_install +%py3_install -%files -%doc CHANGES LICENSE README THANKS TODO examples/ docs/ +%files -n python2-%{name} +%doc CHANGES README THANKS TODO examples/ docs/ +%license LICENSE %{_bindir}/*%{name}* %{python2_sitelib}/%{name}/ %{python2_sitelib}/%{name}*.egg-info +%files -n python3-%{name} +%doc CHANGES README THANKS TODO examples/ docs/ +%license LICENSE +%{_bindir}/*%{name}* +%{python3_sitelib}/%{name}/ +%{python3_sitelib}/%{name}*.egg-info + %changelog +* Thu Jan 28 2016 Fabian Affolter - 4.3.1-1 +- Add py3 support (rhbz#1282245) +- Updated to new upstream version 4.3.1 (rhbz#1145004) + * Thu Jun 18 2015 Fedora Release Engineering - 4.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 7ae4bac..85049c4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1f75d3e392a050e84348904fc1be3212 pysnmp-4.2.5.tar.gz +d6cf420d7683a2da97c43e9398042b9c pysnmp-4.3.1.tar.gz