]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Net::SNMP - object oriented interface to SNMP |
e3c64513 | 9 | Summary(pl.UTF-8): Net::SNMP - zorientowany obiektowo interfejs do SNMP |
20864664 | 10 | Name: perl-Net-SNMP |
94f72ed4 | 11 | Version: 5.0.1 |
459481c4 | 12 | Release: 2 |
104294bf | 13 | # same as perl |
14 | License: GPL or Artistic | |
20864664 | 15 | Group: Development/Languages/Perl |
92adfffe | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
94f72ed4 | 17 | # Source0-md5: 840e17ee75a68cad98c53a54d65b8751 |
1a687335 | 18 | Patch0: %{name}-kill_vstring.patch |
ed550a8c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20864664 AM |
20 | BuildRequires: perl-Crypt-DES >= 2.0.3 |
21 | BuildRequires: perl-Digest-HMAC | |
22 | BuildRequires: perl-Digest-SHA1 | |
a1108a54 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
432f7420 | 24 | Requires: perl-Crypt-DES >= 2.0.3 |
20864664 AM |
25 | BuildArch: noarch |
26 | BuildRoot: %{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 | 32 | The Net::SNMP Perl module implements an object oriented interface to |
33 | the Simple Network Management Protocol. Perl applications can use the | |
34 | module to retrieve or update information on a remote host using the | |
35 | SNMP protocol. The module supports SNMP version-1, SNMP version-2c | |
36 | (Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module | |
37 | assumes that the user has a basic understanding of the Simple Network | |
38 | Management Protocol and related network management concepts. | |
20864664 | 39 | |
340ce7fa JR |
40 | %description -l pl.UTF-8 |
41 | Moduł Perla Net::SNMP stanowi zorientowaną obiektowo implementację | |
42 | interfejsu do protokołu SNMP (Simple Network Management Protocol). | |
43 | Programy perlowe mogą korzystać z tego modułu do pobierania i | |
44 | aktualizacji informacji na zdalnych hostach używając protokołu SNMP. | |
45 | Moduł ten obsługuje wersje protokołu SNMP: 1, 2c (Community-Based | |
46 | SNMPv2) oraz 3. Moduł Net::SNMP zakłada, że użytkownik rozumie w | |
47 | podstawowym zakresie protokół SNMP i związane z nim idee zarządzania | |
104294bf | 48 | sieciowego. |
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 |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
e426b582 PG |
64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
20864664 | 66 | |
20864664 AM |
67 | %clean |
68 | rm -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?/* |