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}