From 27bc3338671d3279431e8563aa86960cabe69fb5 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Tue, 13 Sep 2005 18:27:59 +0000 Subject: [PATCH] auto-import perl-SNMP_Session-1.07-1 on branch devel from perl-SNMP_Session-1.07-1.src.rpm --- .cvsignore | 1 + perl-SNMP_Session.spec | 74 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 perl-SNMP_Session.spec diff --git a/.cvsignore b/.cvsignore index e69de29..bf80740 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +SNMP_Session-1.07.tar.gz diff --git a/perl-SNMP_Session.spec b/perl-SNMP_Session.spec new file mode 100644 index 0000000..510cd1b --- /dev/null +++ b/perl-SNMP_Session.spec @@ -0,0 +1,74 @@ +Name: perl-SNMP_Session +Version: 1.07 +Release: 1%{?dist} +Summary: SNMP support for Perl 5 + +Group: Development/Libraries +License: Artistic +URL: http://www.switch.ch/misc/leinen/snmp/perl/ +Source0: http://www.switch.ch/misc/leinen/snmp/perl/dist/SNMP_Session-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Pure Perl SNMP v1 and SNMP v2 support for Perl 5. + +The SNMP operations currently supported are "get", "get-next", "get-bulk" +and "set", as well as trap generation and reception. + + +%prep +%setup -q -n SNMP_Session-%{version} +%{__perl} -pi -e 's{^#!/usr/local/bin/perl\b}{#!%{__perl}}' test/* +chmod 644 test/* + + +%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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Artistic README README.SNMP_util index.html test/ +%{perl_vendorlib}/* + + +%changelog +* Wed Aug 10 2005 Jose Pedro Oliveira - 1.07-1 +- Update to Fedora Extras template. + +* Wed Nov 24 2004 Jose Pedro Oliveira - 0:1.07-0.fdr.1 +- Update to 1.07. + +* Sun Oct 3 2004 Jose Pedro Oliveira - 0:1.06-0.fdr.1 +- Update to 1.06. + +* Wed Aug 25 2004 Jose Pedro Oliveira - 0:1.05-0.fdr.2 +- The homepage changed placed in 2004-08-23. +- The author repackaged the files using the same tar.gz version (1.05). + +* Wed Jul 21 2004 Jose Pedro Oliveira - 0:1.05-0.fdr.1 +- Update to 1.05. + +* Tue May 18 2004 Jose Pedro Oliveira - 0:1.03-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..859337f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +496725e254c98cf1863703c4184f783e SNMP_Session-1.07.tar.gz