From ebb8cf477f62c47afebcc2ca8e81681f5def19c9 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Tue, 1 Jul 2008 03:41:41 +0000 Subject: [PATCH] - update to 1.082 - resolve BZ#431577 - add t/ examples/ extras/ tools/, and filter --- .cvsignore | 2 +- perl-Perl-Critic.spec | 40 ++++++++++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/.cvsignore b/.cvsignore index 4e2ea27..afcb0c6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Perl-Critic-1.080.tar.gz +Perl-Critic-1.082.tar.gz diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec index ef805ce..1f0d740 100644 --- a/perl-Perl-Critic.spec +++ b/perl-Perl-Critic.spec @@ -1,15 +1,17 @@ Name: perl-Perl-Critic -Version: 1.080 -Release: 3%{?dist} +Version: 1.082 +Release: 1%{?dist} Summary: Critique Perl source code for best-practices Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Perl-Critic/ Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/perlcritic/Perl-Critic-%{version}.tar.gz +Source0: http://www.cpan.org/modules/by-module/Perl/Perl-Critic-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + BuildRequires: perl(Module::Build) BuildRequires: perl(B::Keywords) >= 1.05 BuildRequires: perl(Config::Tiny) >= 2 @@ -17,12 +19,12 @@ BuildRequires: perl(File::HomeDir) BuildRequires: perl(IO::String) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Module::Pluggable) >= 3.1 -BuildRequires: perl(PPI) >= 1.118 +BuildRequires: perl(PPI) >= 1.201 BuildRequires: perl(String::Format) >= 1.13 BuildRequires: perl(Perl::Tidy) BuildRequires: perl(Test::Memory::Cycle) -BuildRequires: perl(Readonly::XS) -BuildRequires: perl(Exception::Class) +BuildRequires: perl(Readonly) >= 1.03 +BuildRequires: perl(Exception::Class) >= 1.23 # BuildRequires: perl(Regexp::Parser) # Author tests #BuildRequires: perl(Test::Perl::Critic) @@ -32,7 +34,7 @@ BuildRequires: perl(File::Which) BuildRequires: perl(Test::Spelling) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + Requires: perl(Module::Pluggable) >= 3.1 Requires(hint): perl(Perl::Tidy) @@ -51,6 +53,18 @@ also create new Policy modules that suit your own tastes. %prep %setup -q -n Perl-Critic-%{version} +find . -type f -exec chmod -c -x {} + + +# make sure doc/tests don't generate provides +# note we first filter out the bits in _docdir... +cat << \EOF > %{name}-prov +#!/bin/sh +FOO=`perl -p -e 's|%{buildroot}%{_docdir}/%{name}-%{version}\S+||'` +%{__perl_provides} $FOO +EOF + +%define __perl_provides %{_builddir}/Perl-Critic-%{version}/%{name}-prov +chmod +x %{__perl_provides} %build %{__perl} Build.PL installdirs=vendor @@ -60,13 +74,14 @@ also create new Policy modules that suit your own tastes. %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -chmod -R u+w $RPM_BUILD_ROOT/* +%{_fixperms} $RPM_BUILD_ROOT/* %check # Additional requirements of author tests: # Test::Perl::Critic, Test::Kwalitee -TEST_AUTHOR=1 ./Build test +#TEST_AUTHOR=1 ./Build test +./Build test %clean @@ -75,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc Changes LICENSE README TODO.pod +%doc Changes LICENSE README TODO.pod examples/ extras/ tools/ %{_bindir}/* %{perl_vendorlib}/Perl/ %{_mandir}/man1/*.1* @@ -83,6 +98,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Mar 09 2008 Chris Weyl 1.082-1 +- update to 1.082 +- resolve BZ#431577 +- add t/ examples/ extras/ tools/, and filter + * Wed Feb 27 2008 Tom "spot" Callaway - 1.080-3 - Rebuild for perl 5.10 (again) diff --git a/sources b/sources index fa7187d..a95b660 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a094cce997e96954b7fc7c21f1e91cc2 Perl-Critic-1.080.tar.gz +f2ad44e084444b42f1b59b0f2f3bb387 Perl-Critic-1.082.tar.gz