Build the HTML documentation and add a -doc subpackage
This commit is contained in:
parent
7ca11cc805
commit
79484872db
@ -27,11 +27,17 @@ BuildRequires: pyproject-rpm-macros
|
|||||||
# https://fedoraproject.org/wiki/Changes/DeprecatePythonMock
|
# https://fedoraproject.org/wiki/Changes/DeprecatePythonMock
|
||||||
# https://github.com/gabrielfalcao/sure/pull/161
|
# https://github.com/gabrielfalcao/sure/pull/161
|
||||||
|
|
||||||
|
# Test dependencies
|
||||||
# TODO: remove the test dependency on nose
|
# TODO: remove the test dependency on nose
|
||||||
# https://fedoraproject.org/wiki/Changes/DeprecateNose
|
# https://fedoraproject.org/wiki/Changes/DeprecateNose
|
||||||
BuildRequires: python3dist(nose)
|
BuildRequires: python3dist(nose)
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
|
|
||||||
|
# Documentation dependentcies
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: python3dist(sphinx)
|
||||||
|
BuildRequires: python3dist(sphinx-rtd-theme)
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
An idiomatic testing library for python with powerful and flexible assertions
|
An idiomatic testing library for python with powerful and flexible assertions
|
||||||
created by Gabriel Falcão. Sure’s developer experience is inspired and modeled
|
created by Gabriel Falcão. Sure’s developer experience is inspired and modeled
|
||||||
@ -50,12 +56,19 @@ Summary: %{summary}
|
|||||||
%description -n python3-%{srcname} %{common_description}
|
%description -n python3-%{srcname} %{common_description}
|
||||||
|
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for Sure
|
||||||
|
|
||||||
|
%description doc %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{srcname}-%{version}
|
%autosetup -p1 -n %{srcname}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
%make_build -C docs/ html SPHINXOPTS='%{?_smp_mflags}'
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -69,9 +82,13 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
|
|
||||||
|
%files doc
|
||||||
%doc CHANGELOG.md
|
%doc CHANGELOG.md
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%doc TODO.rst
|
%doc TODO.rst
|
||||||
|
%doc docs/build/html
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
@ -86,6 +103,7 @@ Summary: %{summary}
|
|||||||
- Package CHANGELOG.md, README.rst, and TODO.rst
|
- Package CHANGELOG.md, README.rst, and TODO.rst
|
||||||
- Update summaries and descriptions
|
- Update summaries and descriptions
|
||||||
- Switch to pyproject-rpm-macros
|
- Switch to pyproject-rpm-macros
|
||||||
|
- Build the HTML documentation and add a -doc subpackage
|
||||||
|
|
||||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.4.11-13
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.4.11-13
|
||||||
- Rebuilt for Python 3.10
|
- Rebuilt for Python 3.10
|
||||||
|
Loading…
Reference in New Issue
Block a user