mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-01 00:21:59 +03:00
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>
This commit is contained 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@
|
||||
|
Reference in New Issue
Block a user