commit cd8b47b4c48b049af1cc92eab0a3fa423d5e25bf Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Wed Oct 24 15:53:09 2012 +0200 Modernize spec file perl-Perl-Critic-More.spec | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) --- diff --git a/perl-Perl-Critic-More.spec b/perl-Perl-Critic-More.spec index 4609084..27fc90d 100644 --- a/perl-Perl-Critic-More.spec +++ b/perl-Perl-Critic-More.spec @@ -1,6 +1,6 @@ Name: perl-Perl-Critic-More Version: 1.000 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Supplemental policies for Perl::Critic License: GPL+ or Artistic Group: Development/Libraries @@ -11,19 +11,21 @@ Source0: http://www.cpan.org/authors/id/E/EL/ELLIOTJS/Perl-Critic-More-%{ Patch0: Perl-Critic-More-1.000-Miscellanea::RequireRcsKeywords.patch BuildArch: noarch BuildRequires: perl(Module::Build) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Perl::Critic) >= 1.082 +BuildRequires: perl(Perl::Critic::Policy) +BuildRequires: perl(Perl::Critic::Utils) BuildRequires: perl(Perl::MinimumVersion) >= 0.14 BuildRequires: perl(Readonly) >= 1.03 # Tests: -BuildRequires: perl(base) -BuildRequires: perl(Carp) -BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Perl::Critic::Config) -BuildRequires: perl(Perl::Critic::Policy) BuildRequires: perl(Perl::Critic::TestUtils) -BuildRequires: perl(Perl::Critic::Utils) BuildRequires: perl(Perl::Critic::Violation) BuildRequires: perl(Test::More) +# Optional test: BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -47,19 +49,20 @@ Perl::Critic core for a variety of reasons. %install ./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 ./Build test %files -%defattr(-,root,root,-) %doc Changes LICENSE README TODO.pod %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Wed Oct 24 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.000-8 +- Modernize spec file + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.000-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_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