Run extra tests
- Drop redundant %perl_default_filter - Run extra tests (and include necessary buildreqs) except when bootstrapping
This commit is contained in:
parent
b2402deadd
commit
e5bc9bb478
|
@ -1,12 +1,13 @@
|
||||||
Name: perl-PPIx-Utilities
|
Name: perl-PPIx-Utilities
|
||||||
Version: 1.001000
|
Version: 1.001000
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: Extensions to PPI
|
Summary: Extensions to PPI
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/PPIx-Utilities/
|
URL: http://search.cpan.org/dist/PPIx-Utilities/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
# Build:
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
# Run-time:
|
# Run-time:
|
||||||
BuildRequires: perl(base)
|
BuildRequires: perl(base)
|
||||||
|
@ -23,9 +24,20 @@ BuildRequires: perl(PPI::Dumper) >= 1.208
|
||||||
BuildRequires: perl(Task::Weaken)
|
BuildRequires: perl(Task::Weaken)
|
||||||
BuildRequires: perl(Test::Deep)
|
BuildRequires: perl(Test::Deep)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
# Extra tests:
|
||||||
|
# PPI needed by Perl::Critic, so don't run extra tests when bootstrapping
|
||||||
%{?perl_default_filter}
|
%if 0%{!?perl_bootstrap:1}
|
||||||
|
BuildRequires: aspell-en
|
||||||
|
BuildRequires: perl(File::Slurp)
|
||||||
|
BuildRequires: perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords)
|
||||||
|
BuildRequires: perl(Test::Perl::Critic)
|
||||||
|
BuildRequires: perl(Test::Distribution)
|
||||||
|
BuildRequires: perl(Test::Kwalitee)
|
||||||
|
BuildRequires: perl(Test::Pod)
|
||||||
|
BuildRequires: perl(Test::Pod::Coverage)
|
||||||
|
%endif
|
||||||
|
# Run-time:
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a collection of functions for dealing with PPI objects, many of
|
This is a collection of functions for dealing with PPI objects, many of
|
||||||
|
@ -48,6 +60,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
%if 0%{!?perl_bootstrap:1}
|
||||||
|
make test TEST_FILES="$(echo $(find xt/ -name '*.t' | grep -Fv copyright.t))"
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
|
@ -58,6 +73,10 @@ make test
|
||||||
%{_mandir}/man3/PPIx::Utilities::Statement.3pm*
|
%{_mandir}/man3/PPIx::Utilities::Statement.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 26 2012 Paul Howarth <paul@city-fan.org> - 1.001000-8
|
||||||
|
- Drop redundant %%perl_default_filter
|
||||||
|
- Run extra tests (and include necessary buildreqs) except when bootstrapping
|
||||||
|
|
||||||
* Thu Oct 25 2012 Petr Pisar <ppisar@redhat.com> - 1.001000-7
|
* Thu Oct 25 2012 Petr Pisar <ppisar@redhat.com> - 1.001000-7
|
||||||
- Specify all dependencies
|
- Specify all dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue