14
0
forked from pool/python-pysnmp

Accepting request 35545 from home:bmanojlovic:branches:devel:languages:python

Copy from home:bmanojlovic:branches:devel:languages:python/python-pysnmp via accept of submit request 35545 revision 6.
Request was accepted with message:
Looks good. Thanks

OBS-URL: https://build.opensuse.org/request/show/35545
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=9
This commit is contained in:
2010-03-23 19:54:03 +00:00
committed by Git OBS Bridge
parent cc5b0a79cf
commit fc5bc2f016
2 changed files with 35 additions and 6 deletions

12
python-pysnmp.changes Normal file
View File

@@ -0,0 +1,12 @@
---------------------------------------------------
Tue Mar 23 13:30:13 CET 2010 - boris@steki.net
- Changed package arch to "noarch"
---------------------------------------------------
Tue Mar 23 13:13:13 CET 2010 - boris@steki.net
- Updated spec file - created subpackage utils
- Added required libsmi require statement and its minimum version
for utils sub package main package.

View File

@@ -13,6 +13,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: python-crypto python-pyasn1
BuildRequires: python-devel
%if 0%{?suse_version} != 1110
BuildArch: noarch
%endif
%description
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
programming language.
@@ -21,6 +25,16 @@ Authors:
--------
Ilya Etingof <ilya@glas.net>
%package utils
Group: Development/Tools/Other
Requires: python-pysnmp >= %version
Summary: Python-pysnmp libsmi utilities
# Needed for build-pysnmp-mib
Requires: libsmi >= 0.4.8
%description utils
Utitilites used for creation python mib description files
%prep
%setup -q -n %{modname}-%{version}%{prever}
@@ -30,10 +44,10 @@ python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
install -m 0755 -d $RPM_BUILD_ROOT/usr/bin
install -m 0755 tools/libsmi2pysnmp $RPM_BUILD_ROOT/usr/bin/libsmi2pysnmp
install -m 0755 tools/build-pysnmp-mib $RPM_BUILD_ROOT/usr/bin/build-pysnmp-mib
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
install -m 0755 -d %{buildroot}%{_bindir}
install -m 0755 tools/libsmi2pysnmp %{buildroot}%{_bindir}/libsmi2pysnmp
install -m 0755 tools/build-pysnmp-mib %{buildroot}%{_bindir}/build-pysnmp-mib
%clean
rm -rf %{buildroot}
@@ -41,8 +55,11 @@ rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES LICENSE README TODO docs examples
/usr/bin/libsmi2pysnmp
/usr/bin/build-pysnmp-mib
%files utils
%defattr(-,root,root)
%{_bindir}/libsmi2pysnmp
%{_bindir}/build-pysnmp-mib
%changelog