From 861dbc7cda7397c7dc26643916dbfa7ed4c1248366ade559537b8aa29327d9f3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 12 Aug 2021 12:13:59 +0000 Subject: [PATCH] Make documentation build on SLE-15 as well OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=80 --- python39.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python39.spec b/python39.spec index e567b2b..d32d8d7 100644 --- a/python39.spec +++ b/python39.spec @@ -165,9 +165,12 @@ BuildRequires: pkgconfig(libnsl) BuildRequires: pkgconfig(libtirpc) %endif %if %{with doc} +%if 0%{?suse_version} >= 1550 BuildRequires: %{python_pkg_name}-Sphinx -%if 0%{?suse_version} >= 1500 BuildRequires: %{python_pkg_name}-python-docs-theme +%else +BuildRequires: python3-Sphinx +BuildRequires: python3-python-docs-theme %endif %endif %if %{with general}