From de81e8e7b0db1760ece4757161abde165a247b79 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 5 Jun 2008 16:19:13 +0000 Subject: [PATCH 1/6] Initialize branch F-9 for python-sphinx --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..1c26f78 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-9 From d9e0ae5757a0f4fffcd1e4e2a4baa4cb3ad98462 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 5 Jun 2008 19:21:35 +0000 Subject: [PATCH 2/6] python-sphinx-0.3 --- .cvsignore | 1 + python-sphinx.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 121 insertions(+) create mode 100644 python-sphinx.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a501e9d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Sphinx-0.3.tar.gz diff --git a/python-sphinx.spec b/python-sphinx.spec new file mode 100644 index 0000000..e05cd66 --- /dev/null +++ b/python-sphinx.spec @@ -0,0 +1,119 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} + +%define upstream_name Sphinx + +Name: python-sphinx +Version: 0.3 +Release: 1%{?dist} +Summary: Python documentation generator + +Group: Development/Tools +License: BSD +URL: http://sphinx.pocoo.org/ +Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel python-docutils python-jinja python-setuptools +Requires: python-docutils python-jinja python-pygments + + +%description +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. + +Sphinx uses reStructuredText as its markup language, and many of its +strengths come from the power and straightforwardness of +reStructuredText and its parsing and translating suite, the Docutils. + +Although it is still under constant development, the following +features are already present, work fine and can be seen "in action" in +the Python docs: + + * Output formats: HTML (including Windows HTML Help) and LaTeX, + for printable PDF versions + * Extensive cross-references: semantic markup and automatic links + for functions, classes, glossary terms and similar pieces of + information + * Hierarchical structure: easy definition of a document tree, with + automatic links to siblings, parents and children + * Automatic indices: general index as well as a module index + * 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 doc +Summary: Documentation for ${name} +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 +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 rST and HTML formats + + +%prep +%setup -q -n %{upstream_name}-%{version} + + +%build +%{__python} setup.py build +cd doc +make html +mv _build/html .. +rm -rf _* + + +%install +rm -rf $RPM_BUILD_ROOT +# Fix EOL delimiters +sed -i 's|\r||g' LICENSE +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS CHANGES LICENSE README TODO +%{_bindir}/sphinx-* +%{python_sitelib}/sphinx +%if 0%{?fedora} >= 9 +%{python_sitelib}/*.egg-info +%endif + +%files doc +%defattr(-,root,root,-) +%doc doc html + + +%changelog +* Mon May 26 2008 Michel Salim - 0.3-1 +- Update to 0.3 + +* Fri May 2 2008 Michel Salim - 0.1.61950-3 +- Split documentation into subpackage +- Exclude C files (not built by default anyway) + +* Wed Apr 16 2008 José Matos - 0.1.61950-2 +- Build html documentation, include it and include the rst + documentation. + +* Thu Mar 27 2008 Michel Salim 0.1.61950-1 +- Initial package diff --git a/sources b/sources index e69de29..4325461 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +98550d222aec91a029c0921819c4c49f Sphinx-0.3.tar.gz From 08db86ecb60adb36eb44efca08a2a393ebf8d4b0 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 6 Jun 2008 17:23:07 +0000 Subject: [PATCH 3/6] Package egginfo on F-8 too --- python-sphinx.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-sphinx.spec b/python-sphinx.spec index e05cd66..b1c479b 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -94,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS CHANGES LICENSE README TODO %{_bindir}/sphinx-* %{python_sitelib}/sphinx -%if 0%{?fedora} >= 9 +%if 0%{?fedora} >= 8 %{python_sitelib}/*.egg-info %endif From 0cf2bb8ad482eee58fab93019d9068cbfd3a61d9 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 26 Aug 2008 02:02:58 +0000 Subject: [PATCH 4/6] - Update to 0.4.2 --- .cvsignore | 2 +- python-sphinx.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index a501e9d..e6666b5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Sphinx-0.3.tar.gz +Sphinx-0.4.2.tar.gz diff --git a/python-sphinx.spec b/python-sphinx.spec index b1c479b..242e9f2 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -4,7 +4,7 @@ %define upstream_name Sphinx Name: python-sphinx -Version: 0.3 +Version: 0.4.2 Release: 1%{?dist} Summary: Python documentation generator @@ -49,7 +49,7 @@ the Python docs: %package doc -Summary: Documentation for ${name} +Summary: Documentation for %{name} Group: Documentation License: BSD Requires: %{name} = %{version}-%{release} @@ -104,6 +104,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Aug 25 2008 Michel Salim - 0.4.2-1 +- Update to 0.4.2 + * Mon May 26 2008 Michel Salim - 0.3-1 - Update to 0.3 diff --git a/sources b/sources index 4325461..2b6a469 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -98550d222aec91a029c0921819c4c49f Sphinx-0.3.tar.gz +5fb591961e1d834f726b3e5d29bec924 Sphinx-0.4.2.tar.gz From 5ae371b9de20e47a7ec2a06edefd095160fc7771 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 10 Oct 2008 13:34:30 +0000 Subject: [PATCH 5/6] - Update to 0.4.3 --- .cvsignore | 2 +- python-sphinx.spec | 10 +++++++--- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.cvsignore b/.cvsignore index e6666b5..dcc065b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Sphinx-0.4.2.tar.gz +Sphinx-0.4.3.tar.gz diff --git a/python-sphinx.spec b/python-sphinx.spec index 242e9f2..bf58db7 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -4,7 +4,7 @@ %define upstream_name Sphinx Name: python-sphinx -Version: 0.4.2 +Version: 0.4.3 Release: 1%{?dist} Summary: Python documentation generator @@ -94,9 +94,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS CHANGES LICENSE README TODO %{_bindir}/sphinx-* %{python_sitelib}/sphinx -%if 0%{?fedora} >= 8 %{python_sitelib}/*.egg-info -%endif %files doc %defattr(-,root,root,-) @@ -104,6 +102,12 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Oct 10 2008 Michel Salim - 0.4.3-1 +- Update to 0.4.3 + +* Wed Aug 27 2008 Toshio Kuratomi - 0.4.2-1.1 +- Fix for EL-5 build. + * Mon Aug 25 2008 Michel Salim - 0.4.2-1 - Update to 0.4.2 diff --git a/sources b/sources index 2b6a469..4507bc8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5fb591961e1d834f726b3e5d29bec924 Sphinx-0.4.2.tar.gz +b3c17f1b5be0b76c373a2474488f1662 Sphinx-0.4.3.tar.gz From e4b438871952644fbad91f51b9a9509c673e0747 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 25 Nov 2008 01:48:18 +0000 Subject: [PATCH 6/6] - Update to 0.5 --- .cvsignore | 2 +- python-sphinx.spec | 12 ++++++++++-- sources | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index dcc065b..4278cba 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Sphinx-0.4.3.tar.gz +Sphinx-0.5.tar.gz diff --git a/python-sphinx.spec b/python-sphinx.spec index bf58db7..9cdb5a4 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -4,7 +4,7 @@ %define upstream_name Sphinx Name: python-sphinx -Version: 0.4.3 +Version: 0.5 Release: 1%{?dist} Summary: Python documentation generator @@ -84,12 +84,17 @@ rm -rf $RPM_BUILD_ROOT sed -i 's|\r||g' LICENSE %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +# Language files; not under /usr/share, need to be handled manually +(cd $RPM_BUILD_ROOT && find . -name 'sphinx.mo') | sed -e 's|^.||' | sed -e \ + 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ + >> %{name}.lang + %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS CHANGES LICENSE README TODO %{_bindir}/sphinx-* @@ -102,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Nov 24 2008 Michel Salim - 0.5-1 +- Update to 0.5 + * Fri Oct 10 2008 Michel Salim - 0.4.3-1 - Update to 0.4.3 diff --git a/sources b/sources index 4507bc8..e661d0e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b3c17f1b5be0b76c373a2474488f1662 Sphinx-0.4.3.tar.gz +55a33cc13b5096c8763cd4a933b30ddc Sphinx-0.5.tar.gz