diff --git a/python-msal-1.15.0-doc.patch b/python-msal-1.15.0-doc.patch deleted file mode 100644 index a9312e6..0000000 --- a/python-msal-1.15.0-doc.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -up ./docs/conf.py.orig ./docs/conf.py ---- ./docs/conf.py.orig 2021-03-08 21:39:15.000000000 +0100 -+++ ./docs/conf.py 2021-03-21 10:49:37.793654190 +0100 -@@ -78,7 +78,7 @@ pygments_style = None - # a list of builtin themes. - # - # html_theme = 'alabaster' --html_theme = 'furo' -+html_theme = 'sphinx_rtd_theme' - - # Theme options are theme-specific and customize the look and feel of a theme - # further. For a list of options available for each theme, see the -@@ -182,4 +182,4 @@ epub_title = project - epub_exclude_files = ['search.html'] - - --# -- Extension configuration ------------------------------------------------- -\ Pas de fin de ligne à la fin du fichier -+# -- Extension configuration ------------------------------------------------- diff --git a/python-msal.spec b/python-msal.spec index 36ab948..9f4fdae 100644 --- a/python-msal.spec +++ b/python-msal.spec @@ -14,13 +14,10 @@ Summary: Microsoft Authentication Library (MSAL) for Python License: MIT URL: %forgeurl Source0: %forgesource -# Use sphinx-rtd-theme to build documentation instead of furo (not available in -# Fedora, see also https://bugzilla.redhat.com/show_bug.cgi?id=1910798) -Patch1: %{name}-%{version}-doc.patch BuildArch: noarch -BuildRequires: pyproject-rpm-macros +BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) @@ -43,15 +40,6 @@ Summary: %{summary} %description -n python3-%{srcname} %{_description} -%package -n python3-%{srcname}-doc -BuildRequires: python3dist(sphinx) -BuildRequires: python3dist(sphinx-rtd-theme) -Summary: Documentation for python-%{srcname} - -%description -n python3-%{srcname}-doc -Documentation for python-%{srcname} - - %prep %forgeautosetup -p1 @@ -63,10 +51,6 @@ Documentation for python-%{srcname} %build %pyproject_wheel -# Generate documentation. -PYTHONPATH="${PWD}:${PWD}/docs/" sphinx-build docs html %{?_smp_mflags} -rm -rf html/.{doctrees,buildinfo,nojekyll} - %install %pyproject_install @@ -80,13 +64,7 @@ rm -rf html/.{doctrees,buildinfo,nojekyll} %files -n python3-%{srcname} -f %{pyproject_files} -%doc contributing.md README.md -%license LICENSE - - -%files -n python3-%{srcname}-doc -%doc html -%license LICENSE +%doc *.md %changelog