|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
# Perform release tests
|
|
|
|
|
%bcond_without perl_Spiffy_enables_extra_test
|
|
|
|
|
|
|
|
|
|
Name: perl-Spiffy
|
|
|
|
|
Version: 0.46
|
|
|
|
|
Release: 18%{?dist}
|
|
|
|
@ -24,8 +27,10 @@ BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
%if %{with perl_Spiffy_enables_extra_test}
|
|
|
|
|
# Release Tests:
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Filter::Util::Call)
|
|
|
|
@ -57,7 +62,8 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test RELEASE_TESTING=1
|
|
|
|
|
unset RELEASE_TESTING
|
|
|
|
|
make test %{?with_perl_Spiffy_enables_extra_test:RELEASE_TESTING=1}
|
|
|
|
|
|
|
|
|
|
# Support use of %%license on old distributions
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|