Add %bcond --without release-tests.

- Skip release tests when bootstrapping (RHBZ #982253).
This commit is contained in:
Ralf Corsépius 2013-07-18 11:30:37 +02:00
parent b4a9d65e8d
commit c34bc6d5b3

View File

@ -5,10 +5,18 @@
# Default: --without (Exclude tests, which don't work in koji)
%bcond_with network
# --with release-tests/--without release-tests
# Default: --with (--without when bootstrapping)
%if 0%{?perl_bootstrap}
%bcond_with release_tests
%else
%bcond_without release_tests
%endif
Summary: Params-Validate Perl module
Name: perl-Params-Validate
Version: 1.08
Release: 1%{?dist}
Release: 2%{?dist}
License: Artistic2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Params-Validate/
@ -43,6 +51,7 @@ BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Readonly)
BuildRequires: perl(Readonly::XS)
%if %{with release_tests}
# For release testing tests
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::EOL)
@ -54,6 +63,7 @@ BuildRequires: perl(Test::Pod::No404s)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Test::Spelling)
BuildRequires: hunspell-en
%endif
%{?perl_default_filter}
@ -82,7 +92,7 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
%check
RELEASE_TESTING=1 %{!?with_network:SKIP_POD_NO404S=1} ./Build test
%{?with_release_tests:RELEASE_TESTING=1} %{!?with_network:SKIP_POD_NO404S=1} ./Build test
%files
%defattr(-,root,root,-)
@ -93,6 +103,10 @@ RELEASE_TESTING=1 %{!?with_network:SKIP_POD_NO404S=1} ./Build test
%{_mandir}/man3/*
%changelog
* Thu Jul 18 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-2
- Add %%bcond --without release-tests.
- Skip release tests when bootstrapping (RHBZ #982253).
* Tue Jun 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
- Upstream update.
- Update patch.