]> git.pld-linux.org Git - packages/perl-SNMP-Info.git/blob - perl-SNMP-Info.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-SNMP-Info.git] / perl-SNMP-Info.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    SNMP
6 %define         pnam    Info
7 Summary:        SNMP::Info - Perl interface to network devices and MIBs through SNMP
8 Summary(pl.UTF-8):      SNMP::Info - interfejs perlowy do urządzeń sieciowych i MIB-ów poprzez SNMP
9 Name:           perl-SNMP-Info
10 Version:        2.06
11 Release:        1
12 License:        BSD
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  b66e5744697dc0ca7157df2e3eddb8ee
16 URL:            http://snmp-info.sourceforge.net/
17 %if %{with tests}
18 BuildRequires:  perl-SNMP >= 4
19 %endif
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
32
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.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc COPYRIGHT ChangeLog DeviceMatrix.txt
63 %{perl_vendorlib}/SNMP/Info.pm
64 %{perl_vendorlib}/SNMP/Info
65 %{_mandir}/man3/*
This page took 0.071961 seconds and 4 git commands to generate.