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