commit bb93c49013b4cbba2bcbcef29660fc38d07a2437 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Tue Apr 5 18:42:46 2011 +0200 Import .gitignore | 1 + perl-Perl-Critic-More.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..8f869c5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Perl-Critic-More-1.000.tar.gz diff --git a/perl-Perl-Critic-More.spec b/perl-Perl-Critic-More.spec new file mode 100644 index 0000000..acf9664 --- /dev/null +++ b/perl-Perl-Critic-More.spec @@ -0,0 +1,61 @@ +Name: perl-Perl-Critic-More +Version: 1.000 +Release: 1%{?dist} +Summary: Supplemental policies for Perl::Critic +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Perl-Critic-More/ +Source0: http://www.cpan.org/authors/id/E/EL/ELLIOTJS/Perl-Critic-More-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Perl::Critic) >= 1.082 +BuildRequires: perl(Perl::MinimumVersion) >= 0.14 +BuildRequires: perl(Readonly) >= 1.03 +# Tests: +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) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Perl::Critic) >= 1.082 +Requires: perl(Perl::MinimumVersion) >= 0.14 +Requires: perl(Readonly) >= 1.03 + +# Remove underspecified dependencies +%filter_from_requires /^perl(Readonly)\s*$/d +%filter_setup + +%description +This is a collection of Perl::Critic policies that are not included in the +Perl::Critic core for a variety of reasons. + +%prep +%setup -q -n Perl-Critic-More-%{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.pod +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Mar 24 2011 Petr Pisar <ppisar@xxxxxxxxxx> 1.000-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..db585d4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b535e08346dfac2412e442f78b85c84a Perl-Critic-More-1.000.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