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:
12
python-pysnmp.changes
Normal file
12
python-pysnmp.changes
Normal 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.
|
||||||
|
|
@@ -13,6 +13,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|||||||
Requires: python-crypto python-pyasn1
|
Requires: python-crypto python-pyasn1
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
|
||||||
|
%if 0%{?suse_version} != 1110
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
||||||
programming language.
|
programming language.
|
||||||
@@ -21,6 +25,16 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Ilya Etingof <ilya@glas.net>
|
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
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}%{prever}
|
%setup -q -n %{modname}-%{version}%{prever}
|
||||||
|
|
||||||
@@ -30,10 +44,10 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||||
install -m 0755 -d $RPM_BUILD_ROOT/usr/bin
|
install -m 0755 -d %{buildroot}%{_bindir}
|
||||||
install -m 0755 tools/libsmi2pysnmp $RPM_BUILD_ROOT/usr/bin/libsmi2pysnmp
|
install -m 0755 tools/libsmi2pysnmp %{buildroot}%{_bindir}/libsmi2pysnmp
|
||||||
install -m 0755 tools/build-pysnmp-mib $RPM_BUILD_ROOT/usr/bin/build-pysnmp-mib
|
install -m 0755 tools/build-pysnmp-mib %{buildroot}%{_bindir}/build-pysnmp-mib
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@@ -41,8 +55,11 @@ rm -rf %{buildroot}
|
|||||||
%files -f INSTALLED_FILES
|
%files -f INSTALLED_FILES
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES LICENSE README TODO docs examples
|
%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
|
%changelog
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user