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