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