From 163d703a18b7d2766bd4db670c390ae59a4cc274 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 10 Feb 2024 15:16:11 +0100 Subject: [PATCH] macros: Allow disabling verbose mode This allows using "--undefine __meson_verbose" to disable the verbose mode. This is useful when running rpmbuild in an interactive terminal and you don't want to be flooded with compilation outputs. We also add --quiet to the meson install macro if __meson_verbose is undefined to reduce the output generated by meson install. The default output stays the same, the output is only affected if __meson_verbose is explicitly undefined. --- data/macros.meson | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/macros.meson b/data/macros.meson index f5e3a15fda19..dcac9d98553c 100644 --- a/data/macros.meson +++ b/data/macros.meson @@ -1,6 +1,7 @@ %__meson %{_bindir}/meson %__meson_wrap_mode nodownload %__meson_auto_features enabled +%__meson_verbose 1 %meson \ %set_build_flags \ @@ -28,13 +29,14 @@ %{shrink:%{__meson} compile \ -C %{_vpath_builddir} \ -j %{_smp_build_ncpus} \ - --verbose \ + %{?__meson_verbose:--verbose} \ %{nil}} %meson_install \ %{shrink:DESTDIR=%{buildroot} %{__meson} install \ -C %{_vpath_builddir} \ --no-rebuild \ + %{!?__meson_verbose:--quiet} \ %{nil}} %meson_test \