%define module SNMP-Info %define version 0.9.0 %define release 1mdk Summary: Object Oriented Perl5 Interface to Network devices and MIBs through SNMP Name: perl-%{module} Version: %{version} Release: %{release} License: BSD-like Group: Development/Perl Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAXB/%{module}-%{version}.tar.bz2 URL: http://search.cpan.org/dist/%{module} BuildRequires: perl-devel BuildRequires: perl-NetSNMP >= 5.1.2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %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}-0.9 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make make test %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYRIGHT ChangeLog DeviceMatrix.txt README %{perl_vendorlib}/SNMP %{_mandir}/*/* %changelog * 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