%define module SNMP-Info Summary: Object Oriented Perl5 Interface to Network devices and MIBs through SNMP Name: perl-%{module} Version: 1.04 Release: %mkrel 2 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 BuildRequires: perl-devel 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 * Fri Apr 27 2007 Oden Eriksson <oeriksson@mandriva.com> 1.04-2mdv2008.0 + Revision: 18588 - rebuild * Wed Nov 29 2006 Oden Eriksson <oeriksson@mandriva.com> 1.04-1mdv2007.0 + Revision: 88286 - Import perl-SNMP-Info * Wed Nov 29 2006 Oden Eriksson <oeriksson@mandriva.com> 1.04-2mdv2007.1 - rebuild * Wed Jul 12 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) * Thu Sep 22 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.9.0-1mdk - New release 0.9.0 - rpmbuildupdate aware - better url - fix directory ownership - fix summary * Fri Aug 27 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8-2mdk - BuildRequires: perl-NetSNMP >= 5.1.2 and not perl-Net-SNMP >= 5.1.2 * Fri Aug 27 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8-1mdk - initial mandrake package