Fedora requires packages to depend on "python2" RPM, not the unversioned
"python" name. Fortunately even though RHEL-6 ships a "python" RPM,
it
has a virtual Provides for the "python2" name, so we don't need to
conditionalize this.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
libvirt.spec.in | 2 +-
mingw-libvirt.spec.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 8e9836ebbd..bc8257f34b 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -305,7 +305,7 @@ BuildRequires: perl-interpreter
%else
BuildRequires: perl
%endif
-BuildRequires: python
+BuildRequires: python2
%if %{with_systemd}
BuildRequires: systemd-units
%endif
diff --git a/mingw-libvirt.spec.in b/mingw-libvirt.spec.in
index dc18d055ba..5e12bb1cae 100644
--- a/mingw-libvirt.spec.in
+++ b/mingw-libvirt.spec.in
@@ -61,7 +61,7 @@ BuildRequires: pkgconfig
# Need native version for msgfmt
BuildRequires: gettext
BuildRequires: libxslt
-BuildRequires: python
+BuildRequires: python2
%if 0%{?fedora} >= 27
BuildRequires: perl-interpreter
%else
--
2.14.3