forked from pool/python-pysnmp
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
80d10199f0
commit
262674b67b
62
python-pysnmp.spec
Normal file
62
python-pysnmp.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
%define modname pysnmp
|
||||
Name: python-%{modname}
|
||||
URL: http://pysnmp.sourceforge.net/
|
||||
Summary: SNMP framework for Python
|
||||
Version: 4.1.6
|
||||
%define prever a
|
||||
Release: 1
|
||||
License: Other License(s), see package
|
||||
Group: Development/Libraries/Python
|
||||
Source: %{modname}-%{version}%{prever}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
%{py_requires}
|
||||
Requires: python-crypto python-pyasn1
|
||||
BuildRequires: python-devel
|
||||
|
||||
%description
|
||||
This project aims at developing an SNMP v1/v2c/v3 engine written in the Python
|
||||
programming language.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Ilya Etingof <ilya@glas.net>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}%{prever}
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=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
|
||||
|
||||
%clean
|
||||
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
|
||||
|
||||
%changelog
|
||||
|
||||
* Thu Jun 22 2006 - James Oakley <jfunk@funktronics.ca> - 4.1.6-1
|
||||
- Update
|
||||
|
||||
* Wed Oct 19 2005 - James Oakley <jfunk@funktronics.ca> - 4.1.4-ft.4
|
||||
- Fix SNMPv1 requestid problem
|
||||
|
||||
* Wed Oct 12 2005 - James Oakley <jfunk@funktronics.ca> - 4.1.4-ft.3
|
||||
- Build for SL10
|
||||
|
||||
* Wed Sep 28 2005 - James Oakley <jfunk@funktronics.ca> - 4.1.4-ft.2
|
||||
- Add requirements
|
||||
|
||||
* Wed Sep 28 2005 - James Oakley <jfunk@funktronics.ca> - 4.1.4-ft.1
|
||||
- Initial release
|
Reference in New Issue
Block a user