summaryrefslogtreecommitdiff
path: root/spec/source.inc
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2016-02-18 14:34:17 +0100
committerMarian Csontos <mcsontos@redhat.com>2016-02-18 20:46:03 +0100
commit04ab1fa572bbc6751463b137576bc733ec27b2ca (patch)
treedda047565e353a6ef222527e6d58469681f2e73b /spec/source.inc
parenta89ddda1a292402a2cf2422d09e58dba46079163 (diff)
downloadlvm2-04ab1fa572bbc6751463b137576bc733ec27b2ca.tar.gz
spec: Update python bindings and dbus-service
The workaround for python3 is no longer needed.
Diffstat (limited to 'spec/source.inc')
-rw-r--r--spec/source.inc17
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