commit 9c563d398acc44b4357546293fe2a08381ec2a88 Author: Steven Pritchard <steven.pritchard@xxxxxxxxx> Date: Wed Dec 8 19:15:10 2010 -0600 Update to 1.89. Build with Module::Build. Add examples in eg/. Convert everything to Unix line endings and patch afterwards. .gitignore | 1 + Apache-Session-mp2.patch | 4 ++-- perl-Apache-Session.spec | 30 ++++++++++++++++++------------ sources | 2 +- 4 files changed, 22 insertions(+), 15 deletions(-) --- diff --git a/.gitignore b/.gitignore index 463536c..a29da9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Apache-Session-1.88.zip +/Apache-Session-1.89.tar.gz diff --git a/Apache-Session-mp2.patch b/Apache-Session-mp2.patch index b6751a4..b7aed4e 100644 --- a/Apache-Session-mp2.patch +++ b/Apache-Session-mp2.patch @@ -1,7 +1,7 @@ - make Session::Generate::ModUsertrack work with MP2. ---- ./Session/Generate/ModUsertrack.pm 2001-10-11 10:43:32.000000000 -0700 -+++ ./Session/Generate/ModUsertrack.pm.mp2 2005-09-07 16:01:11.798128185 -0700 +--- Apache-Session-1.89/lib/Apache/Session/Generate/ModUsertrack.pm 2001-10-11 10:43:32.000000000 -0700 ++++ Apache-Session-1.89/lib/Apache/Session/Generate/ModUsertrack.pm.mp2 2005-09-07 16:01:11.798128185 -0700 @@ -15,8 +15,14 @@ if (!exists $cookies{$name} && MOD_PERL) { diff --git a/perl-Apache-Session.spec b/perl-Apache-Session.spec index 8e2a7ed..dd6fbcc 100644 --- a/perl-Apache-Session.spec +++ b/perl-Apache-Session.spec @@ -1,17 +1,17 @@ Name: perl-Apache-Session -Version: 1.88 -Release: 4%{?dist} +Version: 1.89 +Release: 1%{?dist} Summary: Persistence framework for session data License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Apache-Session/ -Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Apache-Session-%{version}.zip +Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Apache-Session-%{version}.tar.gz # https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=118577, from Chris Grau Patch0: Apache-Session-mp2.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(DBI) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Deep) >= 0.082 BuildRequires: perl(Test::Exception) >= 0.15 BuildRequires: perl(Test::More) >= 0.47 @@ -26,26 +26,25 @@ web servers, and it also works outside of a web server altogether. %prep %setup -q -n Apache-Session-%{version} -%patch0 -p0 -perl -pi -e 's/\r\n/\n/g' *.txt +find -type f -exec perl -pi -e 's/\r\n/\n/g' {} \; + +%patch0 -p1 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%{__perl} Build.PL installdirs=vendor +./Build %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 {} \; +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check -make test +./Build test %clean rm -rf $RPM_BUILD_ROOT @@ -53,10 +52,17 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES Contributing.txt README TODO +%doc eg/ %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Wed Dec 08 2010 Steven Pritchard <steve@xxxxxxxxx> 1.89-1 +- Update to 1.89. +- Build with Module::Build. +- Add examples in eg/. +- Convert everything to Unix line endings and patch afterwards. + * Thu Apr 29 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 1.88-4 - Mass rebuild with perl-5.12.0 diff --git a/sources b/sources index 4ab98b5..56b6cf8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7a191a87ab9c2f434e3691b992fa2113 Apache-Session-1.88.zip +a21d1fbb30723e8d155c1936c7d9a37c Apache-Session-1.89.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel