Don't BR: perl(Test::Perl::Critic) if we're bootstrapping
This commit is contained in:
parent
ca2b7d13c0
commit
6157a4b7af
@ -1,6 +1,6 @@
|
||||
Name: perl-Package-Generator
|
||||
Version: 0.103
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Generate new packages quickly and easily
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
@ -14,8 +14,11 @@ BuildRequires: perl(Params::Util)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Test::Perl::Critic -> Perl::Critic -> Exception::Class -> Test::EOL ->
|
||||
# Pod::Coverage::TrustPod -> Pod::Eventual -> Mixin::Linewise ->
|
||||
# Sub::Exporter -> Package::Generator
|
||||
# Test::Perl::Critic not available in EPEL-4
|
||||
%if "%{rhel}" != "4"
|
||||
%if "%{rhel}" != "4" && 0%{!?perl_bootstrap:1}
|
||||
BuildRequires: perl(Test::Perl::Critic)
|
||||
%endif
|
||||
BuildRequires: perl(Test::Pod)
|
||||
@ -41,7 +44,7 @@ find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test PERL_TEST_CRITIC=1
|
||||
make test %{!?perl_bootstrap:PERL_TEST_CRITIC=1}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -54,6 +57,9 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man3/Package::Reaper.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 7 2012 Paul Howarth <paul@city-fan.org> - 0.103-9
|
||||
- Don't BR: perl(Test::Perl::Critic) if we're bootstrapping
|
||||
|
||||
* Wed Feb 1 2012 Paul Howarth <paul@city-fan.org> - 0.103-8
|
||||
- Run Perl::Critic test in %%check too
|
||||
- BR: perl(Test::Perl::Critic)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user