commit 1c52651419d01418ebf4c498883e60cc9a8fd5b2 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Tue Mar 22 15:45:40 2011 +0100 Import .gitignore | 1 + perl-Test-Perl-Critic-Progressive.spec | 62 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d7b98f3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Perl-Critic-Progressive-0.03.tar.gz diff --git a/perl-Test-Perl-Critic-Progressive.spec b/perl-Test-Perl-Critic-Progressive.spec new file mode 100644 index 0000000..0d11110 --- /dev/null +++ b/perl-Test-Perl-Critic-Progressive.spec @@ -0,0 +1,62 @@ +Name: perl-Test-Perl-Critic-Progressive +Version: 0.03 +Release: 1%{?dist} +Summary: Gradually enforce coding standards +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Perl-Critic-Progressive/ +Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/Test-Perl-Critic-Progressive-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Exporter) +BuildRequires: perl(Module::Build) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Perl::Critic) >= 1.082 +BuildRequires: perl(Perl::Critic::Utils) >= 1.082 +BuildRequires: perl(Test::Builder) +# Tests only: +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.00 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Perl::Critic) >= 1.082 +Requires: perl(Perl::Critic::Utils) >= 1.082 + +# Filter underspecified dependencies +%filter_from_requires /^perl(Perl::Critic)$/d +%filter_from_requires /^perl(Perl::Critic::Utils)$/d +%filter_setup + +%description +Applying coding standards to large amounts of legacy code is a daunting +task. Often times, legacy code is so non-compliant that it seems downright +impossible. But, if you consistently chip away at the problem, you will +eventually succeed! Test::Perl::Critic::Progressive uses the Perl::Critic +engine to prevent further deterioration of your code and gradually steer it +towards conforming with your chosen coding standards. + +%prep +%setup -q -n Test-Perl-Critic-Progressive-%{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 TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jan 27 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..bcf6176 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9d98e61592571c379e8d598db01fcc0a Test-Perl-Critic-Progressive-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