From 67be344edeced535d16f9d016cb16f6abf4eb3a94bef15c4c76dd5de17a60a69 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 15 Dec 2020 21:01:07 +0000 Subject: [PATCH] Clean up building of documentation. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nss?expand=0&rev=11 --- python-nss.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python-nss.spec b/python-nss.spec index aaadb88..ed4a244 100644 --- a/python-nss.spec +++ b/python-nss.spec @@ -30,13 +30,13 @@ Patch0: 0001-Rename-DSA-RSA-PublicKey-to-Py-DSA-RSA-PublicKey.patch # PATCH-FIX-UPSTREAM sphinx.patch bsc#[0-9]+ mcepl@suse.com # this patch makes things totally awesome Patch1: sphinx.patch +BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module devel} BuildRequires: %{python_module docutils} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: mozilla-nspr-devel BuildRequires: mozilla-nss-devel -BuildRequires: python3-Sphinx # Required for tests BuildRequires: mozilla-nss-tools %python_subpackages @@ -59,8 +59,7 @@ HTML Documentation and examples for %name. %autosetup -p1 -n python-nss-%{version} %build -%python_build -python3 setup.py build_doc +%python_build build_doc rm -rf build/sphinx/html/.buildinfo %install