diff --git a/pysnmp.spec b/pysnmp.spec index 4397155..52c216f 100644 --- a/pysnmp.spec +++ b/pysnmp.spec @@ -1,19 +1,19 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pysnmp -Version: 2.0.9 -Release: 4%{?dist} +Version: 4.1.11 +Release: 1.a%{?dist} Summary: SNMP engine written in Python Group: Development/Libraries License: BSD URL: http://pysnmp.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}a.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: python -BuildRequires: python-setuptools-devel +BuildRequires: python-devel +BuildRequires: python-setuptools Requires: net-snmp @@ -26,19 +26,16 @@ networking. %prep -%setup -q -#Remove exec permission from example files -chmod -x examples/*.py -#Change shebang -sed -i -e '1d;2i#!/usr/bin/python' examples/*.py +%setup -q -n %{name}-%{version}a + %build -python ./setup.py build +%{__python} setup.py build %install rm -rf %{buildroot} -python ./setup.py install -O1 --skip-build --root=%{buildroot} +%{__python} setup.py install -O1 --skip-build --root=%{buildroot} %clean @@ -47,12 +44,19 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc CHANGES LICENSE README examples/ html/ +%doc CHANGES LICENSE README THANKS TODO examples/ docs/ +%{_bindir}/*%{name}* %{python_sitelib}/%{name}/ %{python_sitelib}/%{name}*.egg-info %changelog +* Tue Sep 29 2009 Fabian Affolter - 4.1.11-1.a +- Removed shebang and permission fixing +- Added new doc files +- Added scripts to files section +- Updated to new upstream version + * Sun Jul 26 2009 Fedora Release Engineering - 2.0.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/sources b/sources index 6545a6d..0f790e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -366c3a9f6a28851af93145c09c17e370 pysnmp-2.0.9.tar.gz +a648452853ad37d396c5f6b409465c79 pysnmp-4.1.11a.tar.gz