From e17e4bfcc048abd1757c3efd12c7443169d67477 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Wed, 4 Sep 2019 13:47:00 +0300 Subject: [PATCH] build-doc: allow building docs on fedora 30 Signed-off-by: Yuval Lifshitz --- admin/build-doc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/build-doc b/admin/build-doc index 80bf14564f4..0c2a3a70f15 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -20,7 +20,8 @@ if command -v dpkg >/dev/null; then exit 1 fi elif command -v yum >/dev/null; then - for package in python36-devel python36-pip python36-virtualenv doxygen ditaa ant libxml2-devel libxslt-devel python36-Cython graphviz; do + python_package="python$(rpm --eval '%{python3_pkgversion}')" + for package in "$python_package"-devel "$python_package"-pip "$python_package"-virtualenv doxygen ditaa ant libxml2-devel libxslt-devel "$python_package"-Cython graphviz; do if ! rpm -q --whatprovides $package >/dev/null ; then missing="${missing:+$missing }$package" fi