diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2018-01-11 16:23:46 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2018-01-12 18:15:43 +0000 |
commit | 7cde26caa9535373ff0e35a3d25d6c3a756f4b5e (patch) | |
tree | 2bebdb0fa6a564967030b3f62f08b897ab56f10a /libvirt-python.spec.in | |
parent | ba234bd83140ec96cb966fb6ec99e071dffac278 (diff) | |
download | libvirt-python-7cde26caa9535373ff0e35a3d25d6c3a756f4b5e.tar.gz |
Allow override of which sub-RPMs to build
Allow using
rpmbuild --define "with_python2 0"
to override the default logic about which python sub-RPMs to build
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.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index 5bbebeb..1619e26 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -1,10 +1,13 @@ -%define with_python2 1 -%define with_python3 0 +%define _with_python2 1 +%define _with_python3 0 %if 0%{?fedora} -%define with_python3 1 +%define _with_python3 1 %endif +%{!?with_python2: %define with_python2 %{_with_python2}} +%{!?with_python3: %define with_python3 %{_with_python3}} + Summary: The libvirt virtualization API python2 binding Name: libvirt-python Version: @PY_VERSION@ |