%define module SNMP-Info %define name perl-%{module} %define version 1.04 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Object Oriented Perl5 Interface to Network devices and MIBs through SNMP License: BSD-like Group: Development/Perl URL: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/SNMP/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl-NetSNMP >= 5.1.2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description SNMP::Info gives an object oriented interface to information obtained through SNMP. This module lives at http://snmp-info.sourceforge.net Check for newest version and documentation. This module is geared towards network devices. Subclasses exist for a number of network devices and common MIBs. The idea behind this module is to give a common interface to data from network devices, leaving the device-specific hacks behind the scenes in subclasses. In the SYNOPSIS example we fetch the name of all the ports on the device and the duplex setting for that port with two methods -- interfaces() and i_duplex(). The information may be coming from any number of MIB files and is very vendor specific. SNMP::Info provides you a common method for all supported devices. Adding support for your own device is easy, and takes little much SNMP knowledge. The module is not limited to network devices. Any MIB or device can be given an objected oriented front-end by making a module that consists of a couple hashes. See EXTENDING SNMP::INFO. %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 COPYRIGHT ChangeLog DeviceMatrix.txt README %{perl_vendorlib}/SNMP %{_mandir}/*/* %changelog * Tue Jul 11 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.04-1mdv2007.0 - new version - rpmbuildupdate aware - spec cleanup * Tue Jan 31 2006 Oden Eriksson <oeriksson@mandriva.com> 1.03-0.beta.1mdk - 1.03beta * Tue Jan 31 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0-0.20060124.1mdk - use a recent snap (20060124) * Wed Sep 21 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.9.0-1mdk - New release 0.9.0 - rpmbuildupdate aware - better url - fix directory ownership - fix summary * Thu Aug 26 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8-2mdk - BuildRequires: perl-NetSNMP >= 5.1.2 and not perl-Net-SNMP >= 5.1.2 * Thu Aug 26 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8-1mdk - initial mandrake package