]>
Commit | Line | Data |
---|---|---|
00352764 | 1 | # |
85b185ed | 2 | # Conditional build: |
3 | %bcond_without tests # do not perform "make test" | |
00352764 | 4 | # |
f6b8409d | 5 | %define pdir SNMP |
6 | %define pnam Info | |
00352764 | 7 | Summary: SNMP::Info - Perl interface to network devices and MIBs through SNMP |
839a55c4 | 8 | Summary(pl.UTF-8): SNMP::Info - interfejs perlowy do urządzeń sieciowych i MIB-ów poprzez SNMP |
f45d62c2 | 9 | Name: perl-SNMP-Info |
2a284637 | 10 | Version: 2.06 |
f45d62c2 | 11 | Release: 1 |
00352764 | 12 | License: BSD |
f45d62c2 SZ |
13 | Group: Development/Languages/Perl |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
2a284637 | 15 | # Source0-md5: b66e5744697dc0ca7157df2e3eddb8ee |
00352764 JB |
16 | URL: http://snmp-info.sourceforge.net/ |
17 | %if %{with tests} | |
00352764 JB |
18 | BuildRequires: perl-SNMP >= 4 |
19 | %endif | |
00aea969 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
00352764 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
f45d62c2 SZ |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
00352764 JB |
26 | SNMP::Info gives an object oriented interface to information obtained |
27 | through SNMP. This module is geared towards network devices. | |
28 | Subclasses exist for a number of network devices and common MIBs. The | |
29 | idea behind this module is to give a common interface to data from | |
30 | network devices, leaving the device-specific hacks behind the scenes | |
31 | in subclasses. | |
f45d62c2 | 32 | |
3c017234 JR |
33 | %description -l pl.UTF-8 |
34 | SNMP::Info udostępnia zorientowany obiektowo interfejs do informacji | |
35 | uzyskiwanych poprzez SNMP. Moduł jest dostosowany do urządzeń | |
36 | sieciowych. Istnieją podklasy dla wielu urządzeń sieciowych i | |
37 | popularnych MIB-ów. Ideą tego modułu jest dostarczenie wspólnego | |
38 | interfejsu do danych z urządzeń sieciowych pozostawiając specyficzne | |
39 | dla konkretnych urządzeń sztuczki ukryte w podklasach. | |
f45d62c2 SZ |
40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
00352764 JB |
45 | %{__perl} Makefile.PL \ |
46 | INSTALLDIRS=vendor | |
f45d62c2 SZ |
47 | %{__make} |
48 | ||
00352764 JB |
49 | %{?with_tests:%{__make} test} |
50 | ||
f45d62c2 SZ |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
00352764 JB |
54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
f45d62c2 SZ |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
00352764 JB |
62 | %doc COPYRIGHT ChangeLog DeviceMatrix.txt |
63 | %{perl_vendorlib}/SNMP/Info.pm | |
64 | %{perl_vendorlib}/SNMP/Info | |
f45d62c2 | 65 | %{_mandir}/man3/* |