Skip to content

Commit 0e209d5

Browse files
committed
docs/meson: fix rst2man detection
In libvirt project we use python3 version exclusively so we should do the same in libvirt-dbus. This means that we have to check other possible command names. Signed-off-by: Pavel Hrdina <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]>
1 parent 7efd6e5 commit 0e209d5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
prog_rst2man = find_program('rst2man')
1+
prog_rst2man = find_program('rst2man', 'rst2man.py', 'rst2man-3')
22

33
configure_file(
44
command: [prog_rst2man.path(), '@INPUT@', '@OUTPUT@'],

libvirt-dbus.spec.in

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ BuildRequires: meson >= %{meson_version}
1919
BuildRequires: glib2-devel >= %{glib2_version}
2020
BuildRequires: libvirt-devel >= %{libvirt_version}
2121
BuildRequires: libvirt-glib-devel >= %{libvirt_glib_version}
22-
BuildRequires: /usr/bin/rst2man
22+
%if 0%{?rhel} == 7
23+
BuildRequires: python36-docutils
24+
%else
25+
BuildRequires: python3-docutils
26+
%endif
2327

2428
Requires: dbus
2529
Requires: glib2 >= %{glib2_version}

0 commit comments

Comments
 (0)