]> git.pld-linux.org Git - packages/perl-SNMP-Info.git/blob - perl-SNMP-Info.spec
- fixed License, added URL and tests, switched to vendordirs
[packages/perl-SNMP-Info.git] / perl-SNMP-Info.spec
1 #
2 %bcond_without  tests   # don't perform "make test"
3 #
4 %include        /usr/lib/rpm/macros.perl
5 %define pdir    SNMP
6 %define pnam    Info
7 Summary:        SNMP::Info - Perl interface to network devices and MIBs through SNMP
8 Summary(pl):    SNMP::Info - perlowy interfejs do urz±dzeñ sieciowych i MIB-ów poprzez SNMP
9 Summary(pt):    Módulo de Perl SNMP::Info
10 Summary(pt_BR): Módulo Perl SNMP::Info
11 Summary(ru):    íÏÄÕÌØ ÄÌÑ Perl SNMP::Info
12 Summary(sv):    SNMP::Info Perlmodul
13 Summary(uk):    íÏÄÕÌØ ÄÌÑ Perl SNMP::Info
14 Summary(zh_CN): SNMP::Info Perl Ä£¿é
15 Name:           perl-SNMP-Info
16 Version:        0.7
17 Release:        1
18 License:        BSD
19 Group:          Development/Languages/Perl
20 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
21 # Source0-md5:  e9a139b420d270132b43c7f8470edc17
22 URL:            http://snmp-info.sourceforge.net/
23 %if %{with tests}
24 BuildRequires:  perl(Math::BigInt)
25 BuildRequires:  perl-SNMP >= 4
26 %endif
27 BuildRequires:  perl-devel >= 5.8.0
28 BuildRequires:  rpm-perlprov >= 4.1-13
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 SNMP::Info gives an object oriented interface to information obtained
34 through SNMP. This module is geared towards network devices.
35 Subclasses exist for a number of network devices and common MIBs. The
36 idea behind this module is to give a common interface to data from
37 network devices, leaving the device-specific hacks behind the scenes
38 in subclasses.
39
40 %description -l pl
41 SNMP::Info udostêpnia zorientowany obiektowo interfejs do informacji
42 uzyskiwanych poprzez SNMP. Modu³ jest dostosowany do urz±dzeñ
43 sieciowych. Istniej± podklasy dla wielu urz±dzeñ sieciowych i
44 popularnych MIB-ów. Ide± tego modu³u jest dostarczenie wspólnego
45 interfejsu do danych z urz±dzeñ sieciowych pozostawiaj±c specyficzne
46 dla konkretnych urz±dzeñ sztuczki ukryte w podklasach.
47
48 %prep
49 %setup -q -n %{pdir}-%{pnam}-%{version}
50
51 %build
52 %{__perl} Makefile.PL \
53         INSTALLDIRS=vendor
54 %{__make}
55
56 %{?with_tests:%{__make} test}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc COPYRIGHT ChangeLog DeviceMatrix.txt
70 %{perl_vendorlib}/SNMP/Info.pm
71 %{perl_vendorlib}/SNMP/Info
72 %{_mandir}/man3/*
This page took 0.163979 seconds and 3 git commands to generate.