]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: depend on python2, not bare python
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 15 Mar 2018 13:44:31 +0000 (13:44 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 16 Mar 2018 17:05:38 +0000 (17:05 +0000)
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.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in
mingw-libvirt.spec.in

index 8e9836ebbdb9955dc32827a8390f4b554ddd0bbd..bc8257f34b29cf9f30724732b8387eb5c4becd55 100644 (file)
@@ -305,7 +305,7 @@ BuildRequires: perl-interpreter
 %else
 BuildRequires: perl
 %endif
-BuildRequires: python
+BuildRequires: python2
 %if %{with_systemd}
 BuildRequires: systemd-units
 %endif
index dc18d055ba5c17e028fab91926135895b6cea8ce..5e12bb1caea6272d397e2ef734e28a82f63a0e7a 100644 (file)
@@ -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