commit 768ca0b23ad4328f600c898d32006357fefc55cb Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Mon Aug 5 13:40:01 2013 +0100 Add anachronisms for EPEL-5 support perl-Test-UseAllModules.spec | 48 +++++++++++++++++++++++++---------------- 1 files changed, 29 insertions(+), 19 deletions(-) --- diff --git a/perl-Test-UseAllModules.spec b/perl-Test-UseAllModules.spec index 8aa00d4..ff95056 100644 --- a/perl-Test-UseAllModules.spec +++ b/perl-Test-UseAllModules.spec @@ -1,28 +1,30 @@ Name: perl-Test-UseAllModules Version: 0.14 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Do use_ok() for all the MANIFESTed modules License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-UseAllModules/ Source0: http://www.cpan.org/authors/id/I/IS/ISHIGAKI/Test-UseAllModules-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl(Exporter) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +# Build BuildRequires: perl(ExtUtils::MakeMaker) +# Module +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::Manifest) -# perl(Test::Builder) needed for lib/Test/UseAllModules.pm:55: -# Test::More->builder->{Have_Plan}; BuildRequires: perl(Test::Builder) >= 0.30 -BuildRequires: perl(Test::More) >= 0.60 -# Tests only: +BuildRequires: perl(Test::More) >= 0.61 +# Test Suite BuildRequires: perl(FindBin) BuildRequires: perl(lib) +# Optional Tests +BuildRequires: perl(Test::Pod) >= 1.18 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Test::Builder) >= 0.30 -Requires: perl(Test::More) >= 0.60 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -# Remove underspecifies dependencies -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Test::More\\) %description I'm sick of writing 00_load.t (or something like that) that will do use_ok() @@ -33,6 +35,8 @@ update MANIFEST. You don't have to modify the test any more (hopefully). %prep %setup -q -n Test-UseAllModules-%{version} + +# Fix line endings without changing timestamps for F in Changes README; do tr -d '\r' <"$F" >"$F.unix" touch -r "$F"{,.unix} @@ -40,24 +44,30 @@ for F in Changes README; do done %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; -%{_fixperms} $RPM_BUILD_ROOT/* +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} %check -make test +make test TEST_POD=1 + +%clean +rm -rf %{buildroot} %files %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::UseAllModules.3pm* %changelog +* Mon Aug 5 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 0.14-5 +- Add anachronisms for EPEL-5 support + * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild -- 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