[perl-Test-Requires] Tidy up buildreqs
Paul Howarth
pghmcfc at fedoraproject.org
Sat Aug 25 16:54:43 UTC 2012
commit 3c62bf5057bc09fa8528e032ffb1d4e2302434c9
Author: Paul Howarth <paul at city-fan.org>
Date: Sat Aug 25 17:54:06 2012 +0100
Tidy up buildreqs
- BR: perl(base), perl(Cwd), perl(Data::Dumper)
- RHEL builds don't use Test::Spelling so they don't need dictionaries either
perl-Test-Requires.spec | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/perl-Test-Requires.spec b/perl-Test-Requires.spec
index a060371..d1d05ed 100644
--- a/perl-Test-Requires.spec
+++ b/perl-Test-Requires.spec
@@ -4,30 +4,33 @@
Name: perl-Test-Requires
Summary: Checks to see if a given module can be loaded
Version: 0.06
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Requires
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
+BuildRequires: perl(base)
+BuildRequires: perl(Cwd)
+BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::More) >= 0.61
+%if ! ( 0%{?rhel} )
# Test::Perl::Critic -> Perl::Critic -> PPIx::Regexp -> Test::Kwalitee ->
# Module::CPANTS::Analyse -> Test::Warn -> Sub::Uplevel -> Pod::Wordlist::hanekomu -> Test::Requires
-%if ! ( 0%{?rhel} )
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Test::Perl::Critic)
%endif
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Spelling)
-%endif
%if %(perl -e 'print $] >= 5.010 ? 1 : 0;')
BuildRequires: hunspell-en
%else
BuildRequires: aspell-en
%endif
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if ! %{rpm49}
Requires: perl(Test::Builder::Module)
@@ -69,6 +72,10 @@ rm -rf %{buildroot}
%{_mandir}/man3/Test::Requires.3pm*
%changelog
+* Sat Aug 25 2012 Paul Howarth <paul at city-fan.org> - 0.06-9
+- BR: perl(base), perl(Cwd), perl(Data::Dumper)
+- RHEL builds don't use Test::Spelling so they don't need dictionaries either
+
* Wed Aug 15 2012 Marcela Maslanova <mmaslano at redhat.com> - 0.06-8
- Conditionalize test packages
More information about the perl-devel
mailing list