[PATCH 03/17] rpm: use python3-docutils as the direct dep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We no longer support python2, so using a file based dep for rst2html
is not required. We do still have to do special casing for RHEL-7
though as the RPM is annoyingly different.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 libvirt.spec.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 4999df525e..8e05d3d0ea 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -266,8 +266,11 @@ BuildRequires: gettext-devel
 BuildRequires: libtool
 %endif
 BuildRequires: /usr/bin/pod2man
-# Replace with python3-docutils when we drop py2 support
-BuildRequires: /usr/bin/rst2html
+%if 0%{?rhel} == 7
+BuildRequires: python36-docutils
+%else
+BuildRequires: python3-docutils
+%endif
 BuildRequires: gcc
 BuildRequires: git
 %if 0%{?fedora} || 0%{?rhel} > 7
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux