]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO | |
3 | # - test_distutils fails for unknown reason: (does it still do with new lib64 patch?) | |
4 | # AssertionError: '/tmp/tmpaomC0l/installation/share/python' != '/tmp/tmpaomC0l/installation/lib/python' | |
5 | # - test_pydoc fails because of PYTHONPATH override | |
6 | # - change searchpath order so /usr/lib* is before /usr/share | |
7 | # - kill lib-tk from searchpath | |
8 | # - kill BR: file requirement from lib64 patch | |
9 | # - security(CVE-2008-4108) | |
10 | # http://securitytracker.com/alerts/2008/Sep/1020904.html | |
11 | # | |
12 | # Conditional build: | |
13 | %bcond_with info # build info pages (requires emacs, fails in python-2.5.0) | |
14 | %bcond_without tkinter # disables tkinter module building | |
15 | %bcond_without tests # disables Python testing | |
16 | %bcond_with verbose_tests # runs tests in verbose mode | |
17 | %bcond_with openssl097 | |
18 | # | |
19 | # tests which will not work on 64-bit platforms | |
20 | %define no64bit_tests test_audioop test_rgbimg test_imageop | |
21 | # tests which may fail because of builder environment limitations (no /proc or /dev/pts) | |
22 | %define nobuilder_tests test_resource test_openpty test_socket test_nis test_posix test_locale test_pty test_urllib2 | |
23 | # tests which fail because of some unknown/unresolved reason (this list should be empty) | |
24 | %define broken_tests test_anydbm test_bsddb test_re test_shelve test_whichdb test_zipimport test_distutils test_pydoc test_file test_file2k test_gdb test_ioctl | |
25 | ||
26 | %define beta %{nil} | |
27 | ||
28 | %define py_ver 2.7 | |
29 | %define py_prefix %{_prefix} | |
30 | %define py_libdir %{py_prefix}/%{_lib}/python%{py_ver} | |
31 | %define py_incdir %{_includedir}/python%{py_ver} | |
32 | %define py_sitedir %{py_libdir}/site-packages | |
33 | %define py_dyndir %{py_libdir}/lib-dynload | |
34 | ||
35 | %define dver %{version} | |
36 | Summary: Very high level scripting language with X interface | |
37 | Summary(es.UTF-8): Lenguaje script de alto nivel con interfaz X | |
38 | Summary(fr.UTF-8): Langage de script de très haut niveau avec interface X | |
39 | Summary(pl.UTF-8): Python - język obiektowy wysokiego poziomu | |
40 | Summary(pt_BR.UTF-8): Linguagem de programação interpretada de alto nível | |
41 | Summary(ru.UTF-8): Язык программирования очень высокого уровня с X-интерфейсом | |
42 | Summary(tr.UTF-8): X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili | |
43 | Summary(uk.UTF-8): Мова програмування дуже високого рівня з X-інтерфейсом | |
44 | Name: python | |
45 | Version: %{py_ver}.9 | |
46 | Release: 1 | |
47 | Epoch: 1 | |
48 | License: PSF | |
49 | Group: Development/Languages/Python | |
50 | Source0: http://www.python.org/ftp/python/%{version}/Python-%{version}%{beta}.tar.xz | |
51 | # Source0-md5: 38d530f7efc373d64a8fb1637e3baaa7 | |
52 | Source1: http://www.python.org/ftp/python/doc/%{dver}/%{name}-%{dver}-docs-html.tar.bz2 | |
53 | # Source1-md5: 8804bc888f6b7a1cc217be1acbb59ad6 | |
54 | Patch0: %{name}-db.patch | |
55 | Patch1: %{name}-pythonpath.patch | |
56 | Patch2: %{name}-ac_fixes.patch | |
57 | Patch3: %{name}-lib64.patch | |
58 | Patch4: %{name}-noarch_to_datadir.patch | |
59 | Patch5: %{name}-verbose.patch | |
60 | Patch6: %{name}-distro.patch | |
61 | Patch7: %{name}-DNStests.patch | |
62 | URL: http://www.python.org/ | |
63 | BuildRequires: autoconf >= 2.65 | |
64 | BuildRequires: automake | |
65 | BuildRequires: bluez-libs-devel | |
66 | BuildRequires: bzip2-devel | |
67 | BuildRequires: db-devel >= 4 | |
68 | %{?with_info:BuildRequires: emacs >= 21} | |
69 | BuildRequires: expat-devel >= 1:1.95.7 | |
70 | BuildRequires: file | |
71 | BuildRequires: gdbm-devel >= 1.8.3 | |
72 | BuildRequires: gmp-devel >= 4.0 | |
73 | BuildRequires: libstdc++-devel | |
74 | BuildRequires: ncurses-ext-devel >= 5.2 | |
75 | BuildRequires: pkgconfig | |
76 | %if %{with openssl097} | |
77 | BuildRequires: openssl-devel < 0.9.8 | |
78 | %else | |
79 | BuildRequires: openssl-devel >= 0.9.8 | |
80 | %endif | |
81 | BuildRequires: readline-devel >= 5.0 | |
82 | BuildRequires: rpm-pythonprov | |
83 | BuildRequires: sed >= 4.0 | |
84 | BuildRequires: sqlite3-devel >= 3.3.5 | |
85 | %{?with_info:BuildRequires: tetex-makeindex} | |
86 | #%{?with_tkinter:BuildRequires: tix-devel >= 1:8.1.4-4} | |
87 | %{?with_tkinter:BuildRequires: tk-devel >= 8.4.3} | |
88 | BuildRequires: zlib-devel | |
89 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
90 | Obsoletes: python2 | |
91 | Conflicts: bzr < 1.8 | |
92 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
93 | ||
94 | %if %{with verbose_tests} | |
95 | %define test_flags -v -l -x | |
96 | %else | |
97 | %define test_flags -w -l -x | |
98 | %endif | |
99 | ||
100 | %ifarch alpha ia64 ppc64 ppc64 %{x8664} | |
101 | %define test_list %{nobuilder_tests} %{broken_tests} %{no64bit_tests} | |
102 | %else | |
103 | %define test_list %{nobuilder_tests} %{broken_tests} | |
104 | %endif | |
105 | ||
106 | %ifarch sparc sparcv9 | |
107 | %define test_list %{nobuilder_tests} %{broken_tests} test_fcntl test_ioctl | |
108 | %endif | |
109 | ||
110 | %ifarch sparc64 | |
111 | %define test_list %{nobuilder_tests} %{broken_tests} %{no64bit_tests} test_fcntl test_ioctl | |
112 | %endif | |
113 | ||
114 | %description | |
115 | Python is an interpreted, interactive, object-oriented programming | |
116 | language. It incorporates modules, exceptions, dynamic typing, very | |
117 | high level dynamic data types, and classes. Python combines remarkable | |
118 | power with very clear syntax. It has interfaces to many system calls | |
119 | and libraries, as well as to various window systems, and is extensible | |
120 | in C or C++. It is also usable as an extension language for | |
121 | applications that need a programmable interface. Finally, Python is | |
122 | portable: it runs on many brands of UNIX, on the Mac, and on PCs under | |
123 | MS-DOS, Windows, Windows NT, and OS/2. | |
124 | ||
125 | This package contains the Python binary. | |
126 | ||
127 | %description -l de.UTF-8 | |
128 | Python ist eine interpretierte, interaktive, objektorientierte | |
129 | Programmiersprache, vergleichbar zu Tcl, Perl, Scheme oder Java. | |
130 | Python enthält Module, Klassen, Exceptions, High-Level dynamische | |
131 | Datentypen und dynamisches Typisieren. Python unterstützt Interfaces | |
132 | zu vielen Systemaufrufen und Libraries, sowie verschiedene | |
133 | Fenstersysteme (X11, Motif, Tk, Mac und MFC) | |
134 | ||
135 | Programmierer können neue built-in-Module für Python in C oder C++ | |
136 | schreiben. Python kann auch als Erweiterungssprache für Applikationen | |
137 | benutzt werden, die ein programmierbares Interface brauchen. Dieses | |
138 | Paket enthält die meisten Standard-Python-Module, und Module zum | |
139 | Ansprechen von Tix (Tk-widget set) und RPM. | |
140 | ||
141 | %description -l es.UTF-8 | |
142 | Python es un lenguaje de scripts interpretado orientado a objetos. | |
143 | Contiene soporte para carga dinámica de objetos, clases, módulos y | |
144 | excepciones. | |
145 | ||
146 | Es sencillo adicionar interfaces para nuevos sistemas de biblioteca a | |
147 | través de código C, tornando Python fácil de usar en ambientes | |
148 | particulares/personalizados. Este paquete Python incluye la mayoría de | |
149 | los módulos padrón Python, junto con módulos para crear interfaces | |
150 | para el conjunto de componentes Tix para Tk y RPM. | |
151 | ||
152 | %description -l fr.UTF-8 | |
153 | Python est un langage de script interprété et orienté objet. Il gère | |
154 | le chargement dynamique des objets, les classes, les modules et les | |
155 | exceptions. L'ajout d'interfaces aux nouvelles bibliothèques systèmes | |
156 | avec du code C est simple, ce qui rend Python facile à utiliser dans | |
157 | des configs personnalisées. | |
158 | ||
159 | Ce paquetage Python contient la plupart des modules Python standards, | |
160 | ainsi que ceux permettant l'interfaçage avec les widgets Tix pour Tk | |
161 | et RPM. | |
162 | ||
163 | %description -l pl.UTF-8 | |
164 | Python jest interpretowanym, interaktywnym i zorientowanym obiektowo | |
165 | językiem programowania. Jest modularny, obsługuje wyjątki, dynamiczne | |
166 | typy, zaawansowane dynamiczne struktury danych i klasy. Python łączy w | |
167 | sobie duże możliwości i przejrzystą składnię. Posiada interfejsy do | |
168 | wielu wywołań systemowych i bibliotek, w tym również do różnych | |
169 | bibliotek okienkowych. Możliwości jego można jeszcze rozszerzać | |
170 | poprzez odpowiednie moduły pisane w C lub C++. Python może być również | |
171 | użyty jako element aplikacji, którym potrzebny jest interpreter do | |
172 | skryptów. I wreszcie, Python jest wieloplatformowy, działa na wielu | |
173 | odmianach UNIX-a, Macu oraz PC pod DOS-em, Windows, WindowsNT oraz | |
174 | OS/2. | |
175 | ||
176 | Ten pakiet zawiera binarkę Pythona. | |
177 | ||
178 | %description -l pt_BR.UTF-8 | |
179 | Python é uma linguagem de scripts interpretada orientada a objetos. | |
180 | Contém suporte para carga dinâmica de objetos, classes, módulos e | |
181 | exceções. Adicionar interfaces para novos sistemas de biblioteca | |
182 | através de código C é simples, tornando Python fácil de usar em | |
183 | ambientes particulares/personalizados. | |
184 | ||
185 | Este pacote Python inclui a maioria do módulos padrão Python, junto | |
186 | com módulos para interfaceamento para o conjunto de componentes Tix | |
187 | para Tk e RPM. | |
188 | ||
189 | %description -l ru.UTF-8 | |
190 | Python - это интерпретируемый, объектно-ориентированный язык | |
191 | программирования. Он поддерживает динамическую загрузку объектов, | |
192 | классы, модули и обработку исключительных ситуаций (exceptions). | |
193 | Простота добавления интерфейсов к новым системным библиотекам через | |
194 | код на языке C делает Python хорошим выбором для использования в | |
195 | специальных конфигурациях. | |
196 | ||
197 | %description -l tr.UTF-8 | |
198 | Python, nesneye yönelik bir kabuk yorumlayıcıdır. Nesnelerin, | |
199 | sınıfların, modüllerin ve aykırı durumların dinamik yüklenmelerine | |
200 | destek verir. C koduyla birlikte kullanımı son derece kolaydır. Bu | |
201 | paket, standart Python birimlerinin çoğunun yanısıra Tk ve RPM için | |
202 | arayüz birimlerini de içerir. | |
203 | ||
204 | %description -l uk.UTF-8 | |
205 | Python - це інтерпретована, об'єктно-орієнтована мова програмування. | |
206 | Він підтримує динамічну загрузку об'єктів, класи, модулі та обробку | |
207 | виключних ситуацій (exceptions). Простота додавання інтерфейсів для | |
208 | нових системних бібліотек через код на мові C робить Python добрим | |
209 | вибором для використання в спеціальних конфігураціях. | |
210 | ||
211 | %package libs | |
212 | Summary: Python library | |
213 | Summary(pl.UTF-8): Biblioteka języka Python | |
214 | Group: Libraries/Python | |
215 | # broken detection in rpm/pythondeps.sh | |
216 | Provides: python(abi) = %{py_ver} | |
217 | # for compatibility with existing Ac packages | |
218 | Provides: python(bytecode) = %{py_ver} | |
219 | %{!?with_info:Obsoletes: python-doc-info} | |
220 | Obsoletes: python-intl | |
221 | ||
222 | %description libs | |
223 | Python shared library and very essental modules for Python binary. | |
224 | ||
225 | %description libs -l pl.UTF-8 | |
226 | Biblioteka współdzielona języka Python oraz bardzo podstawowe moduły | |
227 | dla Pythona. | |
228 | ||
229 | %package modules | |
230 | Summary: Python modules | |
231 | Summary(pl.UTF-8): Moduły języka Python | |
232 | Group: Libraries/Python | |
233 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
234 | Provides: python-argparse = 1.1 | |
235 | Provides: python-cElementTree | |
236 | Provides: python-elementtree | |
237 | Provides: pythonegg(argparse) = 1.1 | |
238 | Obsoletes: python-argparse < 1.1.99 | |
239 | Obsoletes: python-cElementTree | |
240 | Obsoletes: python-ctypes | |
241 | Obsoletes: python-curses | |
242 | Obsoletes: python-elementtree | |
243 | Obsoletes: python-gdbm | |
244 | Obsoletes: python-hashlib | |
245 | Obsoletes: python-logging | |
246 | Obsoletes: python-old | |
247 | Obsoletes: python-optik | |
248 | Obsoletes: python-ssl | |
249 | Obsoletes: python-xml | |
250 | Obsoletes: python-xmlrpc <= 1.0.1 | |
251 | Obsoletes: python-zlib | |
252 | ||
253 | %description modules | |
254 | Python officially distributed modules. | |
255 | ||
256 | %description modules -l pl.UTF-8 | |
257 | Oficjalnie rozprowadzane moduły języka Python. | |
258 | ||
259 | %package modules-sqlite | |
260 | Summary: Python SQLite modules | |
261 | Summary(pl.UTF-8): Moduły SQLite języka Python | |
262 | Group: Libraries/Python | |
263 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
264 | Provides: python(sqlite) | |
265 | ||
266 | %description modules-sqlite | |
267 | Python officially distributed sqlite module. | |
268 | ||
269 | %description modules-sqlite -l pl.UTF-8 | |
270 | Oficjalnie rozprowadzany moduł sqlite języka Python. | |
271 | ||
272 | %package -n pydoc | |
273 | Summary: Python interactive module documentation access support | |
274 | Summary(pl.UTF-8): Interaktywne korzystanie z dokumentacji modułów języka Python | |
275 | Group: Applications | |
276 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
277 | Obsoletes: python-pydoc | |
278 | ||
279 | %description -n pydoc | |
280 | Python interactive module documentation access support. | |
281 | ||
282 | %description -n pydoc -l pl.UTF-8 | |
283 | Interaktywne korzystanie z dokumentacji modułów języka Python. | |
284 | ||
285 | %package -n idle | |
286 | Summary: IDE for Python language | |
287 | Summary(pl.UTF-8): IDE dla języka Python | |
288 | Group: Applications/Editors | |
289 | Requires: %{name}-tkinter = %{epoch}:%{version}-%{release} | |
290 | Obsoletes: python-idle | |
291 | ||
292 | %description -n idle | |
293 | IDE for Python language. | |
294 | ||
295 | %description -n idle -l pl.UTF-8 | |
296 | IDE dla języka Python. | |
297 | ||
298 | %package devel | |
299 | Summary: Libraries and header files for building python code | |
300 | Summary(de.UTF-8): Libraries und Header-Dateien zum Erstellen von Python-Code | |
301 | Summary(es.UTF-8): Bibliotecas y archivos de inclusión para construir programas en python | |
302 | Summary(fr.UTF-8): Bibliothèques et en-têtes pour construire du code python | |
303 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki Pythona | |
304 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para o Python | |
305 | Summary(ru.UTF-8): Библиотеки и хедеры для построения кода на языке Python | |
306 | Summary(tr.UTF-8): Python ile geliştirme yapmak için gerekli dosyalar | |
307 | Summary(uk.UTF-8): Бібліотеки та хедери для програмування на мові Python | |
308 | Group: Development/Languages/Python | |
309 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
310 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
311 | Obsoletes: python2-devel | |
312 | ||
313 | %description devel | |
314 | The Python interpreter is relatively easy to extend with dynamically | |
315 | loaded extensions and to embed in other programs. This package | |
316 | contains the header files and libraries which are needed to do both of | |
317 | these tasks. | |
318 | ||
319 | %description devel -l de.UTF-8 | |
320 | Der Python-Interpretierer ist relativ einfach anhand von dynamisch | |
321 | ladbaren Erweiterungen auszubauen und läßt sich in andere Programme | |
322 | integrieren. Dieses Paket enthält die Header-Dateien und Libraries, | |
323 | die für beide Aufgaben erforderlich sind. | |
324 | ||
325 | %description devel -l es.UTF-8 | |
326 | El interpretador Python permite incluir con facilidad extensiones | |
327 | cargadas dinámicamente. Python es también fácil de ser empotrado en | |
328 | otros programas. Este paquete contiene los archivos de inclusión y | |
329 | bibliotecas necesarios para estas dos tareas. | |
330 | ||
331 | %description devel -l fr.UTF-8 | |
332 | L'interpréteur Python est relativement facile à étendre avec des | |
333 | extensions chargées dynamiquement et à insérer dans d'autres | |
334 | programmes. Ce paquetage contient les en-têtes et les bibliothèques | |
335 | nécessaires à ces deux tâches. | |
336 | ||
337 | %description devel -l pl.UTF-8 | |
338 | Interpreter Pythona jest w miarę łatwy do rozszerzania przy pomocy | |
339 | dynamicznie ładowanych rozszerzeń napisanych w C lub C++ oraz | |
340 | osadzania w innych programach. Ten pakiet zawiera pliki nagłówkowe i | |
341 | wszystko inne co potrzebne do tych celów. | |
342 | ||
343 | %description devel -l pt_BR.UTF-8 | |
344 | O interpretador Python permite incluir com facilidade extensões | |
345 | carregadas dinamicamente. Python é também fácil de ser embutido em | |
346 | outros programas. Este pacote contém os arquivos de inclusão e | |
347 | bibliotecas necessários para estas duas tarefas. | |
348 | ||
349 | %description devel -l ru.UTF-8 | |
350 | Интерпретатор Python относительно легко расширяется при помощи | |
351 | динамически загружаемых расширений и встраивается в другие программы. | |
352 | Этот пакет содержит хедеры и библиотеки, необходимые для обеих этих | |
353 | задач. | |
354 | ||
355 | %description devel -l tr.UTF-8 | |
356 | Bu paket, Python ile geliştirme yapılabilmesi için gerekli başlık | |
357 | dosyalarını ve kitaplıkları içerir. | |
358 | ||
359 | %description devel -l uk.UTF-8 | |
360 | Інтерпретатор Python відносно легко розширюється за допомогою | |
361 | розширень з динамічною загрузкою та вбудовується в інші програми. Цей | |
362 | пакет містить хедери та бібліотеки, необхідні для обох цих задач. | |
363 | ||
364 | %package devel-src | |
365 | Summary: Python module sources | |
366 | Summary(pl.UTF-8): Pliki źródłowe modułów Pythona | |
367 | Group: Development/Languages/Python | |
368 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
369 | ||
370 | %description devel-src | |
371 | Python module sources. | |
372 | ||
373 | %description devel-src -l pl.UTF-8 | |
374 | Pliki źródłowe modułów Pythona. | |
375 | ||
376 | %package devel-tools | |
377 | Summary: Python development tools | |
378 | Summary(pl.UTF-8): Narzędzia programistyczne języka Python | |
379 | Group: Development/Languages/Python | |
380 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
381 | ||
382 | %description devel-tools | |
383 | Python development tools such as profilers and debugger. | |
384 | ||
385 | %description devel-tools -l pl.UTF-8 | |
386 | Narzędzia programistyczne języka Python takie jak profiler oraz | |
387 | debugger. | |
388 | ||
389 | %package 2to3 | |
390 | Summary: Automated Python 2 to 3 code translation | |
391 | Summary(pl.UTF-8): Automatyczne tłumaczenie kodu Pythona 2 na 3 | |
392 | Group: Development/Languages/Python | |
393 | ||
394 | %description 2to3 | |
395 | 2to3 is a Python program that reads Python 2.x source code and applies | |
396 | a series of fixers to transform it into valid Python 3.x code. The | |
397 | standard library contains a rich set of fixers that will handle almost | |
398 | all code. 2to3 supporting library lib2to3 is, however, a flexible and | |
399 | generic library, so it is possible to write your own fixers for 2to3. | |
400 | lib2to3 could also be adapted to custom applications in which Python | |
401 | code needs to be edited automatically. | |
402 | ||
403 | %description 2to3 -l pl.UTF-8 | |
404 | 2to3 to program w Pythonie czytający od źródłowy w Pythonie 2.x i | |
405 | aplikujący serię poprawek przekształcających go w poprawny kod w | |
406 | Pythonie 3.x. Biblioteka standardowa zawiera duży zbiór poprawek | |
407 | obsługujących większość kodu. Biblioteka wspierająca 2to3 (lib2to3) | |
408 | jest jednak elastyczną i ogólną biblioteką, więc można pisać własne | |
409 | poprawki dla 2to3. lib2to3 można także zaadaptować na potrzeby | |
410 | własnych zastosowań, w których kod w Pythonie musi być modyfikowany | |
411 | automatycznie. | |
412 | ||
413 | %package static | |
414 | Summary: Static python library | |
415 | Summary(pl.UTF-8): Statyczna biblioteka Pythona | |
416 | Group: Development/Languages/Python | |
417 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
418 | ||
419 | %description static | |
420 | Static python library. | |
421 | ||
422 | %description static -l pl.UTF-8 | |
423 | Statyczna biblioteka Pythona. | |
424 | ||
425 | %package doc | |
426 | Summary: Documentation on Python | |
427 | Summary(de.UTF-8): Dokumentation zu Python | |
428 | Summary(es.UTF-8): Documentación para Python | |
429 | Summary(fr.UTF-8): Documentation sur Python | |
430 | Summary(pl.UTF-8): Dokumentacja do Pythona | |
431 | Summary(pt_BR.UTF-8): Documentação para a linguagem de programação Python | |
432 | Summary(ru.UTF-8): Документация по языку Python | |
433 | Summary(tr.UTF-8): Python belgeleri | |
434 | Summary(uk.UTF-8): Документація по мові Python | |
435 | Group: Documentation | |
436 | Obsoletes: python-docs | |
437 | ||
438 | %description doc | |
439 | This package contains documentation on the Python language and | |
440 | interpretor as a mix of plain ASCII files and LaTeX sources. | |
441 | ||
442 | %description doc -l de.UTF-8 | |
443 | Dieses Paket enthält Dokumentationen zu Python (Sprache und | |
444 | Interpreter) in Form von einfachen ASCII-Dateien und LaTeX-Quellen. | |
445 | ||
446 | %description doc -l es.UTF-8 | |
447 | Documentación para Python. Contiene archivos en texto y PostScript. | |
448 | ||
449 | %description doc -l fr.UTF-8 | |
450 | Ce paquetage contient la documentation sur le langage python et sur | |
451 | son interpréteur sous forme de fichiers ASCII et LaTeX. | |
452 | ||
453 | %description doc -l pl.UTF-8 | |
454 | Oficjalna dokumentacja do Pythona. Zawiera przykładowe programy, | |
455 | narzędzia i dokumentację. Strony podręcznika man znajdują się w | |
456 | głównym pakiecie. Ten pakiet nie zawiera źródeł dokumentacji | |
457 | napisanych w LaTeXu, tylko gotowe do wykorzystania pliki postscriptowe | |
458 | i HTML. | |
459 | ||
460 | %description doc -l pt_BR.UTF-8 | |
461 | O pacote python-doc contém documentação para a linguagem de | |
462 | programação e para o interpretador Python. Fornecida em arquivos texto | |
463 | e Postcript. | |
464 | ||
465 | %description doc -l ru.UTF-8 | |
466 | Этот пакет содержит документацию по собственно языку Python и по | |
467 | исполняющему его интерпретатору в виде набора текстовых файлов и | |
468 | исходных текстов в формате LaTeX. | |
469 | ||
470 | %description doc -l tr.UTF-8 | |
471 | Bu paket, Python dili ile ilgili belgeleri ve düz ASCII dosyaları ve | |
472 | LaTeX kaynaklarının bir karışımı olan yorumlayıcıyı içerir. | |
473 | ||
474 | %description doc -l uk.UTF-8 | |
475 | Цей пакет містить документацію по власне мові Python та по виконуючому | |
476 | її інтерпретатору у вигляді набора текстових файлів та вихідних | |
477 | текстів у форматі LaTeX. | |
478 | ||
479 | %package doc-info | |
480 | Summary: Documentation on Python in texinfo format | |
481 | Summary(pl.UTF-8): Dokumentacja do Pythona w formacie texinfo | |
482 | Group: Documentation | |
483 | ||
484 | %description doc-info | |
485 | Documentation on Python in texinfo format. | |
486 | ||
487 | %description doc-info -l pl.UTF-8 | |
488 | Dokumentacja do Pythona w formacie texinfo. | |
489 | ||
490 | %package tkinter | |
491 | Summary: Standard Python interface to the Tk GUI toolkit | |
492 | Summary(de.UTF-8): Grafische Tk-Schnittstelle für Python | |
493 | Summary(es.UTF-8): Interfaz de GUI Tk para Python | |
494 | Summary(fr.UTF-8): Interface graphique Tk pour Python | |
495 | Summary(pl.UTF-8): Standardowy interfejs Pythona do biblioteki Tk | |
496 | Summary(pt_BR.UTF-8): Interface GUI Tk para Phyton | |
497 | Summary(tr.UTF-8): Python için grafik kullanıcı arayüzü | |
498 | Group: Libraries/Python | |
499 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
500 | Requires: tcl >= 8.4.3 | |
501 | Requires: tix >= 1:8.1.4-4 | |
502 | Requires: tk >= 8.4.3 | |
503 | Obsoletes: tkinter | |
504 | ||
505 | %description tkinter | |
506 | Standard Python interface to the Tk GUI toolkit. | |
507 | ||
508 | %description tkinter -l de.UTF-8 | |
509 | Eine grafische Schnittstelle für Python, basierend auf Tcl/Tk, und von | |
510 | vielen Konfigurations-Tools genutzt. | |
511 | ||
512 | %description tkinter -l es.UTF-8 | |
513 | Una interfaz gráfica para Python, basada en Tcl/Tk, y usada por muchas | |
514 | herramientas de configuración. | |
515 | ||
516 | %description tkinter -l fr.UTF-8 | |
517 | Interface graphique pour Python, basée sur Tcl/Tk et utilisée par | |
518 | beaucoup des outils de configuration. | |
519 | ||
520 | %description tkinter -l pl.UTF-8 | |
521 | Standardowy interfejs Pythona do biblioteki Tk. | |
522 | ||
523 | %description tkinter -l pt_BR.UTF-8 | |
524 | Uma interface gráfica para Python, baseada em Tcl/Tk, e usada por | |
525 | muitas ferramentas de configuração. | |
526 | ||
527 | %description tkinter -l ru.UTF-8 | |
528 | Графический интерфейс (GUI) для Python, построенный на Tcl/Tk. | |
529 | ||
530 | %description tkinter -l tr.UTF-8 | |
531 | Python için Tcl/Tk'ye dayalı ve pek çok ayarlama aracı tarafından | |
532 | kullanılan grafik bir arayüzdür. | |
533 | ||
534 | %description tkinter -l uk.UTF-8 | |
535 | Графічний інтерфейс (GUI) для Python, побудований на Tcl/Tk. | |
536 | ||
537 | %package examples | |
538 | Summary: Example programs in Python | |
539 | Summary(pl.UTF-8): Przykładowe programy w Pythonie | |
540 | Group: Development/Languages/Python | |
541 | Obsoletes: python-tools | |
542 | ||
543 | %description examples | |
544 | Example programs in Python. | |
545 | ||
546 | These are for Python 2.3.4, not %{version}. | |
547 | ||
548 | %description examples -l pl.UTF-8 | |
549 | Przykładowe programy w Pythonie. | |
550 | ||
551 | Przykłady te są dla Pythona 2.3.4, nie %{version}. | |
552 | ||
553 | %package test | |
554 | Summary: Python test modules | |
555 | Summary(pl.UTF-8): Moduły testowe Pythona | |
556 | Group: Development/Languages/Python | |
557 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
558 | Suggests: %{name}-devel-src = %{epoch}:%{version}-%{release} | |
559 | ||
560 | %description test | |
561 | Python test modules. | |
562 | ||
563 | Unit tests for Python, some may be reused for testing other Python | |
564 | software. | |
565 | ||
566 | %description test -l pl.UTF-8 | |
567 | Moduły testowe Pythona. | |
568 | ||
569 | Niektóre z nich mogą być używane do testowania oprogramowania | |
570 | napisanego w Pythonie. | |
571 | ||
572 | %prep | |
573 | %setup -q -n Python-%{version}%{beta} | |
574 | %patch0 -p1 | |
575 | %patch1 -p1 | |
576 | %patch2 -p1 | |
577 | %patch3 -p1 | |
578 | %patch4 -p1 | |
579 | %patch5 -p1 | |
580 | %patch6 -p1 | |
581 | %patch7 -p1 | |
582 | ||
583 | tar xjf %{SOURCE1} | |
584 | ||
585 | sed -i -e 's#db_setup_debug = False#db_setup_debug = True#g' setup.py | |
586 | ||
587 | # remove if Lib/plat-linux3 exists | |
588 | [ -d Lib/plat-linux3 ] && exit 1 | |
589 | cp -a Lib/plat-linux2 Lib/plat-linux3 | |
590 | ||
591 | %build | |
592 | %{__aclocal} | |
593 | %{__autoconf} | |
594 | %configure \ | |
595 | OPT="%{rpmcflags}" \ | |
596 | CPPFLAGS="%{rpmcppflags}" \ | |
597 | LDFLAGS="%{rpmldflags}" \ | |
598 | ac_cv_posix_semaphores_enabled=yes \ | |
599 | ac_cv_broken_sem_getvalue=no \ | |
600 | %{?with_debug:--with-pydebug} \ | |
601 | --with-threads \ | |
602 | --with-cxx-main="%{__cxx}" \ | |
603 | --with-system-ffi \ | |
604 | --enable-ipv6 \ | |
605 | --enable-unicode=ucs4 \ | |
606 | --enable-shared \ | |
607 | --with-dbmliborder=gdbm:bdb \ | |
608 | --without-ensurepip | |
609 | ||
610 | %{__make} 2>&1 | awk ' | |
611 | BEGIN { fail = 0; logmsg = ""; } | |
612 | { | |
613 | if ($0 ~ /\*\*\* WARNING:/) { | |
614 | fail = 1; | |
615 | logmsg = logmsg $0; | |
616 | } | |
617 | print $0; | |
618 | } | |
619 | END { if (fail) { print "\nPROBLEMS FOUND:"; print logmsg; exit(1); } }' | |
620 | ||
621 | LC_ALL=C | |
622 | export LC_ALL | |
623 | %if %{with tests} | |
624 | WITHIN_PYTHON_RPM_BUILD=1 %{__make} -j1 test \ | |
625 | TESTOPTS="%{test_flags} %{test_list}" \ | |
626 | TESTPYTHON="LD_LIBRARY_PATH=`pwd` PYTHONHOME=`pwd` PYTHONPATH=`pwd`/Lib:`pwd`/Lib/lib-tk:`pwd`/build/lib.linux-`uname -m`-%{py_ver} ./python -tt" | |
627 | %endif | |
628 | ||
629 | %install | |
630 | rm -rf $RPM_BUILD_ROOT | |
631 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ | |
632 | $RPM_BUILD_ROOT{%{py_sitedir},%{_mandir}/man1} \ | |
633 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ | |
634 | $RPM_BUILD_ROOT%{_infodir} \ | |
635 | $RPM_BUILD_ROOT%{_docdir} \ | |
636 | $RPM_BUILD_ROOT/etc/shrc.d | |
637 | ||
638 | %{__make} install \ | |
639 | DESTDIR=$RPM_BUILD_ROOT | |
640 | ||
641 | # docs in constant location | |
642 | ln -sf python-doc-%{version} $RPM_BUILD_ROOT%{_docdir}/python-doc | |
643 | ||
644 | %if %{with info} | |
645 | %{__make} -C Doc/info | |
646 | cp -p Doc/info/python*info* $RPM_BUILD_ROOT%{_infodir} | |
647 | %endif | |
648 | ||
649 | cp -p Makefile.pre.in $RPM_BUILD_ROOT%{py_libdir}/config | |
650 | ||
651 | mv $RPM_BUILD_ROOT{%{py_libdir}/config,%{_libdir}}/libpython%{py_ver}.a | |
652 | ln -sf libpython%{py_ver}.a $RPM_BUILD_ROOT%{_libdir}/libpython.a | |
653 | ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython.so | |
654 | ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython%{py_ver}.so | |
655 | ||
656 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
657 | cp -a Tools Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
658 | ||
659 | # | |
660 | # create several useful aliases, such as timeit.py, profile.py, pdb.py, smtpd.py | |
661 | # | |
662 | ||
663 | # for python devel tools | |
664 | for script in timeit profile pdb pstats; do | |
665 | echo alias $script.py=\"python -m ${script}\" | |
666 | done > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh | |
667 | ||
668 | sed 's/=/ /' \ | |
669 | < $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh \ | |
670 | > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.csh | |
671 | ||
672 | # for python modules | |
673 | for script in smtpd webbrowser; do | |
674 | echo alias $script.py=\"python -m ${script}\" | |
675 | done > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh | |
676 | ||
677 | sed 's/=/ /' \ | |
678 | < $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh \ | |
679 | > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.csh | |
680 | ||
681 | # just to cut the noise, as they are not packaged (now) | |
682 | %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/plat-*/regen | |
683 | %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/idlelib/idle_test | |
684 | ||
685 | find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.egg-info -exec rm {} \; | |
686 | find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.bat -exec rm {} \; | |
687 | find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.txt -exec rm {} \; | |
688 | find $RPM_BUILD_ROOT%{py_scriptdir} -name README\* -exec rm {} \; | |
689 | ||
690 | %clean | |
691 | rm -rf $RPM_BUILD_ROOT | |
692 | ||
693 | %post libs -p /sbin/ldconfig | |
694 | %postun libs -p /sbin/ldconfig | |
695 | ||
696 | %post doc-info -p /sbin/postshell | |
697 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
698 | ||
699 | %postun doc-info -p /sbin/postshell | |
700 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
701 | ||
702 | %files | |
703 | %defattr(644,root,root,755) | |
704 | %attr(755,root,root) %{_bindir}/python | |
705 | %attr(755,root,root) %{_bindir}/python2 | |
706 | %attr(755,root,root) %{_bindir}/python%{py_ver} | |
707 | %{_mandir}/man1/python.1* | |
708 | %{_mandir}/man1/python2.1* | |
709 | ||
710 | %files modules | |
711 | %defattr(644,root,root,755) | |
712 | /etc/shrc.d/python-modules* | |
713 | %exclude %{py_scriptdir}/_abcoll.py[co] | |
714 | %exclude %{py_scriptdir}/abc.py[co] | |
715 | %exclude %{py_scriptdir}/UserDict.py[co] | |
716 | %exclude %{py_scriptdir}/codecs.py[co] | |
717 | %exclude %{py_scriptdir}/copy_reg.py[co] | |
718 | %exclude %{py_scriptdir}/genericpath.py[co] | |
719 | %exclude %{py_scriptdir}/linecache.py[co] | |
720 | %exclude %{py_scriptdir}/locale.py[co] | |
721 | %exclude %{py_scriptdir}/posixpath.py[co] | |
722 | %exclude %{py_scriptdir}/pdb.py[co] | |
723 | %exclude %{py_scriptdir}/profile.py[co] | |
724 | %exclude %{py_scriptdir}/pstats.py[co] | |
725 | %exclude %{py_scriptdir}/pydoc.py[co] | |
726 | %exclude %{py_scriptdir}/re.py[co] | |
727 | %exclude %{py_scriptdir}/site.py[co] | |
728 | %exclude %{py_scriptdir}/sre_*.py[co] | |
729 | %exclude %{py_scriptdir}/stat.py[co] | |
730 | %exclude %{py_scriptdir}/sysconfig.py[co] | |
731 | %exclude %{py_scriptdir}/timeit.py[co] | |
732 | %exclude %{py_scriptdir}/os.py[co] | |
733 | %exclude %{py_scriptdir}/_weakrefset.py[co] | |
734 | %exclude %{py_scriptdir}/encodings/*.py[co] | |
735 | %exclude %{py_scriptdir}/types.py[co] | |
736 | %exclude %{py_scriptdir}/warnings.py[co] | |
737 | ||
738 | %{py_scriptdir}/*.py[co] | |
739 | ||
740 | %{py_dyndir}/Python-%{version}-py%{py_ver}.egg-info | |
741 | ||
742 | # | |
743 | # list .so modules to be sure that all of them are built | |
744 | # | |
745 | ||
746 | # three modules below do not work on 64-bit architectures | |
747 | # see Python README file for explanation | |
748 | %ifnarch alpha ia64 ppc64 sparc64 %{x8664} | |
749 | %attr(755,root,root) %{py_dyndir}/imageop.so | |
750 | # sizeof(long) != sizeof(int), so dl module will not be built on 64-bit | |
751 | # platforms | |
752 | %attr(755,root,root) %{py_dyndir}/dl.so | |
753 | %endif | |
754 | ||
755 | %attr(755,root,root) %{py_dyndir}/audioop.so | |
756 | %attr(755,root,root) %{py_dyndir}/array.so | |
757 | %attr(755,root,root) %{py_dyndir}/binascii.so | |
758 | %attr(755,root,root) %{py_dyndir}/_bisect.so | |
759 | %attr(755,root,root) %{py_dyndir}/_bsddb.so | |
760 | %attr(755,root,root) %{py_dyndir}/bz2.so | |
761 | %attr(755,root,root) %{py_dyndir}/cmath.so | |
762 | %attr(755,root,root) %{py_dyndir}/_codecs_cn.so | |
763 | %attr(755,root,root) %{py_dyndir}/_codecs_hk.so | |
764 | %attr(755,root,root) %{py_dyndir}/_codecs_iso2022.so | |
765 | %attr(755,root,root) %{py_dyndir}/_codecs_jp.so | |
766 | %attr(755,root,root) %{py_dyndir}/_codecs_kr.so | |
767 | %attr(755,root,root) %{py_dyndir}/_codecs_tw.so | |
768 | %attr(755,root,root) %{py_dyndir}/_collections.so | |
769 | %attr(755,root,root) %{py_dyndir}/cPickle.so | |
770 | %attr(755,root,root) %{py_dyndir}/crypt.so | |
771 | %attr(755,root,root) %{py_dyndir}/cStringIO.so | |
772 | %attr(755,root,root) %{py_dyndir}/_csv.so | |
773 | %attr(755,root,root) %{py_dyndir}/_ctypes*.so | |
774 | %attr(755,root,root) %{py_dyndir}/_curses_panel.so | |
775 | %attr(755,root,root) %{py_dyndir}/_curses.so | |
776 | %attr(755,root,root) %{py_dyndir}/datetime.so | |
777 | %attr(755,root,root) %{py_dyndir}/_elementtree.so | |
778 | %attr(755,root,root) %{py_dyndir}/_functools.so | |
779 | %attr(755,root,root) %{py_dyndir}/_hashlib.so | |
780 | %attr(755,root,root) %{py_dyndir}/_heapq.so | |
781 | %attr(755,root,root) %{py_dyndir}/_io.so | |
782 | %attr(755,root,root) %{py_dyndir}/_json.so | |
783 | %attr(755,root,root) %{py_dyndir}/_locale.so | |
784 | %attr(755,root,root) %{py_dyndir}/_lsprof.so | |
785 | %attr(755,root,root) %{py_dyndir}/_multibytecodec.so | |
786 | %attr(755,root,root) %{py_dyndir}/_multiprocessing.so | |
787 | %attr(755,root,root) %{py_dyndir}/_random.so | |
788 | %{?with_openssl097:%attr(755,root,root) %{py_dyndir}/_sha*.so} | |
789 | %attr(755,root,root) %{py_dyndir}/_socket.so | |
790 | %attr(755,root,root) %{py_dyndir}/_ssl.so | |
791 | %attr(755,root,root) %{py_dyndir}/_testcapi.so | |
792 | %ifnarch sparc64 | |
793 | %attr(755,root,root) %{py_dyndir}/dbm.so | |
794 | %endif | |
795 | %attr(755,root,root) %{py_dyndir}/fcntl.so | |
796 | %attr(755,root,root) %{py_dyndir}/future_builtins.so | |
797 | %attr(755,root,root) %{py_dyndir}/gdbm.so | |
798 | %attr(755,root,root) %{py_dyndir}/grp.so | |
799 | %attr(755,root,root) %{py_dyndir}/itertools.so | |
800 | %attr(755,root,root) %{py_dyndir}/linuxaudiodev.so | |
801 | %attr(755,root,root) %{py_dyndir}/math.so | |
802 | %attr(755,root,root) %{py_dyndir}/mmap.so | |
803 | %attr(755,root,root) %{py_dyndir}/nis.so | |
804 | %attr(755,root,root) %{py_dyndir}/operator.so | |
805 | %attr(755,root,root) %{py_dyndir}/ossaudiodev.so | |
806 | %attr(755,root,root) %{py_dyndir}/parser.so | |
807 | %attr(755,root,root) %{py_dyndir}/pyexpat.so | |
808 | %attr(755,root,root) %{py_dyndir}/readline.so | |
809 | %attr(755,root,root) %{py_dyndir}/resource.so | |
810 | %attr(755,root,root) %{py_dyndir}/select.so | |
811 | %attr(755,root,root) %{py_dyndir}/strop.so | |
812 | %attr(755,root,root) %{py_dyndir}/syslog.so | |
813 | %attr(755,root,root) %{py_dyndir}/termios.so | |
814 | %attr(755,root,root) %{py_dyndir}/time.so | |
815 | %attr(755,root,root) %{py_dyndir}/spwd.so | |
816 | %attr(755,root,root) %{py_dyndir}/unicodedata.so | |
817 | %attr(755,root,root) %{py_dyndir}/zlib.so | |
818 | ||
819 | %dir %{py_scriptdir}/plat-* | |
820 | %{py_scriptdir}/plat-*/*.py[co] | |
821 | ||
822 | %dir %{py_scriptdir}/bsddb | |
823 | %{py_scriptdir}/bsddb/*.py[co] | |
824 | ||
825 | %dir %{py_scriptdir}/compiler | |
826 | %{py_scriptdir}/compiler/*.py[co] | |
827 | ||
828 | %dir %{py_scriptdir}/ctypes | |
829 | %dir %{py_scriptdir}/ctypes/macholib | |
830 | %{py_scriptdir}/ctypes/*.py[co] | |
831 | %{py_scriptdir}/ctypes/macholib/*.py[co] | |
832 | ||
833 | %dir %{py_scriptdir}/curses | |
834 | %{py_scriptdir}/curses/*.py[co] | |
835 | ||
836 | %dir %{py_scriptdir}/distutils | |
837 | %dir %{py_scriptdir}/distutils/command | |
838 | %{py_scriptdir}/distutils/*.py[co] | |
839 | %{py_scriptdir}/distutils/command/*.py[co] | |
840 | ||
841 | %dir %{py_scriptdir}/email | |
842 | %dir %{py_scriptdir}/email/mime | |
843 | %{py_scriptdir}/email/*.py[co] | |
844 | %{py_scriptdir}/email/mime/*.py[co] | |
845 | ||
846 | %dir %{py_scriptdir}/ensurepip | |
847 | %{py_scriptdir}/ensurepip/*.py[co] | |
848 | %{py_scriptdir}/ensurepip/_bundled | |
849 | ||
850 | %dir %{py_scriptdir}/idlelib | |
851 | ||
852 | %dir %{py_scriptdir}/importlib | |
853 | %{py_scriptdir}/importlib/*.py[co] | |
854 | ||
855 | %dir %{py_scriptdir}/json | |
856 | %{py_scriptdir}/json/*.py[co] | |
857 | ||
858 | %dir %{py_scriptdir}/logging | |
859 | %{py_scriptdir}/logging/*.py[co] | |
860 | ||
861 | %dir %{py_scriptdir}/multiprocessing | |
862 | %dir %{py_scriptdir}/multiprocessing/dummy | |
863 | %{py_scriptdir}/multiprocessing/*.py[co] | |
864 | %{py_scriptdir}/multiprocessing/dummy/*.py[co] | |
865 | ||
866 | %dir %{py_scriptdir}/unittest | |
867 | %{py_scriptdir}/unittest/*.py[co] | |
868 | %dir %{py_scriptdir}/unittest/test | |
869 | %{py_scriptdir}/unittest/test/*.py[co] | |
870 | ||
871 | %dir %{py_scriptdir}/wsgiref | |
872 | %{py_scriptdir}/wsgiref/*.py[co] | |
873 | ||
874 | %dir %{py_scriptdir}/xml | |
875 | %dir %{py_scriptdir}/xml/dom | |
876 | %dir %{py_scriptdir}/xml/etree | |
877 | %dir %{py_scriptdir}/xml/parsers | |
878 | %dir %{py_scriptdir}/xml/sax | |
879 | %{py_scriptdir}/xml/*.py[co] | |
880 | %{py_scriptdir}/xml/dom/*.py[co] | |
881 | %{py_scriptdir}/xml/etree/*.py[co] | |
882 | %{py_scriptdir}/xml/parsers/*.py[co] | |
883 | %{py_scriptdir}/xml/sax/*.py[co] | |
884 | ||
885 | %files modules-sqlite | |
886 | %defattr(644,root,root,755) | |
887 | %attr(755,root,root) %{py_dyndir}/_sqlite3.so | |
888 | %dir %{py_scriptdir}/sqlite3 | |
889 | %{py_scriptdir}/sqlite3/*.py[co] | |
890 | ||
891 | %files libs | |
892 | %defattr(644,root,root,755) | |
893 | %attr(755,root,root) %{_libdir}/libpython%{py_ver}.so.* | |
894 | ||
895 | %dir %{py_dyndir} | |
896 | %dir %{py_scriptdir} | |
897 | %dir %{py_libdir} | |
898 | %dir %{py_sitescriptdir} | |
899 | %dir %{py_sitedir} | |
900 | ||
901 | # shared modules required by python library | |
902 | %attr(755,root,root) %{py_dyndir}/_struct.so | |
903 | ||
904 | # modules required by python library | |
905 | %{py_scriptdir}/_abcoll.py[co] | |
906 | %{py_scriptdir}/abc.py[co] | |
907 | %{py_scriptdir}/UserDict.py[co] | |
908 | %{py_scriptdir}/codecs.py[co] | |
909 | %{py_scriptdir}/copy_reg.py[co] | |
910 | %{py_scriptdir}/genericpath.py[co] | |
911 | %{py_scriptdir}/linecache.py[co] | |
912 | %{py_scriptdir}/locale.py[co] | |
913 | %{py_scriptdir}/posixpath.py[co] | |
914 | %{py_scriptdir}/re.py[co] | |
915 | %{py_scriptdir}/site.py[co] | |
916 | %{py_scriptdir}/sre_*.py[co] | |
917 | %{py_scriptdir}/stat.py[co] | |
918 | %{py_scriptdir}/sysconfig.py[co] | |
919 | %{py_scriptdir}/os.py[co] | |
920 | %{py_scriptdir}/_weakrefset.py[co] | |
921 | # needed by the dynamic sys.lib patch | |
922 | %{py_scriptdir}/types.py[co] | |
923 | %{py_scriptdir}/warnings.py[co] | |
924 | ||
925 | # encodings required by python library | |
926 | %dir %{py_scriptdir}/encodings | |
927 | %{py_scriptdir}/encodings/*.py[co] | |
928 | ||
929 | # required by sysconfig.py | |
930 | %dir %{py_libdir}/config | |
931 | %{py_libdir}/config/Makefile | |
932 | %dir %{py_incdir} | |
933 | %{py_incdir}/pyconfig.h | |
934 | ||
935 | %files -n pydoc | |
936 | %defattr(644,root,root,755) | |
937 | %attr(755,root,root) %{_bindir}/pydoc | |
938 | %{py_scriptdir}/pydoc.py[co] | |
939 | %dir %{py_scriptdir}/pydoc_data | |
940 | %{py_scriptdir}/pydoc_data/*.py[co] | |
941 | ||
942 | %files -n idle | |
943 | %defattr(644,root,root,755) | |
944 | %attr(755,root,root) %{_bindir}/idle | |
945 | %dir %{py_scriptdir}/idlelib/Icons | |
946 | %{py_scriptdir}/idlelib/*.py[co] | |
947 | %{py_scriptdir}/idlelib/Icons/* | |
948 | %{py_scriptdir}/idlelib/*.def | |
949 | ||
950 | %files devel | |
951 | %defattr(644,root,root,755) | |
952 | %doc Misc/{ACKS,NEWS,README,README.valgrind,valgrind-python.supp} | |
953 | %attr(755,root,root) %{_bindir}/python-config | |
954 | %attr(755,root,root) %{_bindir}/python2-config | |
955 | %attr(755,root,root) %{_bindir}/python%{py_ver}-config | |
956 | %attr(755,root,root) %{_libdir}/libpython%{py_ver}.so | |
957 | %attr(755,root,root) %{_libdir}/libpython.so | |
958 | %{py_incdir}/*.h | |
959 | %exclude %{py_incdir}/pyconfig.h | |
960 | %{_pkgconfigdir}/python.pc | |
961 | %{_pkgconfigdir}/python2.pc | |
962 | %{_pkgconfigdir}/python-%{py_ver}.pc | |
963 | ||
964 | %attr(755,root,root) %{py_libdir}/config/makesetup | |
965 | %attr(755,root,root) %{py_libdir}/config/install-sh | |
966 | %{py_libdir}/config/Makefile.pre.in | |
967 | %{py_libdir}/config/Setup | |
968 | %{py_libdir}/config/Setup.config | |
969 | %{py_libdir}/config/Setup.local | |
970 | %{py_libdir}/config/config.c | |
971 | %{py_libdir}/config/config.c.in | |
972 | %{py_libdir}/config/python.o | |
973 | ||
974 | %files devel-src | |
975 | %defattr(644,root,root,755) | |
976 | %attr(-,root,root) %{py_scriptdir}/*.py | |
977 | %{py_scriptdir}/plat-*/*.py | |
978 | %{py_scriptdir}/bsddb/*.py | |
979 | %{py_scriptdir}/ctypes/*.py | |
980 | %{py_scriptdir}/ctypes/macholib/*.py | |
981 | %{py_scriptdir}/compiler/*.py | |
982 | %{py_scriptdir}/curses/*.py | |
983 | %{py_scriptdir}/distutils/*.py | |
984 | %{py_scriptdir}/distutils/command/*.py | |
985 | %{py_scriptdir}/email/*.py | |
986 | %{py_scriptdir}/email/mime/*.py | |
987 | %{py_scriptdir}/encodings/*.py | |
988 | %{py_scriptdir}/hotshot/*.py | |
989 | %{py_scriptdir}/ensurepip/*.py | |
990 | %{py_scriptdir}/idlelib/*.py | |
991 | %{py_scriptdir}/importlib/*.py | |
992 | %{py_scriptdir}/json/*.py | |
993 | %{py_scriptdir}/lib2to3/*.py | |
994 | %{py_scriptdir}/lib2to3/fixes/*.py | |
995 | %{py_scriptdir}/lib2to3/pgen2/*.py | |
996 | %{py_scriptdir}/logging/*.py | |
997 | %{py_scriptdir}/multiprocessing/*.py | |
998 | %{py_scriptdir}/multiprocessing/dummy/*.py | |
999 | %{py_scriptdir}/pydoc_data/*.py | |
1000 | %{py_scriptdir}/sqlite3/*.py | |
1001 | %{py_scriptdir}/unittest/*.py | |
1002 | %{py_scriptdir}/unittest/test/*.py | |
1003 | %{py_scriptdir}/wsgiref/*.py | |
1004 | %{py_scriptdir}/xml/*.py | |
1005 | %{py_scriptdir}/xml/dom/*.py | |
1006 | %{py_scriptdir}/xml/etree/*.py | |
1007 | %{py_scriptdir}/xml/parsers/*.py | |
1008 | %{py_scriptdir}/xml/sax/*.py | |
1009 | ||
1010 | %files devel-tools | |
1011 | %defattr(644,root,root,755) | |
1012 | %doc Lib/pdb.doc | |
1013 | /etc/shrc.d/python-devel* | |
1014 | ||
1015 | %attr(755,root,root) %{py_dyndir}/_hotshot.so | |
1016 | %dir %{py_scriptdir}/hotshot | |
1017 | %{py_scriptdir}/hotshot/*.py[co] | |
1018 | %{py_scriptdir}/pdb.py[co] | |
1019 | %{py_scriptdir}/profile.py[co] | |
1020 | %{py_scriptdir}/pstats.py[co] | |
1021 | %{py_scriptdir}/timeit.py[co] | |
1022 | ||
1023 | %files 2to3 | |
1024 | %defattr(644,root,root,755) | |
1025 | %attr(755,root,root) %{_bindir}/2to3 | |
1026 | %dir %{py_scriptdir}/lib2to3 | |
1027 | %dir %{py_scriptdir}/lib2to3/fixes | |
1028 | %dir %{py_scriptdir}/lib2to3/pgen2 | |
1029 | %{py_scriptdir}/lib2to3/*.py[co] | |
1030 | %{py_scriptdir}/lib2to3/*.pickle | |
1031 | %{py_scriptdir}/lib2to3/fixes/*.py[co] | |
1032 | %{py_scriptdir}/lib2to3/pgen2/*.py[co] | |
1033 | ||
1034 | %files static | |
1035 | %defattr(644,root,root,755) | |
1036 | %{_libdir}/libpython%{py_ver}.a | |
1037 | %{_libdir}/libpython.a | |
1038 | ||
1039 | %files examples | |
1040 | %defattr(644,root,root,755) | |
1041 | %{_examplesdir}/%{name}-%{version} | |
1042 | ||
1043 | %files test | |
1044 | %defattr(644,root,root,755) | |
1045 | %{py_scriptdir}/test | |
1046 | %{py_scriptdir}/bsddb/test | |
1047 | %{py_scriptdir}/ctypes/test | |
1048 | %{py_scriptdir}/distutils/tests | |
1049 | %{py_scriptdir}/email/test | |
1050 | %{py_scriptdir}/sqlite3/test | |
1051 | %{py_scriptdir}/json/tests | |
1052 | %{py_scriptdir}/lib2to3/tests | |
1053 | ||
1054 | %files doc | |
1055 | %defattr(644,root,root,755) | |
1056 | %doc python-%{dver}-docs-html/* | |
1057 | %{_docdir}/python-doc | |
1058 | ||
1059 | %if %{with info} | |
1060 | %files doc-info | |
1061 | %defattr(644,root,root,755) | |
1062 | %{_infodir}/*.info* | |
1063 | %endif | |
1064 | ||
1065 | %if %{with tkinter} | |
1066 | %files tkinter | |
1067 | %defattr(644,root,root,755) | |
1068 | %{py_scriptdir}/lib-tk | |
1069 | %attr(755,root,root) %{py_dyndir}/_tkinter.so | |
1070 | %endif |