[perl-Params-Validate] Add %bcond --without release-tests.
corsepiu
corsepiu at fedoraproject.org
Thu Jul 18 09:30:54 UTC 2013
commit c34bc6d5b327635fbf86d9591abe48632a503e65
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date: Thu Jul 18 11:30:37 2013 +0200
Add %bcond --without release-tests.
- Skip release tests when bootstrapping (RHBZ #982253).
perl-Params-Validate.spec | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/perl-Params-Validate.spec b/perl-Params-Validate.spec
index eb3abeb..1da1cdd 100644
--- a/perl-Params-Validate.spec
+++ b/perl-Params-Validate.spec
@@ -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 at 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 at fedoraproject.org> - 1.08-1
- Upstream update.
- Update patch.
More information about the perl-devel
mailing list