- update to 1.082
- resolve BZ#431577 - add t/ examples/ extras/ tools/, and filter
This commit is contained in:
parent
ac7105130c
commit
ebb8cf477f
@ -1 +1 @@
|
||||
Perl-Critic-1.080.tar.gz
|
||||
Perl-Critic-1.082.tar.gz
|
||||
|
@ -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 <cweyl@alumni.drew.edu> 1.082-1
|
||||
- update to 1.082
|
||||
- resolve BZ#431577
|
||||
- add t/ examples/ extras/ tools/, and filter
|
||||
|
||||
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.080-3
|
||||
- Rebuild for perl 5.10 (again)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user