%define module Net-SNMP %define name perl-%{module} %define version 5.2.0 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: Object oriented interface to SNMP for perl License: GPL or Artistic Group: Development/Perl Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{module}-%{version}.tar.bz2 URL: http://search.cpan.org/dist/%{module}/ %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif BuildRequires: perl-Crypt-DES => 2.03 BuildRequires: perl-Digest-HMAC => 1.0 Requires: perl-Crypt-DES => 2.03 Requires: perl-Digest-HMAC => 1.0 Requires: perl-Digest-SHA1 => 1.02 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description The Net::SNMP module implements an object oriented interface to the Simple Network Management Protocol. Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. The module supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module assumes that the user has a basic understanding of the Simple Network Management Protocol and related network management concepts. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{_bindir}/snmpkey %{perl_vendorlib}/Net %{_mandir}/*/* %changelog * Tue May 08 2007 Olivier Thauvin <nanardon@mandriva.org> 5.2.0-3mdv2008.0 + Revision: 25199 - rebuild * Fri Apr 28 2006 Nicolas Lécureuil <neoclust@mandriva.org> 5.2.0-2mdk - Fix SPEC according to Perl Policy - Source URL * Fri Nov 18 2005 Guillaume Rousse <guillomovitch@mandriva.org> 5.2.0-1mdk - New release 5.2.0 - %%mkrel * Fri Sep 30 2005 Guillaume Rousse <guillomovitch@mandriva.org> 5.1.0-1mdk - New release 5.1.0 - spec cleanup - fix source url for rpmbuildupdate * Wed Nov 24 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 5.0.1-1mdk - 5.0.1 * Thu Aug 26 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 5.0.0-1mdk - 5.0.0 * Thu Nov 27 2003 Stefan van der Eijk <stefan@eijk.nu> 4.1.2-1mdk - 4.1.2 - streamline BuildRequires * Wed Aug 27 2003 François Pons <fpons@mandrakesoft.com> 4.1.0-1mdk - 4.1.0. * Tue May 27 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.0.3-2mdk - rebuild for new auto{prov,req}