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