|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: perl-Perl-Critic
|
|
|
|
|
Version: 0.22
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Critique Perl source code for best-practices
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -12,6 +12,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
BuildRequires: perl(Config::Tiny) >= 2
|
|
|
|
|
BuildRequires: perl(File::HomeDir)
|
|
|
|
|
BuildRequires: perl(IO::String)
|
|
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
|
BuildRequires: perl(Module::Pluggable) >= 3.1
|
|
|
|
@ -19,10 +20,15 @@ BuildRequires: perl(PPI) >= 1.118
|
|
|
|
|
BuildRequires: perl(Set::Scalar) >= 1.20
|
|
|
|
|
BuildRequires: perl(String::Format) >= 1.13
|
|
|
|
|
BuildRequires: perl(Perl::Tidy)
|
|
|
|
|
# Author tests
|
|
|
|
|
#BuildRequires: aspell
|
|
|
|
|
#BuildRequires: perl(File::Which)
|
|
|
|
|
#BuildRequires: perl(Test::Kwalitee)
|
|
|
|
|
#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)
|
|
|
|
|
Requires: perl(Module::Pluggable) >= 3.1
|
|
|
|
|
Requires(hint): perl(Perl::Tidy)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -53,9 +59,9 @@ chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Author tests would require: Test::Kwalitee, Test::Spelling, File::Which, and aspell
|
|
|
|
|
# TEST_AUTHOR=1 ./Build test
|
|
|
|
|
./Build test
|
|
|
|
|
# Additional requirements of author tests:
|
|
|
|
|
# Test::Kwalitee, Test::Spelling, File::Which, and aspell
|
|
|
|
|
TEST_AUTHOR=1 ./Build test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
@ -72,6 +78,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.22-2
|
|
|
|
|
- Enabled author tests.
|
|
|
|
|
- BR perl(HomeDir).
|
|
|
|
|
|
|
|
|
|
* Sun Dec 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.22-1
|
|
|
|
|
- Update to 0.22.
|
|
|
|
|
|
|
|
|
|