SHA256
1
0
forked from pool/systemd

fix build of mini falvor by allowing a second parameter with %when

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1249
This commit is contained in:
Franck Bui 2022-02-14 08:51:10 +00:00 committed by Git OBS Bridge
parent 26f6231c47
commit a80d9ed800

View File

@ -35,8 +35,11 @@
%define suse_version +suse.82.g117bd7f14a
%define _testsuitedir /usr/lib/systemd/tests
# Similar to %with but returns true/false
%define when() %{expand:%%{?with_%{1}:true}%%{!?with_%{1}:false}}
# Similar to %%with but returns true/false. The 'true' value can be redefined
# when a second parameter is passed.
%define __when_1() %{expand:%%{?with_%{1}:true}%%{!?with_%{1}:false}}
%define __when_2() %{expand:%%{?with_%{1}:%{2}}%%{!?with_%{1}:false}}
%define when() %{expand:%%__when_%# %{*}}
%if 0%{?bootstrap}
%bcond_with coredump
@ -673,14 +676,14 @@ Have fun with these services at your own risk.
-Dresolve=%{when resolved} \
-Ddns-servers='' \
-Ddefault-dnssec=no \
-Ddns-over-tls=openssl \
-Ddns-over-tls=%{when resolved openssl} \
\
-Dpstore=%{when experimental} \
-Drepart=%{when experimental} \
-Dhomed=%{when experimental} \
-Duserdb=%{when experimental} \
\
-Dtests=%{?with_testsuite:unsafe}%{!?with_testsuite:false} \
-Dtests=%{when testsuite unsafe} \
-Dinstall-tests=%{when testsuite}
%meson_build