From 1e0e551d41230a53dfa846adb76e4d29fa7d5599b527d03ce45996658f16b305 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 14 Sep 2022 13:56:16 +0000 Subject: [PATCH] - Fix documentation generation. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blinker?expand=0&rev=27 --- python-blinker.changes | 5 +++++ python-blinker.spec | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-blinker.changes b/python-blinker.changes index a904bc6..1b64b0d 100644 --- a/python-blinker.changes +++ b/python-blinker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 14 13:56:07 UTC 2022 - Matej Cepl + +- Fix documentation generation. + ------------------------------------------------------------------- Mon Sep 12 14:44:36 UTC 2022 - Arun Persaud diff --git a/python-blinker.spec b/python-blinker.spec index 392e8a4..2818e9f 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -63,8 +63,14 @@ This sub-package contains the HTML documentation. %install %python_install -cd docs; make html -%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%{python_expand pushd docs +export PYTHONPATH=%{buildroot}%{$python_sitelib} +make html +popd + +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest @@ -76,6 +82,6 @@ cd docs; make html %{python_sitelib}/blinker %files -n python-blinker-doc -%doc docs/html +%doc docs/_build/html %changelog