Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > b58a873b48e1fd52386f376c0b1efd86 > files > 2

perl-SNMP-Info-0.8-2mdk.src.rpm

%define module	SNMP-Info
%define version	0.8
%define release	2mdk

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:	%{module}-%{version}.tar.bz2
URL:		http://snmp-info.sourceforge.net/
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}-%{version}

%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/Info.pm
%{perl_vendorlib}/SNMP/Info
%{_mandir}/*/*

%changelog
* 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