]> git.pld-linux.org Git - packages/python-snmp_passpersist.git/commitdiff
new package auto/th/python-snmp_passpersist-1.2.2-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 19 Dec 2012 14:39:18 +0000 (15:39 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Wed, 19 Dec 2012 14:39:18 +0000 (15:39 +0100)
python-snmp_passpersist.spec [new file with mode: 0644]

diff --git a/python-snmp_passpersist.spec b/python-snmp_passpersist.spec
new file mode 100644 (file)
index 0000000..aff7b21
--- /dev/null
@@ -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
This page took 0.125528 seconds and 4 git commands to generate.