]> git.pld-linux.org Git - packages/python-Sphinx.git/blob - python-Sphinx.spec
- new
[packages/python-Sphinx.git] / python-Sphinx.spec
1 Summary:        Sphinx - Python documentation builder
2 Summary(pl.UTF-8):      Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
3 Name:           python-Sphinx
4 Version:        1.0.6
5 Release:        1
6 License:        BSD (Sphinx itself, SmartyPants), PSF v2 (pgen2), MIT (ElementTree, JQuery)
7 Group:          Development/Languages/Python
8 Source0:        http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
9 # Source0-md5:  4cdb86c7bb7fa2498ac12db844784769
10 URL:            http://sphinx.pocoo.org/
11 BuildRequires:  python-devel
12 BuildRequires:  rpm-pythonprov
13 BuildRequires:  rpmbuild(macros) >= 1.219
14 Requires:       python-modules
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Sphinx is a tool that translates a set of reStructuredText_ source
20 files into various output formats, automatically producing
21 cross-references, indices etc. That is, if you have a directory
22 containing a bunch of reST-formatted documents (and possibly
23 subdirectories of docs in there as well), Sphinx can generate a
24 nicely-organized arrangement of HTML files (in some other directory)
25 for easy browsing and navigation. But from the same source, it can
26 also generate a LaTeX file that you can compile into a PDF version of
27 the documents, or a PDF file directly using rst2pdf
28 (<http://rst2pdf.googlecode.com>).
29
30 %description -l pl.UTF-8
31 Sphinx to narzędzie tłumaczące zbiór plików źródłowych zawierających
32 reStructuredText_ na różne formaty wyjściowe z automatycznym
33 tworzeniem wzajemnych odniesień, indeksów itp. Oznacza to, że mając
34 katalog zawierający zbiór dokumentów w formacie reST (i być może
35 dalsze podkatalogi dokumentacji) przy użyciu Sphinksa można
36 wygenerować ładnie zorganizowane pliki HTML (w jakimś innym katalogu)
37 pozwalające na łatwe przeglądanie i nawigowanie. Z tych samych źródeł
38 można też wygenerować plik LaTeXa, który można następnie skompilować
39 do wersji PDF albo wygenerować plik PDF bezpośrednio przy użyciu
40 narzędzia rst2pdf (<http://rst2pdf.googlecode.com>).
41
42 %prep
43 %setup -q -n Sphinx-%{version}
44
45 %build
46 %{__python} setup.py build
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__python} setup.py install \
52         --optimize=2 \
53         --root=$RPM_BUILD_ROOT
54
55 %py_postclean
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc AUTHORS CHANGES EXAMPLES LICENSE README TODO
63 %attr(755,root,root) %{_bindir}/sphinx-autogen
64 %attr(755,root,root) %{_bindir}/sphinx-build
65 %attr(755,root,root) %{_bindir}/sphinx-quickstart
66 %{py_sitescriptdir}/sphinx
67 %{py_sitescriptdir}/Sphinx-%{version}-py*.egg-info
This page took 0.064787 seconds and 4 git commands to generate.