commit 189583efe130c090f939dc360493c0ca087c8765 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Tue Mar 29 19:14:56 2011 +0200 Import .gitignore | 1 + perl-Perl-Critic-StricterSubs.spec | 62 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..04a01bc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Perl-Critic-StricterSubs-0.03.tar.gz diff --git a/perl-Perl-Critic-StricterSubs.spec b/perl-Perl-Critic-StricterSubs.spec new file mode 100644 index 0000000..ce9a7f7 --- /dev/null +++ b/perl-Perl-Critic-StricterSubs.spec @@ -0,0 +1,62 @@ +Name: perl-Perl-Critic-StricterSubs +Version: 0.03 +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 +BuildArch: noarch +BuildRequires: perl(Exporter) +BuildRequires: perl(File::PathList) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Perl::Critic) >= 1.08 +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(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) +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 + +%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. + +%prep +%setup -q -n Perl-Critic-StricterSubs-%{version} + +%build +%{__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 +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Mar 24 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.03-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..d28e6ab 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f92c089422f7eea8d51c542997d351c1 Perl-Critic-StricterSubs-0.03.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