commit 40d250be33d1be6e67a7b62d1f3be6b4c4eab2ff Author: Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Wed Dec 12 08:50:28 2012 +0100 Add %bcond_with network (Test::Pod::No404 based tests fail in koji). perl-Log-Dispatch.spec | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) --- diff --git a/perl-Log-Dispatch.spec b/perl-Log-Dispatch.spec index 64ad25a..9e05b8a 100644 --- a/perl-Log-Dispatch.spec +++ b/perl-Log-Dispatch.spec @@ -1,6 +1,13 @@ +# Supported rpmbuild options: +# +# --with network/--without network +# include/exclude networked tests, which work in mock, but don't work in koji +# Default: --without (Exclude tests, which don't work in koji) +%bcond_with network + Name: perl-Log-Dispatch Version: 2.34 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Dispatches messages to one or more outputs Group: Development/Libraries License: Artistic 2.0 @@ -38,6 +45,7 @@ BuildRequires: perl(Test::Spelling) BuildRequires: hunspell-en BuildRequires: perl(Test::CPAN::Changes) +%if %{with network} %if 0%{?fedora} >= 18 # Optional, N/A on Fedora < 18 BuildRequires: perl(Test::Pod::No404s) @@ -45,6 +53,7 @@ BuildRequires: perl(Test::Pod::No404s) # Likely a bug underneath of Test::Pod::No404s BuildRequires: perl(LWP::Protocol::https) %endif +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -82,6 +91,9 @@ make test %{_mandir}/man3/*.3pm* %changelog +* Wed Dec 12 2012 Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> - 2.34-3 +- Add %%bcond_with network (Test::Pod::No404 based tests fail in koji). + * Wed Dec 12 2012 Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> - 2.34-2 - Fix broken condition to BR: perl(Test::Pod::No404s). - Conditionally BR: perl(LWP::Protocol::https). -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel