Accepting request 956107 from devel:languages:perl

- Add multibuild flavor to split the testsuite out of the main package
  build time. The testsuite dominates the build time and having perl
  in the bootstrap cycle, we better seperate it. The testsuite flavor
  rebuilds the same package the same way, but runs the check section

OBS-URL: https://build.opensuse.org/request/show/956107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl?expand=0&rev=123
This commit is contained in:
Dominique Leuenberger 2022-02-23 15:25:34 +00:00 committed by Git OBS Bridge
commit 50689f7c78
4 changed files with 25 additions and 6 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<flavor>testsuite</flavor>
</multibuild>

View File

@ -12,7 +12,7 @@ gdbm commit d3e27957).
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/ext/GDBM_File/GDBM_File.xs b/ext/GDBM_File/GDBM_File.xs
index cd0bb6f26ffa..494c2889ca89 100644
index cd0bb6f26ff..494c2889ca8 100644
--- a/ext/GDBM_File/GDBM_File.xs
+++ b/ext/GDBM_File/GDBM_File.xs
@@ -145,14 +145,13 @@ output_datum(pTHX_ SV *arg, char *str, int size)

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Oct 4 08:08:30 UTC 2021 - Stephan Kulow <coolo@suse.com>
- Add multibuild flavor to split the testsuite out of the main package
build time. The testsuite dominates the build time and having perl
in the bootstrap cycle, we better seperate it. The testsuite flavor
rebuilds the same package the same way, but runs the check section
-------------------------------------------------------------------
Thu Sep 2 15:22:45 UTC 2021 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package perl
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,10 +16,15 @@
#
%define flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" != ""
%define name_suffix -%{flavor}
%endif
%define pversion 5.34.0
# set to %nil when equal to pversion
%global versionlist %nil
Name: perl
Name: perl%{?name_suffix}
Version: 5.34.0
Release: 0
Summary: The Perl interpreter
@ -27,7 +32,7 @@ License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Languages/Perl
URL: https://www.perl.org/
Source: https://www.cpan.org/src/5.0/perl-%{version}.tar.xz
Source1: %{name}-rpmlintrc
Source1: perl-rpmlintrc
Source2: macros.perl
Source3: README.macros
Source4: baselibs.conf
@ -225,7 +230,8 @@ mv savelib lib
make %{?_smp_mflags}
%check
%if !0%{?qemu_user_space_build}
%if "%{name}" == "perl-testsuite" && !0%{?qemu_user_space_build}
%define _unpackaged_files_terminate_build 0
TEST_JOBS="%{jobs}" make %{?_smp_mflags} test
%endif
@ -347,6 +353,7 @@ EOF
done)
} > perl-base-excludes
%if "%{name}" == "perl"
%files base -f perl-base-filelist
%license Copying Artistic
%dir /usr/lib/perl5
@ -373,5 +380,6 @@ EOF
%{_mandir}/man1/*
%{_mandir}/man3/*
%doc /usr/lib/perl5/*/pod
%endif
%changelog