update to 6.0.1, which removed all occurrences of the "locked" attribute, deprecated in perl 5.12.0

This commit is contained in:
Tom "spot" Callaway 2010-11-17 16:36:18 -05:00
parent 96608a2d84
commit 493a747516
3 changed files with 12 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Net-SNMP-5.2.0.tar.gz
/Net-SNMP-v6.0.1.tar.gz

View File

@ -1,12 +1,12 @@
Name: perl-Net-SNMP
Version: 5.2.0
Release: 6%{?dist}
Version: 6.0.1
Release: 1%{?dist}
Summary: Object oriented interface to SNMP
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Net-SNMP/
Source0: http://www.cpan.org/authors/id/D/DT/DTOWN/Net-SNMP-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@ -16,6 +16,7 @@ BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
#Requires: perl(Crypt::Rijndael)
# This is autodetected.
#Requires: perl(Socket6)
%description
@ -29,18 +30,10 @@ Management Protocol and related network management concepts.
%prep
%setup -q -n Net-SNMP-%{version}
%setup -q -n Net-SNMP-v%{version}
%{__perl} -pi -e 's|^#!\s+/usr/local/bin/perl|#!%{__perl}|' examples/*.pl
chmod -c a-x examples/*.pl
# Requirements: exclude perl(Socket6)
cat <<__EOF__ > %{name}-perlreq
#!/bin/sh
/usr/lib/rpm/perl.req \$* | grep -v '^perl(Socket6)'
__EOF__
%define __perl_requires %{_builddir}/Net-SNMP-%{version}/%{name}-perlreq
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -73,6 +66,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Nov 17 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 6.0.1-1
- update to 6.0.1, which removed all occurrences of the "locked" attribute,
deprecated in perl 5.12.0
- okay to use Socket6 now.
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.2.0-6
- Mass rebuild with perl-5.12.0

View File

@ -1 +1 @@
0e717723f843ab22a93248833f3ebff7 Net-SNMP-5.2.0.tar.gz
6137f04f9942d703f66179f890e3d096 Net-SNMP-v6.0.1.tar.gz