Name: perl-SNMP-Info Version: 2.06 Release: 1%{?dist} Summary: Object Oriented Perl5 Interface to Network devices and MIBs through SNMP License: BSD Group: Development/Libraries URL: http://search.cpan.org/dist/SNMP-Info/ Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/SNMP-Info-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(SNMP) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description SNMP::Info gives an object oriented interface to information obtained through SNMP. %prep %setup -q -n SNMP-Info-%{version} /usr/bin/iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && /bin/mv -f ChangeLog.conv ChangeLog /usr/bin/iconv -f iso8859-1 -t utf-8 README > README.conv && /bin/mv -f README.conv README /usr/bin/iconv -f iso8859-1 -t utf-8 Info.pm > Info.pm.conv && /bin/mv -f Info.pm.conv Info.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog COPYRIGHT DeviceMatrix.txt README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Oct 06 2011 <walt@gouldfamily.org> 2.06-1 - upgrade to 2.06 * Thu Jun 18 2009 <walt@gouldfamily.org> 2.01-1 - upgrade to 2.01