]> git.pld-linux.org Git - packages/python.git/blob - python.spec
- rel 6; fix 3 segfault cases
[packages/python.git] / python.spec
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 # - change searchpath order so /usr/lib* is before /usr/share
6 # - kill lib-tk from searchpath
7 # - kill BR: file requirement from lib64 patch
8 #
9 # Conditional build:
10 %bcond_with     info                    # build info pages (requires emacs, fails in python-2.5.0)
11 %bcond_without  tkinter                 # disables tkinter module building
12 %bcond_without  tests                   # disables Python testing
13 %bcond_with     verbose_tests           # runs tests in verbose mode
14 #
15 # tests which will not work on 64-bit platforms
16 %define         no64bit_tests   test_audioop test_rgbimg test_imageop
17 # tests which may fail because of builder environment limitations (no /proc or /dev/pts)
18 %define         nobuilder_tests test_resource test_openpty test_socket test_nis test_posix test_locale test_pty
19 # tests which fail because of some unknown/unresolved reason (this list should be empty)
20 %define         broken_tests test_anydbm test_bsddb test_re test_shelve test_whichdb test_zipimport test_distutils
21
22 %define beta            %{nil}
23
24 %define py_ver          2.5
25 %define py_prefix       %{_prefix}
26 %define py_libdir       %{py_prefix}/%{_lib}/python%{py_ver}
27 %define py_incdir       %{_includedir}/python%{py_ver}
28 %define py_sitedir      %{py_libdir}/site-packages
29 %define py_dyndir       %{py_libdir}/lib-dynload
30
31 Summary:        Very high level scripting language with X interface
32 Summary(es):    Lenguaje script de alto nivel con interfaz X
33 Summary(fr):    Langage de script de très haut niveau avec interface X
34 Summary(pl):    Python - jêzyk obiektowy wysokiego poziomu
35 Summary(pt_BR): Linguagem de programação interpretada de alto nível
36 Summary(ru):    ñÚÙË ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ ÏÞÅÎØ ×ÙÓÏËÏÇÏ ÕÒÏ×ÎÑ Ó X-ÉÎÔÅÒÆÅÊÓÏÍ
37 Summary(tr):    X arayüzlü, yüksek düzeyli, kabuk yorumlayýcý dili
38 Summary(uk):    íÏ×Á ÐÒÏÇÒÁÍÕ×ÁÎÎÑ ÄÕÖÅ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ Ú X-¦ÎÔÅÒÆÅÊÓÏÍ
39 Name:           python
40 Version:        %{py_ver}
41 Release:        6
42 Epoch:          1
43 License:        PSF
44 Group:          Applications
45 Source0:        http://www.python.org/ftp/python/%{py_ver}/Python-%{version}%{beta}.tar.bz2
46 # Source0-md5:  ddb7401e711354ca83b7842b733825a3
47 Source1:        http://www.python.org/ftp/python/doc/%{version}%{beta}/html-%{version}%{beta}.tar.bz2
48 # Source1-md5:  3badfa2d460f52b7f9face12abdb2e91
49 Patch0:         %{name}-readline.patch
50 Patch1:         %{name}-%{name}path.patch
51 Patch2:         %{name}-no_ndbm.patch
52 Patch3:         %{name}-ac_fixes.patch
53 Patch4:         %{name}-noarch_to_datadir.patch
54 Patch5:         %{name}-lib64.patch
55 Patch6:         %{name}-doc_path.patch
56 Patch7:         %{name}-info.patch
57 Patch8:         %{name}-db.patch
58 Patch9:         %{name}-bug-1588287.patch
59 Patch10:        %{name}-segfault-onwarn.patch
60 Patch11:        %{name}-bug-1557232.patch
61 Patch12:        %{name}-bug-1572832.patch
62 URL:            http://www.python.org/
63 BuildRequires:  autoconf
64 BuildRequires:  bzip2-devel
65 BuildRequires:  db-devel >= 4
66 %{?with_info:BuildRequires:     emacs >= 21}
67 BuildRequires:  expat-devel >= 1:1.95.7
68 BuildRequires:  file
69 BuildRequires:  gdbm-devel >= 1.8.3
70 BuildRequires:  gmp-devel >= 4.0
71 BuildRequires:  libstdc++-devel
72 BuildRequires:  ncurses-ext-devel >= 5.2
73 BuildRequires:  openssl-devel >= 0.9.8
74 BuildRequires:  readline-devel >= 5.0
75 BuildRequires:  rpm-pythonprov
76 BuildRequires:  sed >= 4.0
77 BuildRequires:  sqlite3-devel >= 3.3.5
78 %{?with_info:BuildRequires:     tetex-makeindex}
79 %{?with_tkinter:BuildRequires:  tix-devel >= 1:8.1.4-4}
80 %{?with_tkinter:BuildRequires:  tk-devel >= 8.4.3}
81 BuildRequires:  zlib-devel
82 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
83 Obsoletes:      python-curses
84 Obsoletes:      python-gdbm
85 Obsoletes:      python-intl
86 Obsoletes:      python-xml
87 Obsoletes:      python-zlib
88 Obsoletes:      python2
89 Obsoletes:      python2-devel
90 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
91
92 %if %{with verbose_tests}
93 %define test_flags -v -l -x
94 %else
95 %define test_flags -l -x
96 %endif
97
98 %ifarch alpha ia64 ppc64 sparc64 ppc64 %{x8664}
99 %define test_list %{nobuilder_tests} %{broken_tests} %{no64bit_tests}
100 %else
101 %define test_list %{nobuilder_tests} %{broken_tests}
102 %endif
103
104 %description
105 Python is an interpreted, interactive, object-oriented programming
106 language. It incorporates modules, exceptions, dynamic typing, very
107 high level dynamic data types, and classes. Python combines remarkable
108 power with very clear syntax. It has interfaces to many system calls
109 and libraries, as well as to various window systems, and is extensible
110 in C or C++. It is also usable as an extension language for
111 applications that need a programmable interface. Finally, Python is
112 portable: it runs on many brands of UNIX, on the Mac, and on PCs under
113 MS-DOS, Windows, Windows NT, and OS/2.
114
115 This package contains the Python binary.
116
117 %description -l de
118 Python ist eine interpretierte, interaktive, objektorientierte
119 Programmiersprache, vergleichbar zu Tcl, Perl, Scheme oder Java.
120 Python enthält Module, Klassen, Exceptions, High-Level dynamische
121 Datentypen und dynamisches Typisieren. Python unterstützt Interfaces
122 zu vielen Systemaufrufen und Libraries, sowie verschiedene
123 Fenstersysteme (X11, Motif, Tk, Mac und MFC)
124
125 Programmierer können neue built-in-Module für Python in C oder C++
126 schreiben. Python kann auch als Erweiterungssprache für Applikationen
127 benutzt werden, die ein programmierbares Interface brauchen. Dieses
128 Paket enthält die meisten Standard-Python-Module, und Module zum
129 Ansprechen von Tix (Tk-widget set) und RPM.
130
131 %description -l es
132 Python es un lenguaje de scripts interpretado orientado a objetos.
133 Contiene soporte para carga dinámica de objetos, clases, módulos y
134 excepciones.
135
136 Es sencillo adicionar interfaces para nuevos sistemas de biblioteca a
137 través de código C, tornando Python fácil de usar en ambientes
138 particulares/personalizados. Este paquete Python incluye la mayoría de
139 los módulos padrón Python, junto con módulos para crear interfaces
140 para el conjunto de componentes Tix para Tk y RPM.
141
142 %description -l fr
143 Python est un langage de script interprété et orienté objet. Il gère
144 le chargement dynamique des objets, les classes, les modules et les
145 exceptions. L'ajout d'interfaces aux nouvelles bibliothèques systèmes
146 avec du code C est simple, ce qui rend Python facile à utiliser dans
147 des configs personnalisées.
148
149 Ce paquetage Python contient la plupart des modules Python standards,
150 ainsi que ceux permettant l'interfaçage avec les widgets Tix pour Tk
151 et RPM.
152
153 %description -l pl
154 Python jest interpretowanym, interaktywnym i zorientowanym obiektowo
155 jêzykiem programowania. Jest modularny, obs³uguje wyj±tki, dynamiczne
156 typy, zaawansowane dynamiczne struktury danych i klasy. Python ³±czy w
157 sobie du¿e mo¿liwo¶ci i przejrzyst± sk³adniê. Posiada interfejsy do
158 wielu wywo³añ systemowych i bibliotek, w tym równie¿ do ró¿nych
159 bibliotek okienkowych. Mo¿liwo¶ci jego mo¿na jeszcze rozszerzaæ
160 poprzez odpowiednie modu³y pisane w C lub C++. Python mo¿e byæ równie¿
161 u¿yty jako element aplikacji, którym potrzebny jest interpreter do
162 skryptów. I wreszcie, Python jest wieloplatformowy, dzia³a na wielu
163 odmianach UNIX-a, Macu oraz PC pod DOS-em, Windows, WindowsNT oraz
164 OS/2.
165
166 Ten pakiet zawiera binarkê Pythona.
167
168 %description -l pt_BR
169 Python é uma linguagem de scripts interpretada orientada a objetos.
170 Contém suporte para carga dinâmica de objetos, classes, módulos e
171 exceções. Adicionar interfaces para novos sistemas de biblioteca
172 através de código C é simples, tornando Python fácil de usar em
173 ambientes particulares/personalizados.
174
175 Este pacote Python inclui a maioria do módulos padrão Python, junto
176 com módulos para interfaceamento para o conjunto de componentes Tix
177 para Tk e RPM.
178
179 %description -l ru
180 Python - ÜÔÏ ÉÎÔÅÒÐÒÅÔÉÒÕÅÍÙÊ, ÏÂßÅËÔÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÙÊ ÑÚÙË
181 ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ. ïΠÐÏÄÄÅÒÖÉ×ÁÅÔ ÄÉÎÁÍÉÞÅÓËÕÀ ÚÁÇÒÕÚËÕ ÏÂßÅËÔÏ×,
182 ËÌÁÓÓÙ, ÍÏÄÕÌÉ É ÏÂÒÁÂÏÔËÕ ÉÓËÌÀÞÉÔÅÌØÎÙÈ ÓÉÔÕÁÃÉÊ (exceptions).
183 ðÒÏÓÔÏÔÁ ÄÏÂÁ×ÌÅÎÉÑ ÉÎÔÅÒÆÅÊÓÏ× Ë ÎÏ×ÙÍ ÓÉÓÔÅÍÎÙÍ ÂÉÂÌÉÏÔÅËÁÍ ÞÅÒÅÚ
184 ËÏÄ ÎÁ ÑÚÙËÅ C ÄÅÌÁÅÔ Python ÈÏÒÏÛÉÍ ×ÙÂÏÒÏÍ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ×
185 ÓÐÅÃÉÁÌØÎÙÈ ËÏÎÆÉÇÕÒÁÃÉÑÈ.
186
187 %description -l tr
188 Python, nesneye yönelik bir kabuk yorumlayýcýdýr. Nesnelerin,
189 sýnýflarýn, modüllerin ve aykýrý durumlarýn dinamik yüklenmelerine
190 destek verir. C koduyla birlikte kullanýmý son derece kolaydýr. Bu
191 paket, standart Python birimlerinin çoðunun yanýsýra Tk ve RPM için
192 arayüz birimlerini de içerir.
193
194 %description -l uk
195 Python - ÃÅ ¦ÎÔÅÒÐÒÅÔÏ×ÁÎÁ, ÏÂ'¤ËÔÎÏ-ÏÒ¦¤ÎÔÏ×ÁÎÁ ÍÏ×Á ÐÒÏÇÒÁÍÕ×ÁÎÎÑ.
196 ÷¦Î Ð¦ÄÔÒÉÍÕ¤ ÄÉÎÁͦÞÎÕ ÚÁÇÒÕÚËÕ ÏÂ'¤ËÔ¦×, ËÌÁÓÉ, ÍÏÄÕ̦ ÔÁ ÏÂÒÏÂËÕ
197 ×ÉËÌÀÞÎÉÈ ÓÉÔÕÁæʠ(exceptions). ðÒÏÓÔÏÔÁ ÄÏÄÁ×ÁÎÎÑ ¦ÎÔÅÒÆÅÊӦנÄÌÑ
198 ÎÏ×ÉÈ ÓÉÓÔÅÍÎÉȠ¦Â̦ÏÔÅË ÞÅÒÅÚ ËÏÄ ÎÁ ÍÏצ C ÒÏÂÉÔØ Python ÄÏÂÒÉÍ
199 ×ÉÂÏÒÏÍ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ × ÓÐÅæÁÌØÎÉÈ ËÏÎƦÇÕÒÁæÑÈ.
200
201 %package libs
202 Summary:        Python library
203 Summary(pl):    Biblioteka jêzyka Python
204 Group:          Libraries/Python
205 # broken detection in rpm/pythondeps.sh
206 Provides:       python(abi) = %{py_ver}
207 # for compatibility with existing Ac packages
208 Provides:       python(bytecode) = %{py_ver}
209 %{!?with_info:Obsoletes:        python-doc-info}
210
211 %description libs
212 Python shared library and very essental modules for Python binary.
213
214 %description libs -l pl
215 Biblioteka wspó³dzielona jêzyka Python oraz bardzo podstawowe modu³y
216 dla Pythona.
217
218 %package modules
219 Summary:        Python modules
220 Summary(pl):    Modu³y jêzyka Python
221 Group:          Libraries/Python
222 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
223 Obsoletes:      python-ctypes
224 Obsoletes:      python-logging
225 Obsoletes:      python-old
226 Obsoletes:      python-optik
227 Obsoletes:      python-xmlrpc <= 1.0.1
228
229 %description modules
230 Python officially distributed modules.
231
232 %description modules -l pl
233 Oficjalnie rozprowadzane modu³y jêzyka Python.
234
235 %package modules-sqlite
236 Summary:        Python SQLite modules
237 Summary(pl):    Modu³y SQLite jêzyka Python
238 Group:          Libraries/Python
239 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
240
241 %description modules-sqlite
242 Python officially distributed sqlite module.
243
244 %description modules-sqlite -l pl
245 Oficjalnie rozprowadzany modu³ sqlite jêzyka Python.
246
247 %package -n pydoc
248 Summary:        Python interactive module documentation access support
249 Summary(pl):    Interaktywne korzystanie z dokumentacji modu³ów jêzyka Python
250 Group:          Applications
251 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
252 Obsoletes:      python-pydoc
253
254 %description -n pydoc
255 Python interactive module documentation access support.
256
257 %description -n pydoc -l pl
258 Interaktywne korzystanie z dokumentacji modu³ów jêzyka Python.
259
260 %package -n idle
261 Summary:        IDE for Python language
262 Summary(pl):    IDE dla jêzyka Python
263 Group:          Applications
264 Requires:       %{name}-tkinter = %{epoch}:%{version}-%{release}
265 Obsoletes:      python-idle
266
267 %description -n idle
268 IDE for Python language.
269
270 %description -n idle -l pl
271 IDE dla jêzyka Python.
272
273 %package devel
274 Summary:        Libraries and header files for building python code
275 Summary(de):    Libraries und Header-Dateien zum Erstellen von Python-Code
276 Summary(es):    Bibliotecas y archivos de inclusión para construir programas en python
277 Summary(fr):    Bibliothèques et en-têtes pour construire du code python
278 Summary(pl):    Pliki nag³ówkowe i biblioteki Pythona
279 Summary(pt_BR): Bibliotecas e arquivos de inclusão para o Python
280 Summary(ru):    âÉÂÌÉÏÔÅËÉ É ÈÅÄÅÒÙ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÄÁ ÎÁ ÑÚÙËÅ Python
281 Summary(tr):    Python ile geliþtirme yapmak için gerekli dosyalar
282 Summary(uk):    â¦Â̦ÏÔÅËÉ ÔÁ ÈÅÄÅÒÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ ÎÁ ÍÏצ Python
283 Group:          Development/Languages/Python
284 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
285
286 %description devel
287 The Python interpreter is relatively easy to extend with dynamically
288 loaded extensions and to embed in other programs. This package
289 contains the header files and libraries which are needed to do both of
290 these tasks.
291
292 %description devel -l de
293 Der Python-Interpretierer ist relativ einfach anhand von dynamisch
294 ladbaren Erweiterungen auszubauen und läßt sich in andere Programme
295 integrieren. Dieses Paket enthält die Header-Dateien und Libraries,
296 die für beide Aufgaben erforderlich sind.
297
298 %description devel -l es
299 El interpretador Python permite incluir con facilidad extensiones
300 cargadas dinámicamente. Python es también fácil de ser empotrado en
301 otros programas. Este paquete contiene los archivos de inclusión y
302 bibliotecas necesarios para estas dos tareas.
303
304 %description devel -l fr
305 L'interpréteur Python est relativement facile à étendre avec des
306 extensions chargées dynamiquement et à insérer dans d'autres
307 programmes. Ce paquetage contient les en-têtes et les bibliothèques
308 nécessaires à ces deux tâches.
309
310 %description devel -l pl
311 Interpreter Pythona jest w miarê ³atwy do rozszerzania przy pomocy
312 dynamicznie ³adowanych rozszerzeñ napisanych w C lub C++ oraz
313 osadzania w innych programach. Ten pakiet zawiera pliki nag³ówkowe i
314 wszystko inne co potrzebne do tych celów.
315
316 %description devel -l pt_BR
317 O interpretador Python permite incluir com facilidade extensões
318 carregadas dinamicamente. Python é também fácil de ser embutido em
319 outros programas. Este pacote contém os arquivos de inclusão e
320 bibliotecas necessários para estas duas tarefas.
321
322 %description devel -l ru
323 éÎÔÅÒÐÒÅÔÁÔÏÒ Python ÏÔÎÏÓÉÔÅÌØÎÏ ÌÅÇËÏ ÒÁÓÛÉÒÑÅÔÓÑ ÐÒÉ ÐÏÍÏÝÉ
324 ÄÉÎÁÍÉÞÅÓËÉ ÚÁÇÒÕÖÁÅÍÙÈ ÒÁÓÛÉÒÅÎÉÊ É ×ÓÔÒÁÉ×ÁÅÔÓÑ × ÄÒÕÇÉÅ ÐÒÏÇÒÁÍÍÙ.
325 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÏÂÅÉÈ ÜÔÉÈ
326 ÚÁÄÁÞ.
327
328 %description devel -l tr
329 Bu paket, Python ile geliþtirme yapýlabilmesi için gerekli baþlýk
330 dosyalarýný ve kitaplýklarý içerir.
331
332 %description devel -l uk
333 ¶ÎÔÅÒÐÒÅÔÁÔÏÒ Python ×¦ÄÎÏÓÎÏ ÌÅÇËÏ ÒÏÚÛÉÒÀ¤ÔØÓÑ ÚÁ ÄÏÐÏÍÏÇÏÀ
334 ÒÏÚÛÉÒÅÎØ Ú ÄÉÎÁͦÞÎÏÀ ÚÁÇÒÕÚËÏÀ ÔÁ ×ÂÕÄÏ×Õ¤ÔØÓÑ × ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ. ãÅÊ
335 ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÏÂÏÈ ÃÉÈ ÚÁÄÁÞ.
336
337 %package devel-src
338 Summary:        Python module sources
339 Summary(pl):    Pliki ¼ród³owe modu³ów Pythona
340 Group:          Development/Languages/Python
341 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
342
343 %description devel-src
344 Python module sources.
345
346 %description devel-src -l pl
347 Pliki ¼ród³owe modu³ów Pythona.
348
349 %package devel-tools
350 Summary:        Python development tools
351 Summary(pl):    Narzêdzia programistyczne jêzyka Python
352 Group:          Development/Languages/Python
353 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
354
355 %description devel-tools
356 Python development tools such as profilers and debugger.
357
358 %description devel-tools -l pl
359 Narzêdzia programistyczne jêzyka Python takie jak profiler oraz
360 debugger.
361
362 %package static
363 Summary:        Static python library
364 Summary(pl):    Statyczna biblioteka Pythona
365 Group:          Development/Languages/Python
366 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
367
368 %description static
369 Static python library.
370
371 %description static -l pl
372 Statyczna biblioteka Pythona.
373
374 %package doc
375 Summary:        Documentation on Python
376 Summary(de):    Dokumentation zu Python
377 Summary(es):    Documentación para Python
378 Summary(fr):    Documentation sur Python
379 Summary(pl):    Dokumentacja do Pythona
380 Summary(pt_BR): Documentação para a linguagem de programação Python
381 Summary(ru):    äÏËÕÍÅÎÔÁÃÉÑ ÐÏ ÑÚÙËÕ Python
382 Summary(tr):    Python belgeleri
383 Summary(uk):    äÏËÕÍÅÎÔÁæѠÐÏ ÍÏצ Python
384 Group:          Documentation
385 Obsoletes:      python-docs
386
387 %description doc
388 This package contains documentation on the Python language and
389 interpretor as a mix of plain ASCII files and LaTeX sources.
390
391 %description doc -l de
392 Dieses Paket enthält Dokumentationen zu Python (Sprache und
393 Interpreter) in Form von einfachen ASCII-Dateien und LaTeX-Quellen.
394
395 %description doc -l es
396 Documentación para Python. Contiene archivos en texto y PostScript.
397
398 %description doc -l fr
399 Ce paquetage contient la documentation sur le langage python et sur
400 son interpréteur sous forme de fichiers ASCII et LaTeX.
401
402 %description doc -l pl
403 Oficjalna dokumentacja do Pythona. Zawiera przyk³adowe programy,
404 narzêdzia i dokumentacjê. Strony podrêcznika man znajduj± siê w
405 g³ównym pakiecie. Ten pakiet nie zawiera ¼róde³ dokumentacji
406 napisanych w LaTeXu, tylko gotowe do wykorzystania pliki postscriptowe
407 i HTML.
408
409 %description doc -l pt_BR
410 O pacote python-doc contém documentação para a linguagem de
411 programação e para o interpretador Python. Fornecida em arquivos texto
412 e Postcript.
413
414 %description doc -l ru
415 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÏËÕÍÅÎÔÁÃÉÀ ÐÏ ÓÏÂÓÔ×ÅÎÎÏ ÑÚÙËÕ Python É ÐÏ
416 ÉÓÐÏÌÎÑÀÝÅÍÕ ÅÇÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒÕ × ×ÉÄÅ ÎÁÂÏÒÁ ÔÅËÓÔÏ×ÙÈ ÆÁÊÌÏ× É
417 ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× × ÆÏÒÍÁÔÅ LaTeX.
418
419 %description doc -l tr
420 Bu paket, Python dili ile ilgili belgeleri ve düz ASCII dosyalarý ve
421 LaTeX kaynaklarýnýn bir karýþýmý olan yorumlayýcýyý içerir.
422
423 %description doc -l uk
424 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÄÏËÕÍÅÎÔÁæÀ ÐÏ ×ÌÁÓÎÅ ÍÏצ Python ÔÁ ÐÏ ×ÉËÏÎÕÀÞÏÍÕ
425 §§ ¦ÎÔÅÒÐÒÅÔÁÔÏÒÕ Õ ×ÉÇÌÑĦ ÎÁÂÏÒÁ ÔÅËÓÔÏ×ÉÈ ÆÁÊ̦נÔÁ ×ÉȦÄÎÉÈ
426 ÔÅËÓԦנՠÆÏÒÍÁÔ¦ LaTeX.
427
428 %package doc-info
429 Summary:        Documentation on Python in texinfo format
430 Summary(pl):    Dokumentacja do Pythona w formacie texinfo
431 Group:          Documentation
432
433 %description doc-info
434 Documentation on Python in texinfo format.
435
436 %description doc-info -l pl
437 Dokumentacja do Pythona w formacie texinfo.
438
439 %package tkinter
440 Summary:        Standard Python interface to the Tk GUI toolkit
441 Summary(de):    Grafische Tk-Schnittstelle für Python
442 Summary(es):    Interfaz de GUI Tk para Python
443 Summary(fr):    Interface graphique Tk pour Python
444 Summary(pl):    Standardowy interfejs Pythona do biblioteki Tk
445 Summary(pt_BR): Interface GUI Tk para Phyton
446 Summary(tr):    Python için grafik kullanýcý arayüzü
447 Group:          Libraries/Python
448 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
449 Requires:       tcl >= 8.4.3
450 Requires:       tix >= 1:8.1.4-4
451 Requires:       tk >= 8.4.3
452 Obsoletes:      tkinter
453
454 %description tkinter
455 Standard Python interface to the Tk GUI toolkit.
456
457 %description tkinter -l de
458 Eine grafische Schnittstelle für Python, basierend auf Tcl/Tk, und von
459 vielen Konfigurations-Tools genutzt.
460
461 %description tkinter -l es
462 Una interfaz gráfica para Python, basada en Tcl/Tk, y usada por muchas
463 herramientas de configuración.
464
465 %description tkinter -l fr
466 Interface graphique pour Python, basée sur Tcl/Tk et utilisée par
467 beaucoup des outils de configuration.
468
469 %description tkinter -l pl
470 Standardowy interfejs Pythona do biblioteki Tk.
471
472 %description tkinter -l pt_BR
473 Uma interface gráfica para Python, baseada em Tcl/Tk, e usada por
474 muitas ferramentas de configuração.
475
476 %description tkinter -l ru
477 çÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ (GUI) ÄÌÑ Python, ÐÏÓÔÒÏÅÎÎÙÊ ÎÁ Tcl/Tk.
478
479 %description tkinter -l tr
480 Python için Tcl/Tk'ye dayalý ve pek çok ayarlama aracý tarafýndan
481 kullanýlan grafik bir arayüzdür.
482
483 %description tkinter -l uk
484 çÒÁƦÞÎÉÊ ¦ÎÔÅÒÆÅÊÓ (GUI) ÄÌÑ Python, ÐÏÂÕÄÏ×ÁÎÉÊ ÎÁ Tcl/Tk.
485
486 %package examples
487 Summary:        Example programs in Python
488 Summary(pl):    Przyk³adowe programy w Pythonie
489 Group:          Development/Languages/Python
490 Obsoletes:      python-tools
491
492 %description examples
493 Example programs in Python.
494
495 These are for Python 2.3.4, not %{version}.
496
497 %description examples -l pl
498 Przyk³adowe programy w Pythonie.
499
500 Przyk³ady te s± dla Pythona 2.3.4, nie %{version}.
501
502 %prep
503 %setup -q -n Python-%{version}%{beta}
504 %patch0 -p1
505 %patch1 -p1
506 %patch2 -p1
507 %patch3 -p1
508 %patch5 -p1
509 %patch4 -p1
510 %patch6 -p1
511 %patch7 -p1
512 %patch8 -p1
513 %patch9 -p0
514 %patch10 -p0
515 %patch11 -p0
516 %patch12 -p0
517
518 tar -xf %{SOURCE1} --use=bzip2
519
520 %build
521 sed -i -e 's#-ltermcap#-ltinfo#g' configure*
522 %{__autoconf}
523 CPPFLAGS="-I/usr/include/ncurses"; export CPPFLAGS
524 %configure \
525         --with-threads \
526         --with-cxx="%{__cxx}" \
527         --enable-unicode=ucs4 \
528         --enable-shared \
529         LINKCC='$(PURIFY) $(CXX)'
530
531 ./Doc/tools/getversioninfo
532
533 %{__make} \
534         OPT="%{rpmcflags}"
535
536 LC_ALL=C
537 export LC_ALL
538 %if %{with tests}
539 binlibdir=`echo build/lib.*`
540 %{__make} test \
541         TESTOPTS="%{test_flags} %{test_list}" \
542         TESTPYTHON="LD_LIBRARY_PATH=`pwd` PYTHONHOME=`pwd` PYTHONPATH=`pwd`/Lib:$binlibdir ./python -tt"
543 %endif
544
545 %install
546 rm -rf $RPM_BUILD_ROOT
547 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
548         $RPM_BUILD_ROOT{%{py_sitedir},%{_mandir}/man1} \
549         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
550         $RPM_BUILD_ROOT%{_infodir} \
551         $RPM_BUILD_ROOT/etc/shrc.d
552
553 %{__make} install \
554         DESTDIR=$RPM_BUILD_ROOT
555
556 %if %{with info}
557 %{__make} -C Doc/info
558 install Doc/info/python*info* $RPM_BUILD_ROOT%{_infodir}
559 %endif
560
561 install Makefile.pre.in $RPM_BUILD_ROOT%{py_libdir}/config
562
563 mv $RPM_BUILD_ROOT{%{py_libdir}/config,%{_libdir}}/libpython%{py_ver}.a
564 ln -sf libpython%{py_ver}.a $RPM_BUILD_ROOT%{_libdir}/libpython.a
565 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython.so
566 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython%{py_ver}.so
567
568 rm -f $RPM_BUILD_ROOT%{_bindir}/python%{py_ver}
569
570 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
571 cp -a Tools Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
572
573 #
574 # create several useful aliases, such as timeit.py, profile.py, pdb.py, smtpd.py
575 #
576
577 # for python devel tools
578 for script in timeit profile pdb pstats; do
579     echo alias $script.py=\"python -m ${script}\"
580 done > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
581
582 echo alias pygettext.py='"pygettext"' \
583         >> $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
584
585 sed 's/=/ /' \
586         < $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh \
587         > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.csh
588
589 # for python modules
590 for script in smtpd webbrowser; do
591     echo alias $script.py=\"python -m ${script}\"
592 done > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh
593
594 sed 's/=/ /' \
595         < $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh \
596         > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.csh
597
598 # xgettext specific for Python code
599 #
600 # we will have two commands: pygettext.py (an alias) and pygettext;
601 # this way there are no import (which is impossible now) conflicts and
602 # pygettext.py is provided for compatibility
603 install Tools/i18n/pygettext.py $RPM_BUILD_ROOT%{_bindir}/pygettext
604
605 # just to cut the noise, as they are not packaged (now)
606 # first tests
607 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/test
608 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/bsddb/test
609 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/ctypes/test
610 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/distutils/tests
611 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/email/test
612 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/sqlite3/test
613
614 # other files
615 rm -rf $RPM_BUILD_ROOT%{py_scriptdir}/plat-*/regen
616 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.egg-info -exec rm {} \;
617 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.bat -exec rm {} \;
618 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.txt -exec rm {} \;
619 find $RPM_BUILD_ROOT%{py_scriptdir} -name README\* -exec rm {} \;
620
621 %clean
622 rm -rf $RPM_BUILD_ROOT
623
624 %post   libs -p /sbin/ldconfig
625 %postun libs -p /sbin/ldconfig
626
627 %post doc-info
628 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
629
630 %postun doc-info
631 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
632
633 %files
634 %defattr(644,root,root,755)
635 %attr(755,root,root) %{_bindir}/python
636 %{_mandir}/man1/*
637
638 %files modules
639 %defattr(644,root,root,755)
640 /etc/shrc.d/python-modules*
641 %exclude %{py_scriptdir}/UserDict.py[co]
642 %exclude %{py_scriptdir}/codecs.py[co]
643 %exclude %{py_scriptdir}/copy_reg.py[co]
644 %exclude %{py_scriptdir}/locale.py[co]
645 %exclude %{py_scriptdir}/posixpath.py[co]
646 %exclude %{py_scriptdir}/pdb.py[co]
647 %exclude %{py_scriptdir}/profile.py[co]
648 %exclude %{py_scriptdir}/pstats.py[co]
649 %exclude %{py_scriptdir}/pydoc.py[co]
650 %exclude %{py_scriptdir}/site.py[co]
651 %exclude %{py_scriptdir}/stat.py[co]
652 %exclude %{py_scriptdir}/timeit.py[co]
653 %exclude %{py_scriptdir}/os.py[co]
654 %exclude %{py_scriptdir}/encodings/*.py[co]
655 %exclude %{py_scriptdir}/types.py[co]
656
657 %{py_scriptdir}/*.py[co]
658
659 %{py_dyndir}/*.egg-info
660
661 #
662 # list .so modules to be sure that all of them are built
663 #
664
665 # three modules below does not work on 64-bit architectures
666 # see Python README file for explanation
667 %ifnarch alpha ia64 ppc64 sparc64 %{x8664}
668 %attr(755,root,root) %{py_dyndir}/audioop.so
669 %attr(755,root,root) %{py_dyndir}/rgbimg.so
670 %attr(755,root,root) %{py_dyndir}/imageop.so
671 # sizeof(long) != sizeof(int), so dl module will not be built on 64-bit
672 # platforms
673 %attr(755,root,root) %{py_dyndir}/dl.so
674 %endif
675
676 %attr(755,root,root) %{py_dyndir}/array.so
677 %attr(755,root,root) %{py_dyndir}/binascii.so
678 %attr(755,root,root) %{py_dyndir}/_bisect.so
679 %attr(755,root,root) %{py_dyndir}/_bsddb.so
680 %attr(755,root,root) %{py_dyndir}/bz2.so
681 %attr(755,root,root) %{py_dyndir}/cmath.so
682 %attr(755,root,root) %{py_dyndir}/_codecs_cn.so
683 %attr(755,root,root) %{py_dyndir}/_codecs_hk.so
684 %attr(755,root,root) %{py_dyndir}/_codecs_iso2022.so
685 %attr(755,root,root) %{py_dyndir}/_codecs_jp.so
686 %attr(755,root,root) %{py_dyndir}/_codecs_kr.so
687 %attr(755,root,root) %{py_dyndir}/_codecs_tw.so
688 %attr(755,root,root) %{py_dyndir}/collections.so
689 %attr(755,root,root) %{py_dyndir}/cPickle.so
690 %attr(755,root,root) %{py_dyndir}/crypt.so
691 %attr(755,root,root) %{py_dyndir}/cStringIO.so
692 %attr(755,root,root) %{py_dyndir}/_csv.so
693 %attr(755,root,root) %{py_dyndir}/_ctypes*.so
694 %attr(755,root,root) %{py_dyndir}/_curses_panel.so
695 %attr(755,root,root) %{py_dyndir}/_curses.so
696 %attr(755,root,root) %{py_dyndir}/datetime.so
697 %attr(755,root,root) %{py_dyndir}/_elementtree.so
698 %attr(755,root,root) %{py_dyndir}/_functools.so
699 %attr(755,root,root) %{py_dyndir}/_hashlib.so
700 %attr(755,root,root) %{py_dyndir}/_heapq.so
701 %attr(755,root,root) %{py_dyndir}/_locale.so
702 %attr(755,root,root) %{py_dyndir}/_lsprof.so
703 %attr(755,root,root) %{py_dyndir}/_multibytecodec.so
704 %attr(755,root,root) %{py_dyndir}/_random.so
705 %attr(755,root,root) %{py_dyndir}/_socket.so
706 %attr(755,root,root) %{py_dyndir}/_ssl.so
707 %attr(755,root,root) %{py_dyndir}/_testcapi.so
708 %attr(755,root,root) %{py_dyndir}/_weakref.so
709 %ifnarch sparc64
710 %attr(755,root,root) %{py_dyndir}/dbm.so
711 %endif
712 %attr(755,root,root) %{py_dyndir}/fcntl.so
713 %attr(755,root,root) %{py_dyndir}/gdbm.so
714 %attr(755,root,root) %{py_dyndir}/grp.so
715 %attr(755,root,root) %{py_dyndir}/itertools.so
716 %attr(755,root,root) %{py_dyndir}/linuxaudiodev.so
717 %attr(755,root,root) %{py_dyndir}/math.so
718 %attr(755,root,root) %{py_dyndir}/mmap.so
719 %attr(755,root,root) %{py_dyndir}/nis.so
720 %attr(755,root,root) %{py_dyndir}/operator.so
721 %attr(755,root,root) %{py_dyndir}/ossaudiodev.so
722 %attr(755,root,root) %{py_dyndir}/parser.so
723 %attr(755,root,root) %{py_dyndir}/pyexpat.so
724 %attr(755,root,root) %{py_dyndir}/readline.so
725 %attr(755,root,root) %{py_dyndir}/resource.so
726 %attr(755,root,root) %{py_dyndir}/select.so
727 %attr(755,root,root) %{py_dyndir}/strop.so
728 %attr(755,root,root) %{py_dyndir}/syslog.so
729 %attr(755,root,root) %{py_dyndir}/termios.so
730 %attr(755,root,root) %{py_dyndir}/time.so
731 %attr(755,root,root) %{py_dyndir}/spwd.so
732 %attr(755,root,root) %{py_dyndir}/unicodedata.so
733 %attr(755,root,root) %{py_dyndir}/zlib.so
734
735 %dir %{py_scriptdir}/plat-*
736 %{py_scriptdir}/plat-*/*.py[co]
737
738 %dir %{py_scriptdir}/bsddb
739 %{py_scriptdir}/bsddb/*.py[co]
740
741 %dir %{py_scriptdir}/compiler
742 %{py_scriptdir}/compiler/*.py[co]
743
744 %dir %{py_scriptdir}/ctypes
745 %dir %{py_scriptdir}/ctypes/macholib
746 %{py_scriptdir}/ctypes/*.py[co]
747 %{py_scriptdir}/ctypes/macholib/*.py[co]
748
749 %dir %{py_scriptdir}/curses
750 %{py_scriptdir}/curses/*.py[co]
751
752 %dir %{py_scriptdir}/distutils
753 %dir %{py_scriptdir}/distutils/command
754 %{py_scriptdir}/distutils/*.py[co]
755 %{py_scriptdir}/distutils/command/*.py[co]
756
757 %dir %{py_scriptdir}/email
758 %dir %{py_scriptdir}/email/mime
759 %{py_scriptdir}/email/*.py[co]
760 %{py_scriptdir}/email/mime/*.py[co]
761
762 %dir %{py_scriptdir}/logging
763 %{py_scriptdir}/logging/*.py[co]
764
765 %dir %{py_scriptdir}/sqlite3
766 %{py_scriptdir}/sqlite3/*.py[co]
767
768 %dir %{py_scriptdir}/wsgiref
769 %{py_scriptdir}/wsgiref/*.py[co]
770
771 %dir %{py_scriptdir}/xml
772 %dir %{py_scriptdir}/xml/dom
773 %dir %{py_scriptdir}/xml/etree
774 %dir %{py_scriptdir}/xml/parsers
775 %dir %{py_scriptdir}/xml/sax
776 %{py_scriptdir}/xml/*.py[co]
777 %{py_scriptdir}/xml/dom/*.py[co]
778 %{py_scriptdir}/xml/etree/*.py[co]
779 %{py_scriptdir}/xml/parsers/*.py[co]
780 %{py_scriptdir}/xml/sax/*.py[co]
781
782 %files modules-sqlite
783 %defattr(644,root,root,755)
784 %attr(755,root,root) %{py_dyndir}/_sqlite3.so
785
786 %files libs
787 %defattr(644,root,root,755)
788 %attr(755,root,root) %{_libdir}/libpython*.so.*
789
790 %dir %{py_dyndir}
791 %dir %{py_scriptdir}
792 %dir %{py_libdir}
793 %dir %{py_sitescriptdir}
794 %dir %{py_sitedir}
795
796 # shared modules required by python library
797 %attr(755,root,root) %{py_dyndir}/_struct.so
798
799 # modules required by python library
800 %{py_scriptdir}/UserDict.py[co]
801 %{py_scriptdir}/codecs.py[co]
802 %{py_scriptdir}/copy_reg.py[co]
803 %{py_scriptdir}/locale.py[co]
804 %{py_scriptdir}/posixpath.py[co]
805 %{py_scriptdir}/site.py[co]
806 %{py_scriptdir}/stat.py[co]
807 %{py_scriptdir}/os.py[co]
808 # needed by the dynamic sys.lib patch
809 %{py_scriptdir}/types.py[co]
810
811 # encodings required by python library
812 %dir %{py_scriptdir}/encodings
813 %{py_scriptdir}/encodings/*.py[co]
814
815 %files -n pydoc
816 %defattr(644,root,root,755)
817 %attr(755,root,root) %{_bindir}/pydoc
818 %{py_scriptdir}/pydoc.py[co]
819
820 %files -n idle
821 %defattr(644,root,root,755)
822 %attr(755,root,root) %{_bindir}/idle
823 %dir %{py_scriptdir}/idlelib
824 %dir %{py_scriptdir}/idlelib/Icons
825 %{py_scriptdir}/idlelib/*.py[co]
826 %{py_scriptdir}/idlelib/Icons/*
827 %{py_scriptdir}/idlelib/*.def
828
829 %files devel
830 %defattr(644,root,root,755)
831 %doc Misc/{ACKS,NEWS,README,README.valgrind,valgrind-python.supp}
832 %attr(755,root,root) %{_bindir}/python%{py_ver}-config
833 %attr(755,root,root) %{_libdir}/lib*.so
834 %dir %{py_incdir}
835 %{py_incdir}/*.h
836
837 %dir %{py_libdir}/config
838 %attr(755,root,root) %{py_libdir}/config/makesetup
839 %attr(755,root,root) %{py_libdir}/config/install-sh
840 %{py_libdir}/config/Makefile
841 %{py_libdir}/config/Makefile.pre.in
842 %{py_libdir}/config/Setup
843 %{py_libdir}/config/Setup.config
844 %{py_libdir}/config/Setup.local
845 %{py_libdir}/config/config.c
846 %{py_libdir}/config/config.c.in
847 %{py_libdir}/config/python.o
848
849 %files devel-src
850 %defattr(644,root,root,755)
851 %attr(-,root,root) %{py_scriptdir}/*.py
852 %{py_scriptdir}/plat-*/*.py
853 %{py_scriptdir}/bsddb/*.py
854 %{py_scriptdir}/ctypes/*.py
855 %{py_scriptdir}/ctypes/macholib/*.py
856 %{py_scriptdir}/compiler/*.py
857 %{py_scriptdir}/curses/*.py
858 %{py_scriptdir}/distutils/*.py
859 %{py_scriptdir}/distutils/command/*.py
860 %{py_scriptdir}/email/*.py
861 %{py_scriptdir}/email/mime/*.py
862 %{py_scriptdir}/hotshot/*.py
863 %{py_scriptdir}/logging/*.py
864 %{py_scriptdir}/sqlite3/*.py
865 %{py_scriptdir}/wsgiref/*.py
866 %{py_scriptdir}/xml/*.py
867 %{py_scriptdir}/xml/dom/*.py
868 %{py_scriptdir}/xml/etree/*.py
869 %{py_scriptdir}/xml/parsers/*.py
870 %{py_scriptdir}/xml/sax/*.py
871 %{py_scriptdir}/encodings/*.py
872 %{py_scriptdir}/idlelib/*.py
873
874 %files devel-tools
875 %defattr(644,root,root,755)
876 %doc Lib/pdb.doc
877 /etc/shrc.d/python-devel*
878
879 %attr(755,root,root) %{_bindir}/pygettext
880
881 %attr(755,root,root) %{py_dyndir}/_hotshot.so
882 %dir %{py_scriptdir}/hotshot
883 %{py_scriptdir}/hotshot/*.py[co]
884 %{py_scriptdir}/pdb.py[co]
885 %{py_scriptdir}/profile.py[co]
886 %{py_scriptdir}/pstats.py[co]
887 %{py_scriptdir}/timeit.py[co]
888
889 %files static
890 %defattr(644,root,root,755)
891 %{_libdir}/lib*.a
892
893 %files examples
894 %defattr(644,root,root,755)
895 %{_examplesdir}/%{name}-%{version}
896
897
898 %files doc
899 %defattr(644,root,root,755)
900 %doc Python-Docs-%{version}%{beta}/*
901
902 %if %{with info}
903 %files doc-info
904 %defattr(644,root,root,755)
905 %{_infodir}/*
906 %endif
907
908 %if %{with tkinter}
909 %files tkinter
910 %defattr(644,root,root,755)
911 %{py_scriptdir}/lib-tk
912 %attr(755,root,root) %{py_dyndir}/_tkinter.so
913 %endif
This page took 0.132392 seconds and 4 git commands to generate.