feat: drop sphinx docs subpackage

since sphinx generated docs are not appropriate for packaging
This commit is contained in:
Ankur Sinha (Ankur Sinha Gmail) 2023-07-06 12:14:41 +01:00
commit d46165d7e6
No known key found for this signature in database
GPG key ID: F8D8C0BEBAC898BD

View file

@ -46,14 +46,6 @@ BuildRequires: %{py3_dist matplotlib}
%description -n python3-nixio
%{description}
%package doc
Summary: %{summary}
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
%description doc
Documentation files for %{name}.
%prep
%forgesetup
@ -68,17 +60,6 @@ cp %{SOURCE1} nixio/info.json -v -p
%build
%pyproject_wheel
PYTHONPATH=. sphinx-build-3 docs/source html
# Remove unneeded files
rm -fr html/.{buildinfo,doctrees}
# Remove shebang from documentation examples
for f in html/_downloads/*/*.py; do
sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new &&
touch -r $f $f.new &&
mv $f.new $f
done
%install
%pyproject_install
%pyproject_save_files nixio
@ -89,9 +70,5 @@ done
%files -n python3-nixio -f %{pyproject_files}
%{_bindir}/nixio
%files doc
%doc README.rst html
%license LICENSE
%changelog
%autochangelog