diff --git a/README.md b/README.md index 5d45e3d..b779637 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # perl-Net-SNMP +The Net::SNMP module implements an object oriented interface to the Simple Network Management Protocol. +Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. +The module supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP version-3. +The Net::SNMP module assumes that the user has a basic understanding of the Simple Network Management Protocol and related network management concepts. + diff --git a/perl-Net-SNMP.spec b/perl-Net-SNMP.spec new file mode 100644 index 0000000..233e978 --- /dev/null +++ b/perl-Net-SNMP.spec @@ -0,0 +1,71 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Net-SNMP +Version: 6.0.1 +Release: 1mamba +Summary: Net::SNMP - Object oriented interface to SNMP +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +Source: http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-v%{version}.tar.gz +URL: http://www.cpan.org +License: GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Net::SNMP module implements an object oriented interface to the Simple Network Management Protocol. +Perl applications can use the module to retrieve or update information on a remote host using the SNMP protocol. +The module supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP version-3. +The Net::SNMP module assumes that the user has a basic understanding of the Simple Network Management Protocol and related network management concepts. + +%prep +%setup -q -n Net-SNMP-v%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Sun Apr 28 2013 Automatic Build System 6.0.1-1mamba +- update to 6.0.1 + +* Tue Nov 13 2012 Silvan Calarco 5.2.0-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 5.2.0-2mamba +- automatic rebuild by autodist + +* Wed Mar 28 2007 Silvan Calarco 5.2.0-1mamba +- update to version 5.2.0 by autospec + +* Fri Mar 24 2006 Davide Madrisan 4.1.2-2qilnx +- perl script updated + +* Wed Jun 30 2004 Davide Madrisan 4.1.2-1qilnx +- first build +