From f8ac40421a2e8a87d2bdc4471feedba55f001068 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Sep 09 2013 07:02:18 +0000 Subject: import perl-CGI-Session-4.35-15.el7.src.rpm --- diff --git a/.perl-CGI-Session.metadata b/.perl-CGI-Session.metadata new file mode 100644 index 0000000..67b2eed --- /dev/null +++ b/.perl-CGI-Session.metadata @@ -0,0 +1 @@ +76d43e1961ee0a31344a239a153ebc9661d2b396 SOURCES/CGI-Session-4.35.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/CGI-Session-4.35-qw.patch b/SOURCES/CGI-Session-4.35-qw.patch new file mode 100644 index 0000000..52bca85 --- /dev/null +++ b/SOURCES/CGI-Session-4.35-qw.patch @@ -0,0 +1,41 @@ +From 6079e2ecba0da7a432663f8213345f60978513f5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 21 Aug 2012 17:04:58 +0200 +Subject: [PATCH] Fix deprecated use of qw// + + + +--- + lib/CGI/Session.pm | 2 +- + t/ip_matches.t | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/CGI/Session.pm b/lib/CGI/Session.pm +index 67eaf39..92c0c4d 100644 +--- a/lib/CGI/Session.pm ++++ b/lib/CGI/Session.pm +@@ -879,7 +879,7 @@ sub _load_pluggables { + id => "ID", + ); + my $dsn = $self->{_DSN}; +- foreach my $plug qw(driver serializer id) { ++ foreach my $plug (qw(driver serializer id)) { + my $mod_name = $dsn->{ $plug }; + if (not defined $mod_name) { + $mod_name = $DEFAULT_FOR{ $plug }; +diff --git a/t/ip_matches.t b/t/ip_matches.t +index 1137d4a..8db31e9 100644 +--- a/t/ip_matches.t ++++ b/t/ip_matches.t +@@ -36,7 +36,7 @@ is($session->param('TEST'),'VALUE','TEST param still set'); + + $session->flush; + # Testing with ip_match set. +-CGI::Session->import qw/-ip_match/; ++CGI::Session->import (qw/-ip_match/); + + is($CGI::Session::IP_MATCH,1,'ip_match switched on'); + +-- +1.7.11.4 + diff --git a/SPECS/perl-CGI-Session.spec b/SPECS/perl-CGI-Session.spec new file mode 100644 index 0000000..da1032c --- /dev/null +++ b/SPECS/perl-CGI-Session.spec @@ -0,0 +1,147 @@ +Name: perl-CGI-Session +Version: 4.35 +Release: 15%{?dist} +Summary: Persistent session data in CGI applications +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CGI-Session/ +Source0: http://www.cpan.org/modules/by-module/CGI/CGI-Session-%{version}.tar.gz +# Fix deprecated use of qw//, RHBZ #754689, CPAN RT #69048 +Patch0: CGI-Session-4.35-qw.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(CGI) + +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(strict) +BuildRequires: perl(Text::Wrap) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(CGI) +BuildRequires: perl(Class::Struct) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(DBD::Pg) +BuildRequires: perl(DB_File) +BuildRequires: perl(DBI) +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Path) +BuildRequires: perl(FreezeThaw) +BuildRequires: perl(overload) +BuildRequires: perl(Safe) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::More) +BuildRequires: perl(Text::Abbrev) +BuildRequires: perl(vars) +# Tests: +BuildRequires: perl(diagnostics) +BuildRequires: perl(Env) + +%description +CGI-Session is a Perl5 library that provides an easy, reliable and modular +session management system across HTTP requests. Persistency is a key +feature for such applications as shopping carts, login/authentication +routines, and application that need to carry data across HTTP requests. +CGI::Session does that and many more. + +%prep +%setup -q -n CGI-Session-%{version} +%patch0 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} +chmod 644 examples/* + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes examples README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Sep 9 2013 Petr Pisar - 4.35-15 +- Specify all dependencies + +* Tue Aug 21 2012 Petr Pisar - 4.35-14 +- Fix deprecated use of qw// (bug #754689) + +* Fri Jul 20 2012 Fedora Release Engineering - 4.35-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 4.35-12 +- Perl 5.16 rebuild +- Specify all dependencies + +* Tue Jan 17 2012 Ralf Corsépius - 4.35-11 +- Add BR: perl(Digest::MD5) (Fix mass rebuild FTBS). + +* Fri Jan 13 2012 Fedora Release Engineering - 4.35-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 17 2011 Marcela Mašláňová - 4.35-9 +- Perl mass rebuild + +* Sun May 29 2011 Iain Arnell 4.35-8 +- explicitly require perl(CGI) + +* Tue Feb 08 2011 Fedora Release Engineering - 4.35-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 15 2010 Marcela Maslanova - 4.35-6 +- 661697 rebuild for fixing problems with vendorach/lib +- add BR CGI + +* Fri Apr 30 2010 Marcela Maslanova - 4.35-5 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 4.35-4 +- rebuild against perl 5.10.1 + +* Sat Jul 25 2009 Fedora Release Engineering - 4.35-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 4.35-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Aug 1 2008 Andreas Thienemann 4.35-1 +- update to current 4.35, 4.31 release was broken. + +* Fri Aug 1 2008 Andreas Thienemann 4.31-1 +- update to 4.31 + +* Wed Mar 5 2008 Tom "spot" Callaway 4.20-4 +- rebuild for new perl + +* Sun Jan 27 2008 Andreas Thienemann 4.20-3 +- Added Test::More to the BuildReqs + +* Sat Mar 17 2007 Andreas Thienemann 4.20-2 +- Fixed perl-devel req + +* Sat Mar 10 2007 Andreas Thienemann 4.20-1 +- Cleaned up for FE +- Specfile autogenerated by cpanspec 1.69.1.