]> git.pld-linux.org Git - packages/sphinx-pdg.git/blame - sphinx-pdg.spec
- added docutils-0.10 patch (docutils 0.10 compatibility) found on lp
[packages/sphinx-pdg.git] / sphinx-pdg.spec
CommitLineData
992edea4 1# there are sphinx.spec, sphinx2.spec... Sphinx.spec is too confusing
2# therefore the name for this package is sphinx-pdg (pdg - python
3# documentation generator)
79af714d
JB
4Summary: Sphinx - Python documentation generator
5Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
4acf166f 6Name: sphinx-pdg
3cf2dc54 7Version: 1.1.3
3d438c82 8Release: 4
4acf166f 9License: BSD
10Group: Development/Languages/Python
11Source0: http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
3cf2dc54 12# Source0-md5: 8f55a6d4f87fc6d528120c5d1f983e98
3d438c82 13Patch0: sphinx-docutils-0.10.patch
b844f666 14URL: http://sphinx.pocoo.org/
5c7437a8 15BuildRequires: python-devel >= 1:2.5
7f1d6506 16BuildRequires: python-distribute
5c7437a8 17BuildRequires: python-modules >= 1:2.5
7f1d6506
AF
18BuildRequires: python3-2to3
19BuildRequires: python3-devel
20BuildRequires: python3-distribute
f82fee34 21BuildRequires: python3-modules
d6f62011 22BuildRequires: rpm-pythonprov
79af714d 23BuildRequires: rpmbuild(macros) >= 1.219
8dffcc23 24Requires: python-Sphinx = %{version}-%{release}
b18e6f45 25Requires: python-devel-tools
4acf166f 26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
d6f62011 30Sphinx is a tool that makes it easy to create intelligent and
31beautiful documentation for Python projects (or other documents
32consisting of multiple reStructuredText sources), written by Georg
33Brandl. It was originally created to translate the new Python
34documentation, but has now been cleaned up in the hope that it will be
35useful to many other projects.
4acf166f 36
79af714d
JB
37%description -l pl.UTF-8
38Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
39dokumentacji dla projektów w Pythonie (lub innych dokumentów
40składających się z wielu źródeł w formacie reStructuredText), napisane
41przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
42dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
43będzie przydatne dla wielu innych projektów.
44
45%package 3
46Summary: Sphinx Python documentation generator (Python 3 version)
47Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (wersja dla Pythona 3)
e7b5373a 48Group: Development/Languages/Python
8dffcc23 49Requires: python3-Sphinx = %{version}-%{release}
e7b5373a 50
79af714d 51%description 3
e7b5373a 52Sphinx is a tool that makes it easy to create intelligent and
53beautiful documentation for Python projects (or other documents
54consisting of multiple reStructuredText sources), written by Georg
55Brandl. It was originally created to translate the new Python
56documentation, but has now been cleaned up in the hope that it will be
57useful to many other projects.
58
79af714d
JB
59%description 3 -l pl.UTF-8
60Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
61dokumentacji dla projektów w Pythonie (lub innych dokumentów
62składających się z wielu źródeł w formacie reStructuredText), napisane
63przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
64dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
65będzie przydatne dla wielu innych projektów.
66
8dffcc23
JB
67%package -n python-Sphinx
68Summary: Sphinx Python documentation generator (Python 2.x modules)
69Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 2.x)
70Group: Development/Languages/Python
71Requires: python-distribute
ac0b54ce
JB
72Requires: python-docutils >= 0.7
73Requires: python-jinja2 >= 2.3
b18e6f45 74Requires: python-modules
ac0b54ce 75Requires: python-pygments >= 1.2
8dffcc23
JB
76Conflicts: sphinx-pdg < 1.0.7-2
77
78%description -n python-Sphinx
79Sphinx Python documentation generator (Python 2.x modules).
80
81For command-line utilities, see sphinx-pdg package.
82
83%description -n python-Sphinx -l pl.UTF-8
84Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
85Pythona 2.x).
86
87Narzędzia działające z linii poleceń znajdują się w pakiecie
88sphinx-pdg.
89
90%package -n python3-Sphinx
91Summary: Sphinx Python documentation generator (Python 3.x modules)
92Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 3.x)
93Group: Development/Languages/Python
94Requires: python3-distribute
95Requires: python3-docutils >= 0.8
ac0b54ce
JB
96Requires: python3-jinja2 >= 2.3
97Requires: python3-pygments >= 1.2
8dffcc23
JB
98Conflicts: sphinx-pdg-3 < 1.0.7-2
99
100%description -n python3-Sphinx
101Sphinx Python documentation generator (Python 3.x modules).
102
103For command-line utilities, see sphinx-pdg-3 package.
104
105%description -n python3-Sphinx -l pl.UTF-8
106Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
107Pythona 3.x).
108
109Narzędzia działające z linii poleceń znajdują się w pakiecie
110sphinx-pdg-3.
111
4acf166f 112%prep
113%setup -q -n Sphinx-%{version}
3d438c82 114%patch0 -p1
4acf166f 115
116%build
e7b5373a 117%{__python} setup.py build -b build-2
3d438c82 118%{__rm} sphinx/__init__.pyc
e7b5373a 119%{__python3} setup.py build -b build-3
3d438c82 120%{__rm} -r sphinx/__pycache__
4acf166f 121
122%install
123rm -rf $RPM_BUILD_ROOT
4acf166f 124
e7b5373a 125%{__python3} setup.py build -b build-3 install \
126 --optimize=2 \
127 --root=$RPM_BUILD_ROOT
3d438c82 128%{__rm} -r sphinx/__pycache__
e7b5373a 129
130for f in $RPM_BUILD_ROOT%{_bindir}/*; do
131 mv "${f}" "${f}-3"
132done
133
134%{__python} setup.py build -b build-2 install \
135 --optimize=2 \
136 --root=$RPM_BUILD_ROOT
3d438c82 137%{__rm} sphinx/__init__.pyc
4acf166f 138
139%py_postclean
140
141%clean
142rm -rf $RPM_BUILD_ROOT
143
144%files
145%defattr(644,root,root,755)
79af714d
JB
146%doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README TODO
147%attr(755,root,root) %{_bindir}/sphinx-autogen
1f35fc81 148%attr(755,root,root) %{_bindir}/sphinx-apidoc
79af714d
JB
149%attr(755,root,root) %{_bindir}/sphinx-build
150%attr(755,root,root) %{_bindir}/sphinx-quickstart
e7b5373a 151
79af714d 152%files 3
e7b5373a 153%defattr(644,root,root,755)
79af714d
JB
154%doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README TODO
155%attr(755,root,root) %{_bindir}/sphinx-autogen-3
1f35fc81 156%attr(755,root,root) %{_bindir}/sphinx-apidoc-3
79af714d
JB
157%attr(755,root,root) %{_bindir}/sphinx-build-3
158%attr(755,root,root) %{_bindir}/sphinx-quickstart-3
8dffcc23
JB
159
160%files -n python-Sphinx
161%defattr(644,root,root,755)
162%{py_sitescriptdir}/sphinx
163%{py_sitescriptdir}/Sphinx-%{version}-py*.egg-info
164
165%files -n python3-Sphinx
166%defattr(644,root,root,755)
e7b5373a 167%{py3_sitescriptdir}/sphinx
79af714d 168%{py3_sitescriptdir}/Sphinx-%{version}-py*.egg-info
This page took 0.115546 seconds and 4 git commands to generate.