]> git.pld-linux.org Git - packages/perl-SNMP-Info.git/blob - perl-SNMP-Info.spec
6a5f146e3a83766e5b93581985367542f4e440ee
[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.UTF-8):      SNMP::Info - interfejs perlowy do urządzeń sieciowych i MIB-ów poprzez SNMP
10 Name:           perl-SNMP-Info
11 Version:        2.06
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:  b66e5744697dc0ca7157df2e3eddb8ee
17 URL:            http://snmp-info.sourceforge.net/
18 %if %{with tests}
19 BuildRequires:  perl-SNMP >= 4
20 %endif
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
33
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc COPYRIGHT ChangeLog DeviceMatrix.txt
64 %{perl_vendorlib}/SNMP/Info.pm
65 %{perl_vendorlib}/SNMP/Info
66 %{_mandir}/man3/*
This page took 0.254255 seconds and 3 git commands to generate.