diff options
Diffstat (limited to 'spec/source.inc')
-rw-r--r-- | spec/source.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/source.inc b/spec/source.inc index 07859ba83..97f29f1b7 100644 --- a/spec/source.inc +++ b/spec/source.inc @@ -8,6 +8,7 @@ %global enable_python 1 # Off by default - <= does not work well with or: %global enable_python3 0 +%global enable_dbusd 0 %global enable_udev 1 %global enable_systemd 1 %global enable_cmirror 1 @@ -87,6 +88,22 @@ ############################################################## +%if %{rhel} >= 8 || %{fedora} >= 23 + %if %{enable_python3} + %global enable_dbusd 1 + %else + # dbusd requires python3 + false + %endif +%endif + +%if %{enable_dbusd} + %global buildreq_python3_dbus python3-dbus + %global buildreq_python3_pyudev python3-pyudev +%endif + +############################################################## + %if %{fedora} == 16 || %{rhel} == 6 %global enable_systemd 0 |