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)
6 %bcond_without python3_default # Use Python 3.x for easy_install executable
8 Summary: Sphinx - Python documentation generator
9 Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
14 Group: Development/Languages/Python
15 #Source0Download: https://pypi.python.org/pypi/Sphinx
16 Source0: https://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
17 # Source0-md5: 740b8171b760fb1fa801bf2d1f2d3133
18 URL: http://sphinx.pocoo.org/
19 BuildRequires: python-devel >= 1:2.5
20 BuildRequires: python-modules >= 1:2.5
21 BuildRequires: python-setuptools >= 7.0
22 BuildRequires: python3-2to3
23 BuildRequires: python3-devel
24 BuildRequires: python3-modules
25 BuildRequires: python3-setuptools >= 7.0
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.710
28 %if %{with python3_default}
29 Requires: python3-Sphinx = %{version}-%{release}
30 Requires: python3-devel-tools
31 Provides: %{name}-3 = %{version}-%{release}
32 Obsoletes: sphinx-pdg-3
34 Requires: python-Sphinx = %{version}-%{release}
35 Requires: python-devel-tools
36 Provides: %{name}-2 = %{version}-%{release}
37 Obsoletes: sphinx-pdg-2
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Sphinx is a tool that makes it easy to create intelligent and
44 beautiful documentation for Python projects (or other documents
45 consisting of multiple reStructuredText sources), written by Georg
46 Brandl. It was originally created to translate the new Python
47 documentation, but has now been cleaned up in the hope that it will be
48 useful to many other projects.
50 %description -l pl.UTF-8
51 Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
52 dokumentacji dla projektów w Pythonie (lub innych dokumentów
53 składających się z wielu źródeł w formacie reStructuredText), napisane
54 przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
55 dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
56 będzie przydatne dla wielu innych projektów.
59 Summary: Sphinx Python documentation generator (Python 2 version)
60 Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (wersja dla Pythona 2)
61 Group: Development/Languages/Python
62 Requires: python-Sphinx = %{version}-%{release}
65 Sphinx is a tool that makes it easy to create intelligent and
66 beautiful documentation for Python projects (or other documents
67 consisting of multiple reStructuredText sources), written by Georg
68 Brandl. It was originally created to translate the new Python
69 documentation, but has now been cleaned up in the hope that it will be
70 useful to many other projects.
72 %description 2 -l pl.UTF-8
73 Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
74 dokumentacji dla projektów w Pythonie (lub innych dokumentów
75 składających się z wielu źródeł w formacie reStructuredText), napisane
76 przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
77 dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
78 będzie przydatne dla wielu innych projektów.
81 Summary: Sphinx Python documentation generator (Python 3 version)
82 Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (wersja dla Pythona 3)
83 Group: Development/Languages/Python
84 Requires: python3-Sphinx = %{version}-%{release}
87 Sphinx is a tool that makes it easy to create intelligent and
88 beautiful documentation for Python projects (or other documents
89 consisting of multiple reStructuredText sources), written by Georg
90 Brandl. It was originally created to translate the new Python
91 documentation, but has now been cleaned up in the hope that it will be
92 useful to many other projects.
94 %description 3 -l pl.UTF-8
95 Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
96 dokumentacji dla projektów w Pythonie (lub innych dokumentów
97 składających się z wielu źródeł w formacie reStructuredText), napisane
98 przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
99 dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
100 będzie przydatne dla wielu innych projektów.
102 %package -n python-Sphinx
103 Summary: Sphinx Python documentation generator (Python 2.x modules)
104 Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 2.x)
105 Group: Development/Languages/Python
106 Requires: python-docutils >= 0.7
107 Requires: python-jinja2 >= 2.3
108 Requires: python-modules
109 Requires: python-pygments >= 1.2
110 Requires: python-setuptools > 7.0
111 Conflicts: sphinx-pdg < 1.0.7-2
113 %description -n python-Sphinx
114 Sphinx Python documentation generator (Python 2.x modules).
116 For command-line utilities, see sphinx-pdg package.
118 %description -n python-Sphinx -l pl.UTF-8
119 Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
122 Narzędzia działające z linii poleceń znajdują się w pakiecie
125 %package -n python3-Sphinx
126 Summary: Sphinx Python documentation generator (Python 3.x modules)
127 Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 3.x)
128 Group: Development/Languages/Python
129 Requires: python3-docutils >= 0.8
130 Requires: python3-jinja2 >= 2.3
131 Requires: python3-pygments >= 1.2
132 Requires: python3-setuptools > 7.0
133 Conflicts: sphinx-pdg-3 < 1.0.7-2
135 %description -n python3-Sphinx
136 Sphinx Python documentation generator (Python 3.x modules).
138 For command-line utilities, see sphinx-pdg-3 package.
140 %description -n python3-Sphinx -l pl.UTF-8
141 Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
144 Narzędzia działające z linii poleceń znajdują się w pakiecie
148 %setup -q -n Sphinx-%{version}
152 %{__rm} sphinx/__init__.pyc
154 %{__rm} -r sphinx/__pycache__
157 rm -rf $RPM_BUILD_ROOT
160 %{__rm} sphinx/__init__.pyc
163 for f in $RPM_BUILD_ROOT%{_bindir}/*; do
168 %{__rm} -r sphinx/__pycache__
170 for f in $RPM_BUILD_ROOT%{_bindir}/*; do
171 [ "${f%%-2}" == "$f" ] || continue
175 %if %{with python3_default}
176 for f in $RPM_BUILD_ROOT%{_bindir}/*-3; do
180 for f in $RPM_BUILD_ROOT%{_bindir}/*-2; do
186 rm -rf $RPM_BUILD_ROOT
189 %defattr(644,root,root,755)
190 %doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst
191 %attr(755,root,root) %{_bindir}/sphinx-autogen
192 %attr(755,root,root) %{_bindir}/sphinx-apidoc
193 %attr(755,root,root) %{_bindir}/sphinx-build
194 %attr(755,root,root) %{_bindir}/sphinx-quickstart
195 %if %{with python3_default}
196 %attr(755,root,root) %{_bindir}/sphinx-autogen-3
197 %attr(755,root,root) %{_bindir}/sphinx-apidoc-3
198 %attr(755,root,root) %{_bindir}/sphinx-build-3
199 %attr(755,root,root) %{_bindir}/sphinx-quickstart-3
202 %defattr(644,root,root,755)
203 %doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst
204 %attr(755,root,root) %{_bindir}/sphinx-autogen-2
205 %attr(755,root,root) %{_bindir}/sphinx-apidoc-2
206 %attr(755,root,root) %{_bindir}/sphinx-build-2
207 %attr(755,root,root) %{_bindir}/sphinx-quickstart-2
210 %attr(755,root,root) %{_bindir}/sphinx-autogen-2
211 %attr(755,root,root) %{_bindir}/sphinx-apidoc-2
212 %attr(755,root,root) %{_bindir}/sphinx-build-2
213 %attr(755,root,root) %{_bindir}/sphinx-quickstart-2
216 %defattr(644,root,root,755)
217 %doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst
218 %attr(755,root,root) %{_bindir}/sphinx-autogen-3
219 %attr(755,root,root) %{_bindir}/sphinx-apidoc-3
220 %attr(755,root,root) %{_bindir}/sphinx-build-3
221 %attr(755,root,root) %{_bindir}/sphinx-quickstart-3
224 %files -n python-Sphinx
225 %defattr(644,root,root,755)
226 %{py_sitescriptdir}/sphinx
227 %{py_sitescriptdir}/Sphinx-%{version}-py*.egg-info
229 %files -n python3-Sphinx
230 %defattr(644,root,root,755)
231 %{py3_sitescriptdir}/sphinx
232 %{py3_sitescriptdir}/Sphinx-%{version}-py*.egg-info