summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2018-01-11 16:40:06 +0000
committerDaniel P. Berrange <berrange@redhat.com>2018-01-12 18:15:52 +0000
commitd11f4e41990573e55ed17ed684b615f2769bcb62 (patch)
tree37a80f220ede0c069da300679b3fd239260ca17e /libvirt-python.spec.in
parent8dfa907b2fed3adbb57b68e1eaecf4831769aad1 (diff)
downloadlibvirt-python-d11f4e41990573e55ed17ed684b615f2769bcb62.tar.gz
Turn on python3 sub-RPMs for RHEL > 7
It is expected that future RHEL-8 will have python3 by default, so enable that. It is unclear whether python2 will still be available, so leave that enabled for now. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index b13e961..48a4933 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -14,7 +14,7 @@
%define _with_python2 1
%define _with_python3 0
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} > 7
%define _with_python3 1
%endif