diff --git a/perl-LockFile-Simple-0.207-fix-deprecation-warning.patch b/perl-LockFile-Simple-0.207-fix-deprecation-warning.patch new file mode 100644 index 0000000..fed75c6 --- /dev/null +++ b/perl-LockFile-Simple-0.207-fix-deprecation-warning.patch @@ -0,0 +1,17 @@ +diff --git a/Simple.pm b/Simple.pm +index 74b4447..b19f20e 100644 +--- a/Simple.pm ++++ b/Simple.pm +@@ -132,8 +132,8 @@ sub make { + $self->{'lock_by_file'} = {}; + + # The logxxx routines are autoloaded, so need to check for @EXPORT +- $self->{'wfunc'} = defined(@Log::Agent::EXPORT) ? \&logwarn : \&core_warn; +- $self->{'efunc'} = defined(@Log::Agent::EXPORT) ? \&logerr : \&core_warn; ++ $self->{'wfunc'} = @Log::Agent::EXPORT ? \&logwarn : \&core_warn; ++ $self->{'efunc'} = @Log::Agent::EXPORT ? \&logerr : \&core_warn; + + $self->configure(@hlist); # Will init "manager" if necessary + return $self; +-- +1.7.5.4 \ No newline at end of file diff --git a/perl-LockFile-Simple.spec b/perl-LockFile-Simple.spec index 2f92ece..c01a752 100644 --- a/perl-LockFile-Simple.spec +++ b/perl-LockFile-Simple.spec @@ -2,7 +2,7 @@ Name: perl-LockFile-Simple Version: 0.207 -Release: 1mamba +Release: 2mamba Summary: LockFile::Simple - simple file locking scheme Group: System/Libraries/Perl Vendor: openmamba @@ -10,6 +10,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/J/JV/JV/LockFile-Simple-%{version}.tar.gz +Patch0: perl-LockFile-Simple-0.207-fix-deprecation-warning.patch License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel @@ -22,6 +23,7 @@ Simple file locking scheme. %prep %setup -q -n LockFile-Simple-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -53,5 +55,8 @@ done # %doc ChangeLog README %changelog +* Sat Jun 21 2014 Silvan Calarco 0.207-2mamba +- patch to fix warning 'defined(@array) is deprecated' + * Mon Apr 09 2012 Silvan Calarco 0.207-1mamba - package created by autospec