diff --git a/python-streamlink.spec b/python-streamlink.spec index 0b0129a..f5967e6 100644 --- a/python-streamlink.spec +++ b/python-streamlink.spec @@ -84,12 +84,12 @@ done %py3_build # Generate documentation -%{make_build} -C docs/ man -%{make_build} -C docs/ html -rm docs/_build/html/.buildinfo +%{__python3} setup.py build_sphinx -b man +%{__python3} setup.py build_sphinx -b html +rm build/sphinx/html/.buildinfo # Drop bundled web fonts in HTML documentation -pushd ./docs/_build/html/_static/fonts/ +pushd build/sphinx/html/_static/fonts/ for f in fontawesome-webfont.*; do rm "$f" @@ -116,7 +116,7 @@ popd %py3_install # Install man page -install -Dpm 0644 docs/_build/man/%{srcname}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{srcname}.1 +install -Dpm 0644 build/sphinx/man/%{srcname}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{srcname}.1 %check @@ -134,7 +134,7 @@ TZ=UTC %pytest %files doc -%doc docs/_build/html/ +%doc build/sphinx/html/ %license LICENSE