diff options
author | Marian Csontos <mcsontos@redhat.com> | 2018-10-29 16:48:42 +0100 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2018-10-29 16:48:42 +0100 |
commit | bd872064a25a95dd8f51927efeb83762d442f975 (patch) | |
tree | 631f232ee9aa3f60e5767c2ba7b3e2c410a6858f | |
parent | d1b652143abc9c0c02eea62dd424d0285ab8fb52 (diff) | |
download | lvm2-bd872064a25a95dd8f51927efeb83762d442f975.tar.gz |
spec: Fix python and applib interactions
When python3 is not present, macro expends to --disable-applib.
-rw-r--r-- | spec/build.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/build.inc b/spec/build.inc index f317892a9..d91c98135 100644 --- a/spec/build.inc +++ b/spec/build.inc @@ -32,8 +32,10 @@ %endif %enableif %{enable_python} python2-bindings %enableif %{enable_python3} python3-bindings -%enableif %{enable_python} applib -%enableif %{enable_python3} applib +# Must use this, or applib will be enabled and disabled depending in python[23] availability +%if %{enable_python3} || %{enable_python} +%enableif 1 applib +%endif %enableif %{enable_dbusd} dbus-service %enableif %{enable_dbusd} notify-dbus %enableif %{enable_dmfilemapd} dmfilemapd |