1
0

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
This commit is contained in:
Stephan Kulow
2014-07-26 12:47:32 +00:00
committed by Git OBS Bridge
parent 4a41e04d6a
commit b770d89011
2 changed files with 14 additions and 5 deletions

View File

@@ -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 Fri Jul 18 11:45:45 UTC 2014 - chris@computersalat.de

View File

@@ -16,7 +16,7 @@
# #
#bcond_with test %bcond_without test
Name: perl-ExtUtils-Helpers Name: perl-ExtUtils-Helpers
Version: 0.022 Version: 0.022
@@ -31,13 +31,13 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
#if %{with test} %if %{with test}
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3) BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
#endif %endif
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(File::Basename) BuildRequires: perl(File::Basename)
@@ -64,10 +64,10 @@ modules.
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
#if %{with test} %if %{with test}
%check %check
%{__make} test %{__make} test
#endif %endif
%install %install
%perl_make_install %perl_make_install