commit 8ec73fe547df3e0934383f9dc6a90c680e35ae24 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Wed May 25 18:07:38 2011 +0200 Import and remove defattr macro. .gitignore | 1 + perl-Perl-Critic-Tics.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..a7611af 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Perl-Critic-Tics-0.006.tar.gz diff --git a/perl-Perl-Critic-Tics.spec b/perl-Perl-Critic-Tics.spec new file mode 100644 index 0000000..8c5e0f5 --- /dev/null +++ b/perl-Perl-Critic-Tics.spec @@ -0,0 +1,52 @@ +# This file is lincesed under the terms of GNU GPLv2+. +Name: perl-Perl-Critic-Tics +Version: 0.006 +Release: 1%{?dist} +Summary: Policies for things that make me wince +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Perl-Critic-Tics/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Perl-Critic-Tics-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Perl::Critic) >= 1.07 +BuildRequires: perl(Perl::Critic::TestUtils) +BuildRequires: perl(Perl::Critic::Utils) +BuildRequires: perl(Perl::Critic::Violation) +# Tests only: +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Plug-in into perlcritics. Require it. +Requires: perl(Perl::Critic) >= 1.07 +Requires: perl(Perl::Critic::Violation) + +%description +The Perl-Critic-Tics distribution includes extra policies for Perl::Critic +to address a fairly random assortment of things that make me (rjbs) wince. + +%prep +%setup -q -n Perl-Critic-Tics-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Jan 25 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.006-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff +- Remove explicit defattr diff --git a/sources b/sources index e69de29..6d294d7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dc5d3ea23a5ace74aa222211d000cc21 Perl-Critic-Tics-0.006.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