Accepting request 922946 from home:coolo:branches:openSUSE:Factory
- 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/922946 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=208
This commit is contained in:
parent
00e1d20da8
commit
7e7d7ba802
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<flavor>testsuite</flavor>
|
||||
</multibuild>
|
@ -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>
|
||||
|
||||
|
16
perl.spec
16
perl.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user