Clean up buildreqs

- Classify buildreqs by usage
- BR: perl(Time::HiRes) for the test suite
- BR: perl(Pod::Simple) ≥ 3.14 for the release tests
- BR: at least version 0.17 of perl(Test::CPAN::Meta)
- Bump perl(Test::Pod) version requirement to 1.44
- Don't need to remove empty directories from the buildroot
epel9
Paul Howarth 13 years ago
parent bbaeda401e
commit 56ea867029

@ -1,6 +1,6 @@
--- PPI/Changes --- Changes
+++ PPI/Changes +++ Changes
@@ -705,7 +705,7 @@ @@ -705,7 +705,7 @@ Revision history for Perl extension PPI
- Resolved Lexer bug CPAN #13425 ( $p{package} creates a PPI::Statement::Package ) - Resolved Lexer bug CPAN #13425 ( $p{package} creates a PPI::Statement::Package )
Added smarts to resolve word-started statements as ::Expression in subscripts Added smarts to resolve word-started statements as ::Expression in subscripts
- Resolved PDOM bug CPAN #13326 ( problems in index_locations ) - Resolved PDOM bug CPAN #13326 ( problems in index_locations )

@ -7,48 +7,56 @@
Name: perl-PPI Name: perl-PPI
Version: 1.215 Version: 1.215
Release: 8%{?dist} Release: 9%{?dist}
Summary: Parse, Analyze and Manipulate Perl Summary: Parse, Analyze and Manipulate Perl
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/PPI/ URL: http://search.cpan.org/dist/PPI/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-%{version}.tar.gz
Patch0: PPI-1.215-UTF8.patch Patch0: PPI-1.215-utf8.patch
BuildArch: noarch BuildArch: noarch
# =============== Module Build ======================
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Task::Weaken)
# =============== Module Runtime ====================
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Class::Inspector) => 1.22
BuildRequires: perl(Clone) >= 0.30 BuildRequires: perl(Clone) >= 0.30
BuildRequires: perl(constant) BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
BuildRequires: perl(Digest::MD5) >= 2.35 BuildRequires: perl(Digest::MD5) >= 2.35
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path) BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.84 BuildRequires: perl(File::Spec) >= 0.84
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(IO::String) >= 1.07 BuildRequires: perl(IO::String) >= 1.07
BuildRequires: perl(File::Remove) >= 1.42
BuildRequires: perl(List::Util) >= 1.20
BuildRequires: perl(List::MoreUtils) >= 0.16 BuildRequires: perl(List::MoreUtils) >= 0.16
BuildRequires: perl(List::Util) >= 1.20
BuildRequires: perl(Params::Util) >= 1.00 BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable) >= 2.17 BuildRequires: perl(Storable) >= 2.17
# =============== Test Suite ========================
BuildRequires: perl(Class::Inspector) >= 1.22
BuildRequires: perl(File::Remove) >= 0.39
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(Test::More) >= 0.86 BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Test::NoWarnings) >= 0.084 BuildRequires: perl(Test::NoWarnings) >= 0.084
BuildRequires: perl(Test::Object) >= 0.07 BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07 BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(Task::Weaken) BuildRequires: perl(Time::HiRes)
# =============== Release Tests =====================
# Circular dependencies in release tests, so don't do them when bootstrapping: # Circular dependencies in release tests, so don't do them when bootstrapping:
# Perl::MinimumVersion -> PPI # Perl::MinimumVersion -> PPI
%if 0%{!?perl_bootstrap:1} %if 0%{!?perl_bootstrap:1}
BuildRequires: perl(File::Find::Rule) >= 0.32 BuildRequires: perl(File::Find::Rule) >= 0.32
BuildRequires: perl(File::Find::Rule::Perl) >= 1.09 BuildRequires: perl(File::Find::Rule::Perl) >= 1.09
BuildRequires: perl(Perl::MinimumVersion) >= 1.20 BuildRequires: perl(Perl::MinimumVersion) >= 1.20
BuildRequires: perl(Pod::Simple) >= 3.14
BuildRequires: perl(Test::ClassAPI) >= 1.03 BuildRequires: perl(Test::ClassAPI) >= 1.03
BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080 BuildRequires: perl(Test::MinimumVersion) >= 0.101080
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod) >= 1.44
%endif %endif
# =============== Module Runtime ====================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with XSAccessor} %if %{with XSAccessor}
Requires: perl(Class::XSAccessor) Requires: perl(Class::XSAccessor)
@ -62,12 +70,11 @@ Requires: perl(Task::Weaken)
%description %description
Parse, analyze and manipulate Perl (without perl). Parse, analyze and manipulate Perl (without perl).
%prep %prep
%setup -q -n PPI-%{version} %setup -q -n PPI-%{version}
# Re-code docs as UTF-8 # Recode documentation as UTF-8
%patch0 -p1 %patch0
%if %{without XSAccessor} %if %{without XSAccessor}
rm lib/PPI/XSAccessor.pm rm lib/PPI/XSAccessor.pm
@ -78,44 +85,47 @@ sed -i '/^lib\/PPI\/XSAccessor\.pm$/d' MANIFEST
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot} %{_fixperms} %{buildroot}
%check %check
make test make test
%if 0%{!?perl_bootstrap:1} %if 0%{!?perl_bootstrap:1}
make test TEST_FILES="xt/*.t" RELEASE_TESTING=1 make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%endif %endif
%files %files
%doc Changes LICENSE README inline2test.conf inline2test.tpl %doc Changes LICENSE README inline2test.conf inline2test.tpl
%{perl_vendorlib}/PPI/ %{perl_vendorlib}/PPI/
%{perl_vendorlib}/PPI.pm %{perl_vendorlib}/PPI.pm
%{_mandir}/man3/PPI*.3pm* %{_mandir}/man3/PPI*.3pm*
%changelog %changelog
* Sat Aug 25 2012 Paul Howarth <paul@city-fan.org> - 1.215-9
- classify buildreqs by usage
- BR: perl(Time::HiRes) for the test suite
- BR: perl(Pod::Simple) ≥ 3.14 for the release tests
- BR: at least version 0.17 of perl(Test::CPAN::Meta)
- bump perl(Test::Pod) version requirement to 1.44
- don't need to remove empty directories from the buildroot
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 1.215-8 * Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 1.215-8
- Specify all dependencies - specify all dependencies
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-7 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.215-6 * Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.215-6
- Perl 5.16 re-rebuild of bootstrapped packages - perl 5.16 re-rebuild of bootstrapped packages
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.215-5 * Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.215-5
- Perl 5.16 rebuild - perl 5.16 rebuild
- Build-require Class::Inspector for tests - build-require Class::Inspector for tests
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-4 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 1.215-3 * Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 1.215-3
- always run test suite but don't run release tests when bootstrapping - always run test suite but don't run release tests when bootstrapping

Loading…
Cancel
Save