]> git.pld-linux.org Git - packages/python-snmp_passpersist.git/blob - python-snmp_passpersist.spec
automatic change: use py_build/py_install macros
[packages/python-snmp_passpersist.git] / python-snmp_passpersist.spec
1 %define         module  snmp_passpersist
2 Summary:        Python implementation a pass_persist backend for Net-SNMP
3 Name:           python-%{module}
4 Version:        1.2.2
5 Release:        1
6 License:        GPL v3
7 Group:          Development/Languages/Python
8 Source0:        https://github.com/nagius/snmp_passpersist/archive/v%{version}.tar.gz
9 # Source0-md5:  b57210dbac1c94c0926ecb9481840276
10 URL:            http://github.com/nagius/snmp_passpersist
11 BuildRequires:  python-distribute
12 BuildRequires:  rpm-pythonprov
13 BuildRequires:  rpmbuild(macros) >= 1.219
14 Requires:       python-modules
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This module is a SNMP passpersist backend for Net-SNMP.
20
21 The snmp_passpersist.PassPersist class present a convenient way to
22 creare a MIB subtree and expose it to snmp via it's passpersist
23 protocol.
24
25 %prep
26 %setup -q -n %{module}-%{version}
27
28 %build
29 %py_build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 %py_install
34
35 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
36 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc README
44 %{py_sitescriptdir}/*.py*
45 %if "%{py_ver}" > "2.4"
46 %{py_sitescriptdir}/*.egg-info
47 %endif
This page took 0.06709 seconds and 3 git commands to generate.