!12 add package locale and help

Merge pull request !12 from tianwei/master
This commit is contained in:
openeuler-ci-bot 2020-08-05 10:43:59 +08:00 committed by Gitee
commit 17294a7b20

View File

@ -1,6 +1,6 @@
Name: python-sphinx Name: python-sphinx
Version: 3.1.2 Version: 3.1.2
Release: 1 Release: 2
Epoch: 1 Epoch: 1
Summary: Python documentation generator Summary: Python documentation generator
License: BSD and Public Domain and Python and (MIT or GPLv2) 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 * Various extensions are available, e.g. for automatic testing of
snippets and inclusion of appropriately formatted docstrings. 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 %description help
Summary: Documentation for %{name} This package contains help documentation in reST and HTML formats.
License: BSD
Recommends: python3-sphinx = %{epoch}:%{version}-%{release}
%description doc %package locale
Sphinx is a tool that makes it easy to create intelligent and Summary:Locale files for python-sphinx
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.
%description locale
This package contains locale files for Sphinx.
%prep %prep
%autosetup -n Sphinx-%{version} -p1 %autosetup -n Sphinx-%{version} -p1
@ -206,6 +205,11 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
export PATH=%{buildroot}%{_bindir}:$PATH export PATH=%{buildroot}%{_bindir}:$PATH
%endif %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 %files -n python3-sphinx -f sphinx.lang
%license LICENSE %license LICENSE
@ -215,18 +219,15 @@ export PATH=%{buildroot}%{_bindir}:$PATH
%dir %{python3_sitelib}/sphinxcontrib/ %dir %{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
%{_libexecdir}/python3-sphinx/ %{_libexecdir}/python3-sphinx/
%dir %{_datadir}/sphinx/
%dir %{_datadir}/sphinx/locale
%dir %{_datadir}/sphinx/locale/*
%{_mandir}/man1/sphinx-*
%files help
%files doc
%license LICENSE
%doc html reST %doc html reST
%{_mandir}/man1/*
%changelog %changelog
* Wed Aug 5 2020 tianwei <tianwei12@huawei.com> - 3.1.2-2
- add package locale and help
* Fri Jul 31 2020 tianwei <tianwei12@huawei.com> - 3.1.2-1 * Fri Jul 31 2020 tianwei <tianwei12@huawei.com> - 3.1.2-1
- Package update to 3.1.2 - Package update to 3.1.2