Clean up and run release tests

- Run release tests as well as standard test suite in %check
- Drop no-longer-needed buildreq perl(Filter::Util::Call)
- New buildreqs perl(Test::Perl::Critic), perl(Test::Pod), perl(Test::Spelling)
This commit is contained in:
Paul Howarth 2010-11-19 10:12:10 +00:00
parent eb09bd824f
commit c2ab9a1d32

View File

@ -1,7 +1,7 @@
Name: perl-Test-Requires
Summary: Checks to see if a given module can be loaded
Version: 0.06
Release: 1%{?dist}
Release: 2%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
@ -11,8 +11,13 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(Test::More) >= 0.61
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod)
# Need aspell-en for now, changing to hunspell-en
# when #592888 is resolved, probably in RHEL 6.1
BuildRequires: perl(Test::Spelling), aspell-en
Requires: perl(Test::Builder::Module)
@ -42,6 +47,7 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%check
# note the "skipped" warnings indicate success :)
make test
make test TEST_FILES="xt/*.t"
%clean
@ -54,6 +60,11 @@ rm -rf %{buildroot}
%{_mandir}/man3/*.3*
%changelog
* Thu Nov 18 2010 Paul Howarth <paul@city-fan.org> - 0.06-2
- run release tests as well as standard test suite in %%check
- drop no-longer-needed buildreq perl(Filter::Util::Call)
- new buildreqs perl(Test::Perl::Critic), perl(Test::Pod), perl(Test::Spelling)
* Tue Oct 05 2010 Iain Arnell <iarnell@gmail.com> 0.06-1
- update to latest upstream version