]> git.pld-linux.org Git - packages/sphinx-pdg.git/blame - sphinx-pdg.spec
- updated to 1.3.2
[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)
b9b9d288
JK
4#
5# Conditional build:
6%bcond_without python3_default # Use Python 3.x for easy_install executable
7
79af714d
JB
8Summary: Sphinx - Python documentation generator
9Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
4acf166f 10Name: sphinx-pdg
a84e9210
JB
11Version: 1.3.2
12Release: 1
4acf166f 13License: BSD
14Group: Development/Languages/Python
a84e9210 15#Source0Download: https://pypi.python.org/pypi/Sphinx
4ecfdc9d 16Source0: https://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
a84e9210 17# Source0-md5: 740b8171b760fb1fa801bf2d1f2d3133
b844f666 18URL: http://sphinx.pocoo.org/
5c7437a8 19BuildRequires: python-devel >= 1:2.5
5c7437a8 20BuildRequires: python-modules >= 1:2.5
15943969 21BuildRequires: python-setuptools >= 7.0
7f1d6506
AF
22BuildRequires: python3-2to3
23BuildRequires: python3-devel
f82fee34 24BuildRequires: python3-modules
15943969 25BuildRequires: python3-setuptools >= 7.0
d6f62011 26BuildRequires: rpm-pythonprov
15943969 27BuildRequires: rpmbuild(macros) >= 1.710
b9b9d288
JK
28%if %{with python3_default}
29Requires: python3-Sphinx = %{version}-%{release}
30Requires: python3-devel-tools
31Provides: %{name}-3 = %{version}-%{release}
15943969 32Obsoletes: sphinx-pdg-3
b9b9d288 33%else
8dffcc23 34Requires: python-Sphinx = %{version}-%{release}
b18e6f45 35Requires: python-devel-tools
b9b9d288 36Provides: %{name}-2 = %{version}-%{release}
15943969 37Obsoletes: sphinx-pdg-2
b9b9d288 38%endif
4acf166f 39BuildArch: noarch
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
d6f62011 43Sphinx is a tool that makes it easy to create intelligent and
44beautiful documentation for Python projects (or other documents
45consisting of multiple reStructuredText sources), written by Georg
46Brandl. It was originally created to translate the new Python
47documentation, but has now been cleaned up in the hope that it will be
48useful to many other projects.
4acf166f 49
79af714d
JB
50%description -l pl.UTF-8
51Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
52dokumentacji dla projektów w Pythonie (lub innych dokumentów
53składających się z wielu źródeł w formacie reStructuredText), napisane
54przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
55dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
56będzie przydatne dla wielu innych projektów.
57
a84e9210
JB
58%package 2
59Summary: Sphinx Python documentation generator (Python 2 version)
60Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (wersja dla Pythona 2)
e7b5373a 61Group: Development/Languages/Python
a84e9210 62Requires: python-Sphinx = %{version}-%{release}
e7b5373a 63
a84e9210 64%description 2
e7b5373a 65Sphinx is a tool that makes it easy to create intelligent and
66beautiful documentation for Python projects (or other documents
67consisting of multiple reStructuredText sources), written by Georg
68Brandl. It was originally created to translate the new Python
69documentation, but has now been cleaned up in the hope that it will be
70useful to many other projects.
71
a84e9210 72%description 2 -l pl.UTF-8
79af714d
JB
73Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
74dokumentacji dla projektów w Pythonie (lub innych dokumentów
75składających się z wielu źródeł w formacie reStructuredText), napisane
76przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
77dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
78będzie przydatne dla wielu innych projektów.
79
a84e9210
JB
80%package 3
81Summary: Sphinx Python documentation generator (Python 3 version)
82Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (wersja dla Pythona 3)
b9b9d288 83Group: Development/Languages/Python
a84e9210 84Requires: python3-Sphinx = %{version}-%{release}
b9b9d288 85
a84e9210 86%description 3
b9b9d288
JK
87Sphinx is a tool that makes it easy to create intelligent and
88beautiful documentation for Python projects (or other documents
89consisting of multiple reStructuredText sources), written by Georg
90Brandl. It was originally created to translate the new Python
91documentation, but has now been cleaned up in the hope that it will be
92useful to many other projects.
93
a84e9210 94%description 3 -l pl.UTF-8
b9b9d288
JK
95Sphinx to narzędzie ułatwiające tworzenie inteligentnej i ładnej
96dokumentacji dla projektów w Pythonie (lub innych dokumentów
97składających się z wielu źródeł w formacie reStructuredText), napisane
98przez Georga Brandla. Pierwotnie powstało do tłumaczenia nowej
99dokumentacji Pythona, ale potem zostało wyczyszczone w nadziei, że
100będzie przydatne dla wielu innych projektów.
101
8dffcc23
JB
102%package -n python-Sphinx
103Summary: Sphinx Python documentation generator (Python 2.x modules)
104Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 2.x)
105Group: Development/Languages/Python
ac0b54ce
JB
106Requires: python-docutils >= 0.7
107Requires: python-jinja2 >= 2.3
b18e6f45 108Requires: python-modules
ac0b54ce 109Requires: python-pygments >= 1.2
15943969 110Requires: python-setuptools > 7.0
8dffcc23
JB
111Conflicts: sphinx-pdg < 1.0.7-2
112
113%description -n python-Sphinx
114Sphinx Python documentation generator (Python 2.x modules).
115
116For command-line utilities, see sphinx-pdg package.
117
118%description -n python-Sphinx -l pl.UTF-8
119Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
120Pythona 2.x).
121
122Narzędzia działające z linii poleceń znajdują się w pakiecie
123sphinx-pdg.
124
125%package -n python3-Sphinx
126Summary: Sphinx Python documentation generator (Python 3.x modules)
127Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły Pythona 3.x)
128Group: Development/Languages/Python
8dffcc23 129Requires: python3-docutils >= 0.8
ac0b54ce
JB
130Requires: python3-jinja2 >= 2.3
131Requires: python3-pygments >= 1.2
15943969 132Requires: python3-setuptools > 7.0
8dffcc23
JB
133Conflicts: sphinx-pdg-3 < 1.0.7-2
134
135%description -n python3-Sphinx
136Sphinx Python documentation generator (Python 3.x modules).
137
138For command-line utilities, see sphinx-pdg-3 package.
139
140%description -n python3-Sphinx -l pl.UTF-8
141Sphinx - narzędzie do tworzenia dokumentacji dla Pythona (moduły
142Pythona 3.x).
143
144Narzędzia działające z linii poleceń znajdują się w pakiecie
145sphinx-pdg-3.
146
4acf166f 147%prep
148%setup -q -n Sphinx-%{version}
149
150%build
b9b9d288 151%py_build
3d438c82 152%{__rm} sphinx/__init__.pyc
b9b9d288 153%py3_build
3d438c82 154%{__rm} -r sphinx/__pycache__
4acf166f 155
156%install
157rm -rf $RPM_BUILD_ROOT
4acf166f 158
b9b9d288
JK
159%py_install
160%{__rm} sphinx/__init__.pyc
161%py_postclean
162
163for f in $RPM_BUILD_ROOT%{_bindir}/*; do
164 mv "${f}" "${f}-2"
165done
166
167%py3_install
3d438c82 168%{__rm} -r sphinx/__pycache__
e7b5373a 169
170for f in $RPM_BUILD_ROOT%{_bindir}/*; do
b9b9d288 171 [ "${f%%-2}" == "$f" ] || continue
e7b5373a 172 mv "${f}" "${f}-3"
173done
174
b9b9d288
JK
175%if %{with python3_default}
176for f in $RPM_BUILD_ROOT%{_bindir}/*-3; do
177 ln "${f}" "${f%%-3}"
178done
179%else
180for f in $RPM_BUILD_ROOT%{_bindir}/*-2; do
181 ln "${f}" "${f%%-2}"
182done
183%endif
4acf166f 184
185%clean
186rm -rf $RPM_BUILD_ROOT
187
188%files
189%defattr(644,root,root,755)
1c0e06e7 190%doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst
79af714d 191%attr(755,root,root) %{_bindir}/sphinx-autogen
1f35fc81 192%attr(755,root,root) %{_bindir}/sphinx-apidoc
79af714d
JB
193%attr(755,root,root) %{_bindir}/sphinx-build
194%attr(755,root,root) %{_bindir}/sphinx-quickstart
b9b9d288
JK
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
200
201%files 2
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
208
209%else
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
e7b5373a 214
79af714d 215%files 3
e7b5373a 216%defattr(644,root,root,755)
1c0e06e7 217%doc AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst
79af714d 218%attr(755,root,root) %{_bindir}/sphinx-autogen-3
1f35fc81 219%attr(755,root,root) %{_bindir}/sphinx-apidoc-3
79af714d
JB
220%attr(755,root,root) %{_bindir}/sphinx-build-3
221%attr(755,root,root) %{_bindir}/sphinx-quickstart-3
b9b9d288 222%endif
8dffcc23
JB
223
224%files -n python-Sphinx
225%defattr(644,root,root,755)
226%{py_sitescriptdir}/sphinx
227%{py_sitescriptdir}/Sphinx-%{version}-py*.egg-info
228
229%files -n python3-Sphinx
230%defattr(644,root,root,755)
e7b5373a 231%{py3_sitescriptdir}/sphinx
79af714d 232%{py3_sitescriptdir}/Sphinx-%{version}-py*.egg-info
This page took 0.161437 seconds and 4 git commands to generate.