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