From ee6097adeb172d1234c9fba3e5b96c40bc649e4735975abd913023061da927fa Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 13 Sep 2023 11:35:07 +0000 Subject: [PATCH] Accepting request 1110637 from GNOME:Next - Use RPM ternary operations to specify true/false arguments based on build conditions (%[%{with FOO} ? "true" : "false"]) OBS-URL: https://build.opensuse.org/request/show/1110637 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=441 --- gtk3.changes | 6 ++++++ gtk3.spec | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gtk3.changes b/gtk3.changes index ff6a72a..1014ba6 100644 --- a/gtk3.changes +++ b/gtk3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 12 14:27:25 UTC 2023 - Dominique Leuenberger + +- Use RPM ternary operations to specify true/false arguments based + on build conditions (%[%{with FOO} ? "true" : "false"]) + ------------------------------------------------------------------- Mon Aug 14 03:34:22 UTC 2023 - Yifan Jiang diff --git a/gtk3.spec b/gtk3.spec index c386c83..3c293c2 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -399,11 +399,11 @@ cp -a %{SOURCE1} . %build %meson \ - -D broadway_backend=%{?with_broadway:true}%{!?with_broadway:false} \ - -D cloudproviders=%{?with_clouds:true}%{!?with_clouds:false} \ + -D broadway_backend=%[%{with broadway} ? "true" : "false"] \ + -D cloudproviders=%[%{with clouds} ? "true" : "false"] \ -D gtk_doc=true \ -D man=true \ - -D tests=%{?with_tests:true}%{!?with_tests:false} \ + -D tests=%[%{with tests} ? "true" : "false"] \ -D builtin_immodules=wayland,waylandgtk \ ; %meson_build