]> git.pld-linux.org Git - packages/perl-Net-SNMP.git/blame - perl-Net-SNMP.spec
- release 2
[packages/perl-Net-SNMP.git] / perl-Net-SNMP.spec
CommitLineData
74f301e9 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
26729da3 5%include /usr/lib/rpm/macros.perl
c5983ad8 6%define pdir Net
7%define pnam SNMP
104294bf 8Summary: Net::SNMP - object oriented interface to SNMP
e3c64513 9Summary(pl.UTF-8): Net::SNMP - zorientowany obiektowo interfejs do SNMP
20864664 10Name: perl-Net-SNMP
94f72ed4 11Version: 5.0.1
459481c4 12Release: 2
104294bf 13# same as perl
14License: GPL or Artistic
20864664 15Group: Development/Languages/Perl
92adfffe 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
94f72ed4 17# Source0-md5: 840e17ee75a68cad98c53a54d65b8751
1a687335 18Patch0: %{name}-kill_vstring.patch
ed550a8c 19BuildRequires: perl-devel >= 1:5.8.0
20864664
AM
20BuildRequires: perl-Crypt-DES >= 2.0.3
21BuildRequires: perl-Digest-HMAC
22BuildRequires: perl-Digest-SHA1
a1108a54 23BuildRequires: rpm-perlprov >= 4.1-13
432f7420 24Requires: perl-Crypt-DES >= 2.0.3
20864664
AM
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
60c6f177
JB
28# optional (not required if not using v6)
29%define _noautoreq perl(Socket6) perl(IO::Socket::INET6)
30
20864664 31%description
104294bf 32The Net::SNMP Perl module implements an object oriented interface to
33the Simple Network Management Protocol. Perl applications can use the
34module to retrieve or update information on a remote host using the
35SNMP protocol. The module supports SNMP version-1, SNMP version-2c
36(Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module
37assumes that the user has a basic understanding of the Simple Network
38Management Protocol and related network management concepts.
20864664 39
340ce7fa
JR
40%description -l pl.UTF-8
41Moduł Perla Net::SNMP stanowi zorientowaną obiektowo implementację
42interfejsu do protokołu SNMP (Simple Network Management Protocol).
43Programy perlowe mogą korzystać z tego modułu do pobierania i
44aktualizacji informacji na zdalnych hostach używając protokołu SNMP.
45Moduł ten obsługuje wersje protokołu SNMP: 1, 2c (Community-Based
46SNMPv2) oraz 3. Moduł Net::SNMP zakłada, że użytkownik rozumie w
47podstawowym zakresie protokół SNMP i związane z nim idee zarządzania
104294bf 48sieciowego.
20864664
AM
49
50%prep
26729da3 51%setup -q -n %{pdir}-%{pnam}-%{version}
1a687335 52%patch0 -p0
20864664
AM
53
54%build
a1108a54 55%{__perl} Makefile.PL \
cab21d9d 56 INSTALLDIRS=vendor
20864664
AM
57%{__make}
58
74f301e9 59%{?with_tests:%{__make} test}
60
20864664
AM
61%install
62rm -rf $RPM_BUILD_ROOT
63
e426b582
PG
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
20864664 66
20864664
AM
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
23a02cb8 72%doc README* Changes
20864664 73%attr(755,root,root) %{_bindir}/*
a1108a54 74%{perl_vendorlib}/Net/*.pm
75%{perl_vendorlib}/Net/SNMP
20864664 76%{_mandir}/man?/*
This page took 0.073251 seconds and 4 git commands to generate.