Accepting request 999884 from Base:System

OBS-URL: https://build.opensuse.org/request/show/999884
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/m4?expand=0&rev=39
This commit is contained in:
Dominique Leuenberger 2022-09-01 20:09:22 +00:00 committed by Git OBS Bridge
commit c0042219da
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 31 08:10:20 UTC 2022 - Stephan Kulow <coolo@suse.com>
- Use %make_build macro and make sure we run the profiling run with -j1
-------------------------------------------------------------------
Mon Jul 19 12:48:42 UTC 2021 - Andreas Schwab <schwab@suse.de>

15
m4.spec
View File

@ -1,7 +1,7 @@
#
# spec file for package m4
#
# 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
@ -51,16 +51,17 @@ GNU m4 is an implementation of the traditional Unix macro processor.
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes
%if %{do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
make check %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
make %{?_smp_mflags} clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# run profiling check sequentially to have it reproducible
%make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate}"
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
make %{?_smp_mflags} V=1
%make_build
%endif
%check
make %{?_smp_mflags} check
%make_build check
%install
%make_install