From b770d8901140099157ca7c13e2f80913460938204f61b19550882afdf7226cf6 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 26 Jul 2014 12:47:32 +0000 Subject: [PATCH] Accepting request 242476 from home:dimstar:branches:devel:languages:perl Use build conditions as described were requested in SR#241475 OBS-URL: https://build.opensuse.org/request/show/242476 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-Helpers?expand=0&rev=6 --- perl-ExtUtils-Helpers.changes | 9 +++++++++ perl-ExtUtils-Helpers.spec | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/perl-ExtUtils-Helpers.changes b/perl-ExtUtils-Helpers.changes index 757026b..7f09099 100644 --- a/perl-ExtUtils-Helpers.changes +++ b/perl-ExtUtils-Helpers.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jul 26 11:31:49 UTC 2014 - dimstar@opensuse.org + +- Use build conditionals as wanted: + + Use build conditional 'with/without test'. + + due to the usage of bcond_without, the DEFAULT is to enable + tests. + + To skip the tests, one can use "osc build --without test". + ------------------------------------------------------------------- Fri Jul 18 11:45:45 UTC 2014 - chris@computersalat.de diff --git a/perl-ExtUtils-Helpers.spec b/perl-ExtUtils-Helpers.spec index 499cd4f..3a61d4a 100644 --- a/perl-ExtUtils-Helpers.spec +++ b/perl-ExtUtils-Helpers.spec @@ -16,7 +16,7 @@ # -#bcond_with test +%bcond_without test Name: perl-ExtUtils-Helpers Version: 0.022 @@ -31,13 +31,13 @@ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#if %{with test} +%if %{with test} BuildRequires: perl(Cwd) BuildRequires: perl(File::Spec) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) >= 0.88 -#endif +%endif BuildRequires: perl(Carp) BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(File::Basename) @@ -64,10 +64,10 @@ modules. %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} -#if %{with test} +%if %{with test} %check %{__make} test -#endif +%endif %install %perl_make_install