Hello community, here is the log from the commit of package python3-Sphinx for openSUSE:Factory checked in at 2013-09-25 14:36:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Sphinx (Old) and /work/SRC/openSUSE:Factory/.python3-Sphinx.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Sphinx" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Sphinx/python3-Sphinx.changes 2013-06-21 19:01:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Sphinx.new/python3-Sphinx.changes 2013-09-25 14:36:16.000000000 +0200 @@ -1,0 +2,9 @@ +Tue Sep 24 11:20:41 UTC 2013 - [email protected] + +- Add sphinx-docutils-0.10.patch + Patch is already committed upstream, will be in release 1.2 + See: + https://bitbucket.org/birkenfeld/sphinx/issue/998/docutils-010-will-break-sphinx-manpage +- Change suggests to recommends, suggests are not well supported + +------------------------------------------------------------------- New: ---- sphinx-docutils-0.10.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Sphinx.spec ++++++ --- /var/tmp/diff_new_pack.PldSso/_old 2013-09-25 14:36:16.000000000 +0200 +++ /var/tmp/diff_new_pack.PldSso/_new 2013-09-25 14:36:16.000000000 +0200 @@ -25,6 +25,10 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz Patch0: python3-Sphinx-docs.patch +# PATCH-FIX-UPSTREAM sphinx-docutils-0.10.patch fix python-sphinx for python-docutils >= 0.10 +# See: https://bitbucket.org/birkenfeld/sphinx/issue/998/docutils-010-will-break-sphinx-manpage +# Will be in python-sphinx 1.2 +Patch1: sphinx-docutils-0.10.patch BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-distribute @@ -40,7 +44,7 @@ Requires: python3-Pygments Requires: python3-distribute Requires: python3-docutils -Suggests: python3-rst2pdf +Recommends: python3-rst2pdf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -76,6 +80,7 @@ %prep %setup -q -n Sphinx-%{version} %patch0 +%patch1 -p1 sed -i '/#\!/d' sphinx/pycode/pgen2/token.py # Fix non-excutable-script warning # Add Interpreter version suffix to entrypoints (and thus /usr/bin binaries) to # allow for update-alternatives later on: @@ -152,7 +157,7 @@ %{_mandir}/man1/sphinx-build-%{py3_ver}.1.gz %ghost %{_mandir}/man1/sphinx-quickstart.1.gz %{_mandir}/man1/sphinx-quickstart-%{py3_ver}.1.gz -%{python3_sitelib}/sphinx +%{python3_sitelib}/sphinx/ %{python3_sitelib}/Sphinx-%{version}-py%{py3_ver}.egg-info %files doc ++++++ sphinx-docutils-0.10.patch ++++++ diff -up Sphinx-1.1.3/sphinx/writers/manpage.py.bak Sphinx-1.1.3/sphinx/writers/manpage.py --- Sphinx-1.1.3/sphinx/writers/manpage.py.bak 2011-11-01 00:38:44.000000000 -0700 +++ Sphinx-1.1.3/sphinx/writers/manpage.py 2012-08-21 12:38:33.380808202 -0700 @@ -72,6 +72,11 @@ class ManualPageTranslator(BaseTranslato # since self.append_header() is never called, need to do this here self.body.append(MACRO_DEF) + # Overwrite admonition label translations with our own + for label, translation in admonitionlabels.items(): + self.language.labels[label] = self.deunicode(translation) + + # overwritten -- added quotes around all .TH arguments def header(self): tmpl = (".TH \"%(title_upper)s\" \"%(manual_section)s\"" @@ -193,12 +198,6 @@ class ManualPageTranslator(BaseTranslato def depart_seealso(self, node): self.depart_admonition(node) - # overwritten -- use our own label translations - def visit_admonition(self, node, name=None): - if name: - self.body.append('.IP %s\n' % - self.deunicode(admonitionlabels.get(name, name))) - def visit_productionlist(self, node): self.ensure_eol() names = [] -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
