rpms/perl-Apache-Session/devel Apache-Session-mp2.patch, NONE, 1.1 perl-Apache-Session.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Steven Pritchard (steve)
fedora-extras-commits at redhat.com
Tue Sep 13 16:18:45 UTC 2005
Author: steve
Update of /cvs/extras/rpms/perl-Apache-Session/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10127/devel
Modified Files:
.cvsignore sources
Added Files:
Apache-Session-mp2.patch perl-Apache-Session.spec
Log Message:
auto-import perl-Apache-Session-1.6-2 on branch devel from perl-Apache-Session-1.6-2.src.rpm
Apache-Session-mp2.patch:
--- NEW FILE Apache-Session-mp2.patch ---
- 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
@@ -15,8 +15,14 @@
if (!exists $cookies{$name} && MOD_PERL) {
# no cookies, try to steal from notes
- require Apache;
- my $r = Apache->request;
+ my $r;
+ if ( $ENV{MOD_PERL_API_VERION} == 2 ) {
+ require Apache2::RequestUtil;
+ $r = Apache2::RequestUtil->request;
+ } else {
+ require Apache;
+ $r = Apache->request;
+ }
%cookies = CGI::Cookie->parse($r->notes('cookie'));
}
--- NEW FILE perl-Apache-Session.spec ---
Name: perl-Apache-Session
Version: 1.6
Release: 2%{?dist}
Summary: Apache::Session Perl module
License: Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Apache-Session/
Source0: http://www.cpan.org/modules/by-module/Apache/Apache-Session-1.6.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)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
These modules provide persistent storage for arbitrary data, in arbitrary
backing stores. The details of interacting with the backing store are
abstracted to make all backing stores behave alike. The programmer simply
interacts with a tied hash.
%prep
%setup -q -n Apache-Session-%{version}
%patch0 -p0
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%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 {} \;
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
perldoc -t perlartistic > Artistic
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES README TODO Artistic
%{perl_vendorlib}/Apache
%{_mandir}/man3/Apache*
%changelog
* Thu Sep 08 2005 Steven Pritchard <steve at kspei.com> 1.6-2
- Add patch for mod_perl2 compatibility from Chris Grau (#167753, comment #3).
- Re-enable "make test".
* Wed Aug 31 2005 Steven Pritchard <steve at kspei.com> 1.6-1
- Specfile autogenerated.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Apache-Session/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Sep 2005 16:17:58 -0000 1.1
+++ .cvsignore 13 Sep 2005 16:18:43 -0000 1.2
@@ -0,0 +1 @@
+Apache-Session-1.6.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Apache-Session/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Sep 2005 16:17:58 -0000 1.1
+++ sources 13 Sep 2005 16:18:43 -0000 1.2
@@ -0,0 +1 @@
+3a373102e3ba49f93a76994c6599e1ff Apache-Session-1.6.tar.gz
More information about the fedora-extras-commits
mailing list