Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a967b5849d | ||
|
|
791e01fe59 | ||
|
|
731cbeb29c | ||
|
|
ffb1bcc3eb | ||
|
|
be9c7819b5 | ||
|
|
03e2822f6a | ||
|
|
d550a9e41a | ||
|
|
466a673d10 | ||
|
|
82623cae02 | ||
|
|
59016161fc | ||
|
|
d1ad3f6769 | ||
|
|
b89e221d55 | ||
|
|
05583324a9 | ||
|
|
a5f5cdf496 | ||
|
|
8fa1fa5fca | ||
|
|
3fae921c8f | ||
|
|
1f7abf830e | ||
|
|
5c3682d94b | ||
|
|
0391881889 | ||
|
|
90515d9f9d | ||
|
|
98372232f5 | ||
|
|
b116da03e7 | ||
|
|
949853df27 | ||
|
|
3b05e7e3e8 | ||
|
|
b4171b5eab | ||
|
|
6c82a1545f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
||||
/Sphinx-1.1.3.tar.gz
|
||||
/Sphinx-1.2.3.tar.gz
|
||||
|
||||
15
Sphinx-1.2.1-mantarget.patch
Normal file
15
Sphinx-1.2.1-mantarget.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- sphinx/doc/Makefile.mantarget 2014-02-13 23:28:58.604797750 +0700
|
||||
+++ sphinx/doc/Makefile 2014-02-14 00:00:45.794658764 +0700
|
||||
@@ -12,6 +12,12 @@
|
||||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
+# Likewise for man, since a man directory exist and make will assume
|
||||
+# the target is up to date
|
||||
+.PHONY: man
|
||||
+man:
|
||||
+ @$(SPHINXBUILD) -M man "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
+
|
||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
%:
|
||||
8
Sphinx-1.2.2-verbosetests.patch
Normal file
8
Sphinx-1.2.2-verbosetests.patch
Normal file
@@ -0,0 +1,8 @@
|
||||
--- Sphinx-1.2.2/tests/run.py.verbosetests 2014-03-02 14:38:09.000000000 +0700
|
||||
+++ Sphinx-1.2.2/tests/run.py 2015-02-05 18:40:47.641374670 +0700
|
||||
@@ -58,4 +58,4 @@
|
||||
sys.exit(1)
|
||||
|
||||
print('Running Sphinx test suite...')
|
||||
-nose.main()
|
||||
+nose.main(argv=['nose', '--verbosity=3'])
|
||||
@@ -1,4 +1,4 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
%if 0%{?fedora}
|
||||
%global with_python3 1
|
||||
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
||||
%else
|
||||
@@ -8,8 +8,8 @@
|
||||
%global upstream_name Sphinx
|
||||
|
||||
Name: python-sphinx
|
||||
Version: 1.1.3
|
||||
Release: 1%{?dist}
|
||||
Version: 1.2.3
|
||||
Release: 4%{?dist}
|
||||
Summary: Python documentation generator
|
||||
|
||||
Group: Development/Tools
|
||||
@@ -21,15 +21,41 @@ Group: Development/Tools
|
||||
License: BSD and Public Domain and Python and (MIT or GPLv2)
|
||||
URL: http://sphinx.pocoo.org/
|
||||
Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||
Patch0: Sphinx-1.2.1-mantarget.patch
|
||||
Patch1: Sphinx-1.2.2-verbosetests.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel >= 2.4
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-docutils
|
||||
BuildRequires: python-jinja2
|
||||
BuildRequires: python-pygments
|
||||
|
||||
# for fixes
|
||||
BuildRequires: dos2unix
|
||||
|
||||
# for testing
|
||||
BuildRequires: python-nose
|
||||
# Test dependencies
|
||||
BuildRequires: texlive-latex
|
||||
BuildRequires: gettext
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: python-sqlalchemy
|
||||
BuildRequires: python-whoosh
|
||||
# note: no Python3 xapian binding yet
|
||||
BuildRequires: xapian-bindings-python
|
||||
BuildRequires: texlive-collection-fontsrecommended
|
||||
BuildRequires: texlive-collection-latex
|
||||
BuildRequires: tex(cmap.sty)
|
||||
BuildRequires: tex(ecrm1000.tfm)
|
||||
BuildRequires: tex(fancybox.sty)
|
||||
BuildRequires: tex(footnote.sty)
|
||||
BuildRequires: tex(framed.sty)
|
||||
BuildRequires: tex(multirow.sty)
|
||||
BuildRequires: tex(parskip.sty)
|
||||
BuildRequires: tex(titlesec.sty)
|
||||
BuildRequires: tex(threeparttable.sty)
|
||||
BuildRequires: tex(upquote.sty)
|
||||
BuildRequires: tex(wrapfig.sty)
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
@@ -38,6 +64,8 @@ BuildRequires: python3-docutils
|
||||
BuildRequires: python3-jinja2
|
||||
BuildRequires: python3-pygments
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-sqlalchemy
|
||||
BuildRequires: python3-whoosh
|
||||
%endif # with_python3
|
||||
|
||||
Requires: python-docutils
|
||||
@@ -73,10 +101,39 @@ the Python docs:
|
||||
snippets and inclusion of appropriately formatted docstrings.
|
||||
|
||||
|
||||
%package latex
|
||||
Summary: LaTeX builder dependencies for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: texlive-collection-fontsrecommended
|
||||
Requires: texlive-collection-latex
|
||||
Requires: tex(cmap.sty)
|
||||
Requires: tex(ecrm1000.tfm)
|
||||
Requires: tex(fancybox.sty)
|
||||
Requires: tex(footnote.sty)
|
||||
Requires: tex(framed.sty)
|
||||
Requires: tex(multirow.sty)
|
||||
Requires: tex(parskip.sty)
|
||||
Requires: tex(titlesec.sty)
|
||||
Requires: tex(threeparttable.sty)
|
||||
Requires: tex(upquote.sty)
|
||||
Requires: tex(wrapfig.sty)
|
||||
|
||||
%description latex
|
||||
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 pulls in the TeX dependencies needed by Sphinx's LaTeX
|
||||
builder.
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-sphinx
|
||||
Summary: Python documentation generator
|
||||
Group: Development/Tools
|
||||
Summary: Python documentation generator
|
||||
Group: Development/Tools
|
||||
Requires: python3-docutils
|
||||
Requires: python3-jinja2
|
||||
Requires: python3-pygments
|
||||
@@ -108,6 +165,34 @@ the Python docs:
|
||||
* Code handling: automatic highlighting using the Pygments highlighter
|
||||
* Various extensions are available, e.g. for automatic testing of
|
||||
snippets and inclusion of appropriately formatted docstrings.
|
||||
|
||||
%package -n python3-sphinx-latex
|
||||
Summary: LaTeX builder dependencies for %{name}
|
||||
Requires: python3-sphinx = %{version}-%{release}
|
||||
Requires: texlive-collection-fontsrecommended
|
||||
Requires: texlive-collection-latex
|
||||
Requires: tex(cmap.sty)
|
||||
Requires: tex(ecrm1000.tfm)
|
||||
Requires: tex(fancybox.sty)
|
||||
Requires: tex(footnote.sty)
|
||||
Requires: tex(framed.sty)
|
||||
Requires: tex(multirow.sty)
|
||||
Requires: tex(parskip.sty)
|
||||
Requires: tex(titlesec.sty)
|
||||
Requires: tex(threeparttable.sty)
|
||||
Requires: tex(upquote.sty)
|
||||
Requires: tex(wrapfig.sty)
|
||||
|
||||
%description -n python3-sphinx-latex
|
||||
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 pulls in the TeX dependencies needed by Sphinx's LaTeX
|
||||
builder.
|
||||
%endif # with_python3
|
||||
|
||||
|
||||
@@ -117,7 +202,6 @@ Group: Documentation
|
||||
License: BSD
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
%description doc
|
||||
Sphinx is a tool that makes it easy to create intelligent and
|
||||
beautiful documentation for Python projects (or other documents
|
||||
@@ -131,8 +215,15 @@ This package contains documentation in reST and HTML formats.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{upstream_name}-%{version}%{?prerel}
|
||||
%patch0 -p1 -b .mantarget
|
||||
# not backing up since every executable file in tests/ results in
|
||||
# an additional "skipped" test
|
||||
%patch1 -p1
|
||||
sed '1d' -i sphinx/pycode/pgen2/token.py
|
||||
|
||||
# fix line encoding of bundled jquery.js
|
||||
dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
||||
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
@@ -167,6 +258,7 @@ pushd %{py3dir}
|
||||
for f in %{buildroot}%{_bindir}/sphinx-*;
|
||||
do
|
||||
mv $f $f-%{python3_version}
|
||||
ln -s %{_bindir}/`basename $f-%{python3_version}` $f-3
|
||||
done
|
||||
popd
|
||||
%endif # with_python3
|
||||
@@ -182,6 +274,10 @@ for f in %{buildroot}%{_mandir}/man1/sphinx-*.1;
|
||||
do
|
||||
cp -p $f $(echo $f | sed -e "s|.1$|-%{python3_version}.1|")
|
||||
done
|
||||
|
||||
# Remove language files, they're identical to the ones from the
|
||||
# Python 2 build that will be moved to /usr/share below
|
||||
find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \;
|
||||
%endif # with_python3
|
||||
popd
|
||||
|
||||
@@ -194,7 +290,7 @@ mv doc reST
|
||||
# patch to support this incorporated in 0.6.6
|
||||
pushd %{buildroot}%{python_sitelib}
|
||||
|
||||
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -printf "%f "`;
|
||||
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
||||
do
|
||||
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
||||
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
||||
@@ -215,17 +311,18 @@ popd
|
||||
|
||||
|
||||
%check
|
||||
make test
|
||||
LANG=en_US.UTF-8 make test
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
make test
|
||||
LANG=en_US.UTF-8 PYTHON=python3 make test
|
||||
popd
|
||||
%endif # with_python3
|
||||
|
||||
|
||||
%files -f sphinx.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES EXAMPLES LICENSE README TODO
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES EXAMPLES README.rst TODO
|
||||
%exclude %{_bindir}/sphinx-*-3
|
||||
%exclude %{_bindir}/sphinx-*-%{python3_version}
|
||||
%{_bindir}/sphinx-*
|
||||
%{python_sitelib}/*
|
||||
@@ -235,23 +332,105 @@ popd
|
||||
%exclude %{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%files latex
|
||||
%license LICENSE
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-sphinx
|
||||
%doc AUTHORS CHANGES EXAMPLES LICENSE README TODO
|
||||
%files -n python3-sphinx -f sphinx.lang
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES EXAMPLES README.rst TODO
|
||||
%{_bindir}/sphinx-*-3
|
||||
%{_bindir}/sphinx-*-%{python3_version}
|
||||
%{python3_sitelib}/*
|
||||
%dir %{_datadir}/sphinx/
|
||||
%dir %{_datadir}/sphinx/locale
|
||||
%dir %{_datadir}/sphinx/locale/*
|
||||
%{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
||||
|
||||
%files -n python3-sphinx-latex
|
||||
%license LICENSE
|
||||
%endif # with_python3
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc html reST
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-4
|
||||
- Fix line encoding of bundled jquery.js
|
||||
|
||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-3
|
||||
- Re-introduce LaTeX subpackage, solely for pulling in LaTeX dependencies
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-1
|
||||
- Update to 1.2.3
|
||||
- Mark license file with %%license instead of %%doc
|
||||
|
||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-10
|
||||
- Complete LaTeX builder deps (fixes bz#882166)
|
||||
- Make test output verbose
|
||||
- Add BRs needed to enable all tests
|
||||
|
||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-9
|
||||
- python3-sphinx package also Provides: python3-sphinx-latex
|
||||
|
||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-8
|
||||
- If a separate LaTeX subpackage is not generated, the main package should have
|
||||
a virtual Provides: for it (bz#1187989)
|
||||
|
||||
* Tue Jan 27 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-7
|
||||
- Disable separate LaTeX builder for now (bz#1185574)
|
||||
|
||||
* Thu Jan 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-6
|
||||
- Split off LaTeX builder into its own subpackages, to remove TeXLive
|
||||
dependencies from the main package.
|
||||
Thanks to Robert Kuska <rkuska@redhat.com> for feedback
|
||||
- Clean up python3-sphinx's locale files, they ended up in the python2 package.
|
||||
Share the locale files in /usr/share instead
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-4
|
||||
- Don't own the -3 scripts by python 2 package
|
||||
|
||||
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-3
|
||||
- Add sphinx-*-3 links to scripts
|
||||
Resolves: #1098109
|
||||
|
||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-2
|
||||
- Rebuild for Python 3.4
|
||||
|
||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-1
|
||||
- Update to 1.2.2
|
||||
|
||||
* Thu Feb 13 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.1-1
|
||||
- Update to 1.2.1
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Sat Mar 9 2013 Michel Salim <salimma@fedoraproject.org> - 1.1.3-7
|
||||
- Fix inheritance_diagram quoting bug, exposed by the newer, stricter dot
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Aug 21 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.3-5
|
||||
- Fix for use of sphinx's manpage writer with docutils-0.10
|
||||
|
||||
* Mon Aug 6 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-4
|
||||
- Rebuild for Python 3.3
|
||||
|
||||
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.3-3
|
||||
- remove rhel logic from with_python3 conditional
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Apr 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-1
|
||||
- Update to 1.1.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user