[perl-Apache-Session] Exclude Test::Database from EPEL builds as it's not available there

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 9a75ad265d42191cb3e5e34a52fb38178519e629
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Thu Nov 27 20:11:42 2014 +0000

    Exclude Test::Database from EPEL builds as it's not available there

 perl-Apache-Session.spec |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/perl-Apache-Session.spec b/perl-Apache-Session.spec
index 04988b9..51aef28 100644
--- a/perl-Apache-Session.spec
+++ b/perl-Apache-Session.spec
@@ -1,6 +1,6 @@
 Name:           perl-Apache-Session
 Version:        1.93
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Persistence framework for session data
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -36,17 +36,21 @@ BuildRequires:  perl(base)
 BuildRequires:  perl(Cwd)
 BuildRequires:  perl(DBD::mysql)
 # Not available in Fedora yet; tests skipped automatically
-# BuildRequires:  perl(DBD::Oracle)
+%if 0
+BuildRequires:  perl(DBD::Oracle)
+%endif
 BuildRequires:  perl(DBD::Pg)
 BuildRequires:  perl(File::Temp)
+%if 0%{?fedora}
 BuildRequires:  perl(Test::Database)
+%endif
 BuildRequires:  perl(Test::Deep)
 BuildRequires:  perl(Test::Exception)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
-Apache::Session is a persistence framework which is particularly useful for
+Apache::Session is a persistence framework that is particularly useful for
 tracking session data between httpd requests. Apache::Session is designed
 to work with Apache and mod_perl, but it should work under CGI and other
 web servers, and it also works outside of a web server altogether.
@@ -54,15 +58,17 @@ web servers, and it also works outside of a web server altogether.
 %prep
 %setup -q -n Apache-Session-%{version}
 find -type f -exec perl -pi -e 's/\r//g' {} +
+
+# Workaround for mod_perl 2.x compatibility (CPAN RT#14504)
 %patch0 -p1
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL --installdirs=vendor
 ./Build
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
-%{_fixperms} %{buildroot}/*
+./Build install --destdir=%{buildroot} --create_packlist=0
+%{_fixperms} %{buildroot}
 
 %check
 ./Build test
@@ -70,10 +76,13 @@ find -type f -exec perl -pi -e 's/\r//g' {} +
 %files
 %doc CHANGES Contributing.txt README TODO
 %doc eg/
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/Apache/
+%{_mandir}/man3/Apache::Session*
 
 %changelog
+* Thu Nov 27 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 1.93-2
+- Exclude Test::Database from EPEL builds as it's not available there
+
 * Tue Nov 11 2014 Petr Šabata <contyk@xxxxxxxxxx> - 1.93-1
 - 1.93 bump
 - Modernize spec
--
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





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux