[packages/python-snmp_passpersist] new package
jajcus
jajcus at pld-linux.org
Wed Dec 19 15:39:39 CET 2012
commit 5652d3f367ecf81cfca365348a54503a57e3d4ae
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Dec 19 15:39:18 2012 +0100
new package
python-snmp_passpersist.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
---
diff --git a/python-snmp_passpersist.spec b/python-snmp_passpersist.spec
new file mode 100644
index 0000000..aff7b21
--- /dev/null
+++ b/python-snmp_passpersist.spec
@@ -0,0 +1,50 @@
+%define module snmp_passpersist
+Summary: Python implementation a pass_persist backend for Net-SNMP
+Name: python-%{module}
+Version: 1.2.2
+Release: 1
+License: GPL v3
+Group: Development/Languages/Python
+Source0: https://github.com/nagius/snmp_passpersist/archive/v%{version}.tar.gz
+# Source0-md5: b57210dbac1c94c0926ecb9481840276
+URL: http://github.com/nagius/snmp_passpersist
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is a SNMP passpersist backend for Net-SNMP.
+
+The snmp_passpersist.PassPersist class present a convenient way to
+creare a MIB subtree and expose it to snmp via it's passpersist
+protocol.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{py_sitescriptdir}/*.py*
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-snmp_passpersist.git/commitdiff/5652d3f367ecf81cfca365348a54503a57e3d4ae
More information about the pld-cvs-commit
mailing list