diff --git a/python-sphinx.spec b/python-sphinx.spec index 8af8f67e60dc4cffe9f8851dfb191381b2eed380..cefcbe9e6a9595934ed571f92b45eb8ad06695bd 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -1,6 +1,6 @@ Name: python-sphinx Version: 3.1.2 -Release: 1 +Release: 2 Epoch: 1 Summary: Python documentation generator License: BSD and Public Domain and Python and (MIT or GPLv2) @@ -114,22 +114,21 @@ the Python docs: * Various extensions are available, e.g. for automatic testing of snippets and inclusion of appropriately formatted docstrings. +%package help +Summary:Documentation for %{name} +Requires: python(Sphinx) = %{?epoch}:%{version}-%{release} +Provides: python-sphinx-doc python-sphinx-latex +Obsoletes: python-sphinx-doc < %{?epoch}:%{version}-%{release} +Obsoletes: python-sphinx-latex < %{?epoch}:%{version}-%{release} -%package doc -Summary: Documentation for %{name} -License: BSD -Recommends: python3-sphinx = %{epoch}:%{version}-%{release} +%description help +This package contains help documentation in reST and HTML formats. -%description doc -Sphinx is a tool that makes it easy to create intelligent and -beautiful documentation for Python projects (or other documents -consisting of multiple reStructuredText sources), written by Georg -Brandl. It was originally created to translate the new Python -documentation, but has now been cleaned up in the hope that it will be -useful to many other projects. - -This package contains documentation in reST and HTML formats. +%package locale +Summary:Locale files for python-sphinx +%description locale +This package contains locale files for Sphinx. %prep %autosetup -n Sphinx-%{version} -p1 @@ -206,6 +205,11 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} export PATH=%{buildroot}%{_bindir}:$PATH %endif +%files locale -f sphinx.lang +%license LICENSE +%dir %{_datadir}/sphinx/ +%dir %{_datadir}/sphinx/locale +%dir %{_datadir}/sphinx/locale/* %files -n python3-sphinx -f sphinx.lang %license LICENSE @@ -215,18 +219,15 @@ export PATH=%{buildroot}%{_bindir}:$PATH %dir %{python3_sitelib}/sphinxcontrib/ %{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/ %{_libexecdir}/python3-sphinx/ -%dir %{_datadir}/sphinx/ -%dir %{_datadir}/sphinx/locale -%dir %{_datadir}/sphinx/locale/* -%{_mandir}/man1/sphinx-* - -%files doc -%license LICENSE +%files help %doc html reST - +%{_mandir}/man1/* %changelog +* Wed Aug 5 2020 tianwei - 3.1.2-2 +- add package locale and help + * Fri Jul 31 2020 tianwei - 3.1.2-1 - Package update to 3.1.2