[1741] | 1 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} |
---|
| 2 | |
---|
| 3 | %global upstream_name Sphinx |
---|
| 4 | |
---|
| 5 | Name: python-sphinx |
---|
[3795] | 6 | Version: 1.0.7 |
---|
[5701] | 7 | Release: 2%{?_dist_release} |
---|
[1741] | 8 | Summary: Python documentation generator |
---|
| 9 | |
---|
| 10 | Group: Development/Tools |
---|
| 11 | |
---|
| 12 | # Unless otherwise noted, the license for code is BSD |
---|
| 13 | # sphinx/util/stemmer.py Public Domain |
---|
| 14 | # sphinx/pycode/pgen2 Python |
---|
| 15 | # jquery (MIT or GPLv2) |
---|
| 16 | License: BSD and Public Domain and Python and (MIT or GPLv2) |
---|
| 17 | URL: http://sphinx.pocoo.org/ |
---|
[2258] | 18 | Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz |
---|
[1741] | 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 21 | BuildArch: noarch |
---|
| 22 | BuildRequires: python-devel >= 2.4 |
---|
| 23 | BuildRequires: python-setuptools |
---|
[3795] | 24 | %if %{?_dist_release} == "vl5" |
---|
| 25 | BuildRequires: python-simplejson |
---|
| 26 | BuildRequires: docutils |
---|
| 27 | %else |
---|
[1741] | 28 | BuildRequires: python-docutils |
---|
[3795] | 29 | %endif |
---|
[1741] | 30 | BuildRequires: python-jinja2 |
---|
| 31 | BuildRequires: python-nose |
---|
[3795] | 32 | %if %{?_dist_release} == "vl5" |
---|
| 33 | Requires: docutils |
---|
| 34 | %else |
---|
[1741] | 35 | Requires: python-docutils |
---|
[3795] | 36 | %endif |
---|
[1741] | 37 | Requires: python-jinja2 |
---|
| 38 | Requires: python-pygments |
---|
| 39 | |
---|
[3795] | 40 | Vendor: Project Vine |
---|
| 41 | Distribution: Vine Linux |
---|
[1741] | 42 | |
---|
| 43 | %description |
---|
| 44 | Sphinx is a tool that makes it easy to create intelligent and |
---|
| 45 | beautiful documentation for Python projects (or other documents |
---|
| 46 | consisting of multiple reStructuredText sources), written by Georg |
---|
| 47 | Brandl. It was originally created to translate the new Python |
---|
| 48 | documentation, but has now been cleaned up in the hope that it will be |
---|
| 49 | useful to many other projects. |
---|
| 50 | |
---|
| 51 | Sphinx uses reStructuredText as its markup language, and many of its |
---|
| 52 | strengths come from the power and straightforwardness of |
---|
| 53 | reStructuredText and its parsing and translating suite, the Docutils. |
---|
| 54 | |
---|
| 55 | Although it is still under constant development, the following |
---|
| 56 | features are already present, work fine and can be seen "in action" in |
---|
| 57 | the Python docs: |
---|
| 58 | |
---|
| 59 | * Output formats: HTML (including Windows HTML Help) and LaTeX, |
---|
| 60 | for printable PDF versions |
---|
| 61 | * Extensive cross-references: semantic markup and automatic links |
---|
| 62 | for functions, classes, glossary terms and similar pieces of |
---|
| 63 | information |
---|
| 64 | * Hierarchical structure: easy definition of a document tree, with |
---|
| 65 | automatic links to siblings, parents and children |
---|
| 66 | * Automatic indices: general index as well as a module index |
---|
| 67 | * Code handling: automatic highlighting using the Pygments highlighter |
---|
| 68 | * Various extensions are available, e.g. for automatic testing of |
---|
| 69 | snippets and inclusion of appropriately formatted docstrings. |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %package doc |
---|
| 73 | Summary: Documentation for %{name} |
---|
| 74 | Group: Documentation |
---|
| 75 | License: BSD |
---|
| 76 | Requires: %{name} = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %description doc |
---|
| 80 | Sphinx is a tool that makes it easy to create intelligent and |
---|
| 81 | beautiful documentation for Python projects (or other documents |
---|
| 82 | consisting of multiple reStructuredText sources), written by Georg |
---|
| 83 | Brandl. It was originally created to translate the new Python |
---|
| 84 | documentation, but has now been cleaned up in the hope that it will be |
---|
| 85 | useful to many other projects. |
---|
| 86 | |
---|
| 87 | This package contains documentation in reST and HTML formats. |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %prep |
---|
[2258] | 91 | %setup -q -n %{upstream_name}-%{version} |
---|
[1741] | 92 | %__sed '1d' -i sphinx/pycode/pgen2/token.py |
---|
| 93 | |
---|
| 94 | %build |
---|
| 95 | %{__python} setup.py build |
---|
| 96 | pushd doc |
---|
| 97 | %__make html |
---|
| 98 | %__rm -rf _build/html/.buildinfo |
---|
| 99 | %__mv _build/html .. |
---|
| 100 | %__rm -rf _* |
---|
| 101 | popd |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %install |
---|
| 105 | %__rm -rf %{buildroot} |
---|
| 106 | |
---|
| 107 | %{__python} setup.py install --skip-build --root %{buildroot} |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | # Manpages not in beta release yet |
---|
| 111 | #pushd doc |
---|
| 112 | # Deliver man pages |
---|
| 113 | #install -d %{buildroot}%{_mandir}/man1 |
---|
| 114 | #mv sphinx-*.1 %{buildroot}%{_mandir}/man1/ |
---|
| 115 | #popd |
---|
| 116 | |
---|
| 117 | # Deliver rst files |
---|
| 118 | %__mv doc reST |
---|
| 119 | |
---|
| 120 | # Move language files to /usr/share in association with %patch1 |
---|
| 121 | pushd %{buildroot}%{python_sitelib} |
---|
| 122 | |
---|
| 123 | for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -printf "%f "`; |
---|
| 124 | do |
---|
| 125 | install -d %{buildroot}%{_datadir}/sphinx/locale/$lang |
---|
| 126 | install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES |
---|
| 127 | %__mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \ |
---|
| 128 | %{buildroot}%{_datadir}/sphinx/locale/$lang/ |
---|
| 129 | %__mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \ |
---|
| 130 | %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/ |
---|
| 131 | %__rm -rf sphinx/locale/$lang |
---|
| 132 | done |
---|
| 133 | popd |
---|
| 134 | %find_lang sphinx |
---|
| 135 | |
---|
| 136 | # Language files; Since these are javascript, it's not immediately obvious to |
---|
| 137 | # find_lang that they need to be marked with a language. |
---|
| 138 | (cd %{buildroot} && find . -name 'sphinx.js') | %__sed -e 's|^.||' | %__sed -e \ |
---|
| 139 | 's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \ |
---|
| 140 | >> sphinx.lang |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | %clean |
---|
| 144 | %__rm -rf %{buildroot} |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | %check |
---|
| 148 | %__make test |
---|
| 149 | |
---|
| 150 | |
---|
| 151 | %files -f sphinx.lang |
---|
| 152 | %defattr(-,root,root,-) |
---|
| 153 | %doc AUTHORS CHANGES EXAMPLES LICENSE README TODO |
---|
| 154 | %{_bindir}/sphinx-* |
---|
| 155 | %{python_sitelib}/* |
---|
| 156 | %{_datadir}/sphinx/ |
---|
| 157 | %exclude %{_datadir}/sphinx/locale/*/sphinx.js |
---|
| 158 | #%{_mandir}/man1/* |
---|
| 159 | |
---|
| 160 | %files doc |
---|
| 161 | %defattr(-,root,root,-) |
---|
| 162 | %doc html reST |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | %changelog |
---|
[5701] | 166 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.7-2 |
---|
| 167 | - rebuild with python-2.7.2 |
---|
| 168 | |
---|
[3795] | 169 | * Thu May 5 2011 IWAI, Masaharu <iwai@alib.jp> 1.0.7-1 |
---|
| 170 | - new upstream release |
---|
| 171 | - add BuildRequires: python-simplejson for Vine5 |
---|
| 172 | - add Vendor and Distribution tags |
---|
| 173 | |
---|
[2258] | 174 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1 |
---|
| 175 | - update sphinx to 1.0.5 |
---|
| 176 | |
---|
[1741] | 177 | * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-1.b2 |
---|
| 178 | - initial build based on Fedora development |
---|
| 179 | |
---|
| 180 | * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-0.1.b2.1 |
---|
| 181 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 182 | |
---|
| 183 | * Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.b2 |
---|
| 184 | - Update to 1.0 beta 2 |
---|
| 185 | - Fixes problem building html documentation in non-English locales |
---|
| 186 | |
---|
| 187 | * Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.b1 |
---|
| 188 | - Update to 1.0 beta 1 |
---|
| 189 | |
---|
| 190 | * Tue May 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.6.6-1 |
---|
| 191 | - Update to 0.6.6 |
---|
| 192 | |
---|
| 193 | * Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2 |
---|
| 194 | - Few minor tweaks to Gareth's spec file update |
---|
| 195 | |
---|
| 196 | * Mon May 10 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 0.6.5-1.hp |
---|
| 197 | - Update to 0.6.5 |
---|
| 198 | - Initial import of python-sphinx from Fedora Rawhide for use in HP CMS |
---|
| 199 | - Enforce that Sphinx requires Python 2.4 or later via an explicit BR |
---|
| 200 | - Minor tweaks to spec file |
---|
| 201 | - Move language files to %%{_datadir}, idea borrowed from Debian's sphinx |
---|
| 202 | package |
---|
| 203 | - Deliver man pages for sphinx-build & sphinx-quickstart |
---|
| 204 | - Deliver rst documentation files to reST directory in doc sub-package |
---|
| 205 | - Add %%check section for Python2 and add BR on python-nose |
---|
| 206 | |
---|
| 207 | * Wed Jan 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1 |
---|
| 208 | - Update to 0.6.4 |
---|
| 209 | - Fixes a problem using autodoc with pylons projects. |
---|
| 210 | |
---|
| 211 | * Fri Sep 4 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.3-1 |
---|
| 212 | - Update to 0.6.3 |
---|
| 213 | |
---|
| 214 | * Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.2-1 |
---|
| 215 | - Update to 0.6.2 -- upstream bugfix requested inside bz#512438 |
---|
| 216 | |
---|
| 217 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3 |
---|
| 218 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 219 | |
---|
| 220 | * Fri Jun 05 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-2 |
---|
| 221 | - Add a patch to use our own setuptools package |
---|
| 222 | |
---|
| 223 | * Fri Apr 17 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1 |
---|
| 224 | - Update to 0.6.1 |
---|
| 225 | |
---|
| 226 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2 |
---|
| 227 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 228 | |
---|
| 229 | * Fri Jan 2 2009 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1 |
---|
| 230 | - Update to 0.5.1 |
---|
| 231 | |
---|
| 232 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2 |
---|
| 233 | - Rebuild for Python 2.6 |
---|
| 234 | |
---|
| 235 | * Mon Nov 24 2008 Michel Salim <salimma@fedoraproject.org> - 0.5-1 |
---|
| 236 | - Update to 0.5 |
---|
| 237 | |
---|
| 238 | * Fri Oct 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1 |
---|
| 239 | - Update to 0.4.3 |
---|
| 240 | |
---|
| 241 | * Wed Aug 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1.1 |
---|
| 242 | - Fix for EL-5 build. |
---|
| 243 | |
---|
| 244 | * Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.2-1 |
---|
| 245 | - Update to 0.4.2 |
---|
| 246 | |
---|
| 247 | * Mon May 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.3-1 |
---|
| 248 | - Update to 0.3 |
---|
| 249 | |
---|
| 250 | * Fri May 2 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.61950-3 |
---|
| 251 | - Split documentation into subpackage |
---|
| 252 | - Exclude C files (not built by default anyway) |
---|
| 253 | |
---|
| 254 | * Wed Apr 16 2008 José Matos <jamatos@fc.up.pt> - 0.1.61950-2 |
---|
| 255 | - Build html documentation, include it and include the rst |
---|
| 256 | documentation. |
---|
| 257 | |
---|
| 258 | * Thu Mar 27 2008 Michel Salim <michel.sylvan@gmail.com> 0.1.61950-1 |
---|
| 259 | - Initial package |
---|