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