commit 39711edfb6660295031f64f8d7c0311f865245f1 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Feb 19 08:14:43 2015 +0100 0.04 bump .gitignore | 1 + perl-Perl-Critic-StricterSubs.spec | 60 ++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 36 insertions(+), 27 deletions(-) --- diff --git a/.gitignore b/.gitignore index 04a01bc..7633e50 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Perl-Critic-StricterSubs-0.03.tar.gz +/Perl-Critic-StricterSubs-0.04.tar.gz diff --git a/perl-Perl-Critic-StricterSubs.spec b/perl-Perl-Critic-StricterSubs.spec index 47c07d8..351dc55 100644 --- a/perl-Perl-Critic-StricterSubs.spec +++ b/perl-Perl-Critic-StricterSubs.spec @@ -1,62 +1,70 @@ Name: perl-Perl-Critic-StricterSubs -Version: 0.03 -Release: 10%{?dist} +Version: 0.04 +Release: 1%{?dist} Summary: Perl::Critic plugin for stricter subroutine checks License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Perl-Critic-StricterSubs/ -Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/strictersubs/Perl-Critic-StricterSubs-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/Perl-Critic-StricterSubs-%{version}.tar.gz BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Module::Build) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(English) BuildRequires: perl(Exporter) BuildRequires: perl(File::PathList) -BuildRequires: perl(Module::Build) -BuildRequires: perl(Perl::Critic) >= 1.08 +BuildRequires: perl(List::MoreUtils) +# This is plug-in for Perl::Critic +BuildRequires: perl(Perl::Critic) >= 1.082 BuildRequires: perl(Perl::Critic::Policy) -BuildRequires: perl(Perl::Critic::TestUtils) >= 1.08 -BuildRequires: perl(Perl::Critic::Utils) >= 1.08 -BuildRequires: perl(Perl::Critic::Violation) >= 1.08 +BuildRequires: perl(Perl::Critic::Utils) >= 1.082 BuildRequires: perl(PPI::Document) -# Non-author tests only: -BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: perl(Test::Pod::Coverage) >= 1.04 -# Only in META.yml, RT#66863: BuildRequires: perl(Test::Deep) +# Tests: +# Perl::Critic::Violation 1.082 not used +BuildRequires: perl(Perl::Critic::TestUtils) >= 1.082 BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -Requires: perl(Perl::Critic) >= 1.08 -Requires: perl(Perl::Critic::TestUtils) >= 1.08 -Requires: perl(Perl::Critic::Utils) >= 1.08 -Requires: perl(Perl::Critic::Violation) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Perl::Critic) >= 1.082 +Requires: perl(Perl::Critic::TestUtils) >= 1.082 +Requires: perl(Perl::Critic::Utils) >= 1.082 + +# Filter under-specified dependencies: +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Perl::Critic::Utils\\)$ %description As a dynamic language, Perl doesn't require you to define subroutines until -run-time. Although this is a powerful feature, it can also be a major -source of bugs. For example, you might mistype the name of a subroutine, or -call a subroutine from another module without including that module or -importing that subroutine. And unless you have very good test coverage, you -might not know about these bugs until you have already launched your code. +run-time. Although this is a powerful feature, it can also be a major source +of bugs. The Perl::Critic::Policy modules in this distribution are aimed at +reducing errors caused by invoking subroutines that are not defined. %prep %setup -q -n Perl-Critic-StricterSubs-%{version} %build -%{__perl} Build.PL installdirs=vendor +perl Build.PL installdirs=vendor ./Build %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 +%license LICENSE +%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu Feb 19 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 0.04-1 +- 0.04 bump + * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.03-10 - Perl 5.20 rebuild diff --git a/sources b/sources index d28e6ab..b787a48 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f92c089422f7eea8d51c542997d351c1 Perl-Critic-StricterSubs-0.03.tar.gz +b7214488d00cdd59a79e224dcc218bc0 Perl-Critic-StricterSubs-0.04.tar.gz -- 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