diff --git a/contriborbase b/contriborbase deleted file mode 100644 index ef36a67..0000000 --- a/contriborbase +++ /dev/null @@ -1 +0,0 @@ -sme10 diff --git a/perl-CGI-Persistent-1.11-Fetching.patch b/perl-CGI-Persistent-1.11-Fetching.patch new file mode 100644 index 0000000..a74c211 --- /dev/null +++ b/perl-CGI-Persistent-1.11-Fetching.patch @@ -0,0 +1,21 @@ +diff -Nur CGI-Persistent-1.11.old/lib/CGI/Persistent.pm CGI-Persistent-1.11/lib/CGI/Persistent.pm +--- CGI-Persistent-1.11.old/lib/CGI/Persistent.pm 2008-07-05 15:21:00.000000000 -0400 ++++ CGI-Persistent-1.11/lib/CGI/Persistent.pm 2025-01-15 22:47:47.621534307 -0500 +@@ -64,7 +64,7 @@ + sub delete { + + my ( $self, $param ) = @_; +- my $fn = join "/", ($self->{sessiondir},$self->param( '.id' )); ++ my $fn = join "/", ($self->{sessiondir},scalar $self->param( '.id' )); + my $po = new Persistence::Object::Simple __Fn => $fn; + delete $po->{ $param }; $po->commit (); + $self->SUPER::delete ( $param ); # delete, is like, overloaded. +@@ -74,7 +74,7 @@ + sub delete_all { + + my ( $self ) = shift; +- $fn = join "/", ($self->{sessiondir},$self->param( '.id' )); ++ $fn = join "/", ($self->{sessiondir},scalar $self->param( '.id' )); + my $po = new Persistence::Object::Simple __Fn => $fn; + $po->expire; + $self->SUPER::delete_all (); diff --git a/perl-CGI-Persistent.spec b/perl-CGI-Persistent.spec index be8f041..d6e3646 100644 --- a/perl-CGI-Persistent.spec +++ b/perl-CGI-Persistent.spec @@ -1,11 +1,12 @@ Name: perl-CGI-Persistent Version: 1.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: CGI::Persistent Perl module License: CHECK(GPL+ or Artistic) Group: Development/Libraries URL: http://search.cpan.org/dist/CGI-Persistent/ Source0: http://www.cpan.org/authors/id/V/VI/VIPUL/CGI-Persistent-%{version}.tar.gz +Patch0: perl-CGI-Persistent-1.11-Fetching.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) @@ -24,6 +25,7 @@ http://localhost/somedir/roach.cgi %prep %setup -q -n CGI-Persistent-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Wed Jan 15 2025 Jean-Philippe Pialasse 1.11-2.sme +- fix warning CGI::param called in list context [SME: 12788] + * Fri Jul 14 2023 BogusDateBot - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, by assuming the date is correct and changing the weekday.