]> git.pld-linux.org Git - packages/python.git/blob - python.spec
6795902a2a11b1f289cc7242c47af9c0388f0be5
[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 # - 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}.6
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:  bcf93efa8eaf383c98ed3ce40b763497
52 Source1:        http://www.python.org/ftp/python/doc/%{dver}/%{name}-%{dver}-docs-html.tar.bz2
53 # Source1-md5:  7613314d1aaa7dcc522ca9d3fd43dace
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 Patch8:         %{name}-ENOPROTOOPT-test.patch
63 URL:            http://www.python.org/
64 BuildRequires:  autoconf >= 2.65
65 BuildRequires:  automake
66 BuildRequires:  bluez-libs-devel
67 BuildRequires:  bzip2-devel
68 BuildRequires:  db-devel >= 4
69 %{?with_info:BuildRequires:     emacs >= 21}
70 BuildRequires:  expat-devel >= 1:1.95.7
71 BuildRequires:  file
72 BuildRequires:  gdbm-devel >= 1.8.3
73 BuildRequires:  gmp-devel >= 4.0
74 BuildRequires:  libstdc++-devel
75 BuildRequires:  ncurses-ext-devel >= 5.2
76 BuildRequires:  pkgconfig
77 %if %{with openssl097}
78 BuildRequires:  openssl-devel < 0.9.8
79 %else
80 BuildRequires:  openssl-devel >= 0.9.8
81 %endif
82 BuildRequires:  readline-devel >= 5.0
83 BuildRequires:  rpm-pythonprov
84 BuildRequires:  sed >= 4.0
85 BuildRequires:  sqlite3-devel >= 3.3.5
86 %{?with_info:BuildRequires:     tetex-makeindex}
87 #%{?with_tkinter:BuildRequires: tix-devel >= 1:8.1.4-4}
88 %{?with_tkinter:BuildRequires:  tk-devel >= 8.4.3}
89 BuildRequires:  zlib-devel
90 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
91 Obsoletes:      python2
92 Conflicts:      bzr < 1.8
93 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94
95 %if %{with verbose_tests}
96 %define test_flags -v -l -x
97 %else
98 %define test_flags -w -l -x
99 %endif
100
101 %ifarch alpha ia64 ppc64 ppc64 %{x8664}
102 %define test_list %{nobuilder_tests} %{broken_tests} %{no64bit_tests}
103 %else
104 %define test_list %{nobuilder_tests} %{broken_tests}
105 %endif
106
107 %ifarch sparc sparcv9
108 %define test_list %{nobuilder_tests} %{broken_tests} test_fcntl test_ioctl
109 %endif
110
111 %ifarch sparc64
112 %define test_list %{nobuilder_tests} %{broken_tests} %{no64bit_tests} test_fcntl test_ioctl
113 %endif
114
115 %description
116 Python is an interpreted, interactive, object-oriented programming
117 language. It incorporates modules, exceptions, dynamic typing, very
118 high level dynamic data types, and classes. Python combines remarkable
119 power with very clear syntax. It has interfaces to many system calls
120 and libraries, as well as to various window systems, and is extensible
121 in C or C++. It is also usable as an extension language for
122 applications that need a programmable interface. Finally, Python is
123 portable: it runs on many brands of UNIX, on the Mac, and on PCs under
124 MS-DOS, Windows, Windows NT, and OS/2.
125
126 This package contains the Python binary.
127
128 %description -l de.UTF-8
129 Python ist eine interpretierte, interaktive, objektorientierte
130 Programmiersprache, vergleichbar zu Tcl, Perl, Scheme oder Java.
131 Python enthält Module, Klassen, Exceptions, High-Level dynamische
132 Datentypen und dynamisches Typisieren. Python unterstützt Interfaces
133 zu vielen Systemaufrufen und Libraries, sowie verschiedene
134 Fenstersysteme (X11, Motif, Tk, Mac und MFC)
135
136 Programmierer können neue built-in-Module für Python in C oder C++
137 schreiben. Python kann auch als Erweiterungssprache für Applikationen
138 benutzt werden, die ein programmierbares Interface brauchen. Dieses
139 Paket enthält die meisten Standard-Python-Module, und Module zum
140 Ansprechen von Tix (Tk-widget set) und RPM.
141
142 %description -l es.UTF-8
143 Python es un lenguaje de scripts interpretado orientado a objetos.
144 Contiene soporte para carga dinámica de objetos, clases, módulos y
145 excepciones.
146
147 Es sencillo adicionar interfaces para nuevos sistemas de biblioteca a
148 través de código C, tornando Python fácil de usar en ambientes
149 particulares/personalizados. Este paquete Python incluye la mayoría de
150 los módulos padrón Python, junto con módulos para crear interfaces
151 para el conjunto de componentes Tix para Tk y RPM.
152
153 %description -l fr.UTF-8
154 Python est un langage de script interprété et orienté objet. Il gère
155 le chargement dynamique des objets, les classes, les modules et les
156 exceptions. L'ajout d'interfaces aux nouvelles bibliothèques systèmes
157 avec du code C est simple, ce qui rend Python facile à utiliser dans
158 des configs personnalisées.
159
160 Ce paquetage Python contient la plupart des modules Python standards,
161 ainsi que ceux permettant l'interfaçage avec les widgets Tix pour Tk
162 et RPM.
163
164 %description -l pl.UTF-8
165 Python jest interpretowanym, interaktywnym i zorientowanym obiektowo
166 językiem programowania. Jest modularny, obsługuje wyjątki, dynamiczne
167 typy, zaawansowane dynamiczne struktury danych i klasy. Python łączy w
168 sobie duże możliwości i przejrzystą składnię. Posiada interfejsy do
169 wielu wywołań systemowych i bibliotek, w tym również do różnych
170 bibliotek okienkowych. Możliwości jego można jeszcze rozszerzać
171 poprzez odpowiednie moduły pisane w C lub C++. Python może być również
172 użyty jako element aplikacji, którym potrzebny jest interpreter do
173 skryptów. I wreszcie, Python jest wieloplatformowy, działa na wielu
174 odmianach UNIX-a, Macu oraz PC pod DOS-em, Windows, WindowsNT oraz
175 OS/2.
176
177 Ten pakiet zawiera binarkę Pythona.
178
179 %description -l pt_BR.UTF-8
180 Python é uma linguagem de scripts interpretada orientada a objetos.
181 Contém suporte para carga dinâmica de objetos, classes, módulos e
182 exceções. Adicionar interfaces para novos sistemas de biblioteca
183 através de código C é simples, tornando Python fácil de usar em
184 ambientes particulares/personalizados.
185
186 Este pacote Python inclui a maioria do módulos padrão Python, junto
187 com módulos para interfaceamento para o conjunto de componentes Tix
188 para Tk e RPM.
189
190 %description -l ru.UTF-8
191 Python - это интерпретируемый, объектно-ориентированный язык
192 программирования. Он поддерживает динамическую загрузку объектов,
193 классы, модули и обработку исключительных ситуаций (exceptions).
194 Простота добавления интерфейсов к новым системным библиотекам через
195 код на языке C делает Python хорошим выбором для использования в
196 специальных конфигурациях.
197
198 %description -l tr.UTF-8
199 Python, nesneye yönelik bir kabuk yorumlayıcıdır. Nesnelerin,
200 sınıfların, modüllerin ve aykırı durumların dinamik yüklenmelerine
201 destek verir. C koduyla birlikte kullanımı son derece kolaydır. Bu
202 paket, standart Python birimlerinin çoğunun yanısıra Tk ve RPM için
203 arayüz birimlerini de içerir.
204
205 %description -l uk.UTF-8
206 Python - це інтерпретована, об'єктно-орієнтована мова програмування.
207 Він підтримує динамічну загрузку об'єктів, класи, модулі та обробку
208 виключних ситуацій (exceptions). Простота додавання інтерфейсів для
209 нових системних бібліотек через код на мові C робить Python добрим
210 вибором для використання в спеціальних конфігураціях.
211
212 %package libs
213 Summary:        Python library
214 Summary(pl.UTF-8):      Biblioteka języka Python
215 Group:          Libraries/Python
216 # broken detection in rpm/pythondeps.sh
217 Provides:       python(abi) = %{py_ver}
218 # for compatibility with existing Ac packages
219 Provides:       python(bytecode) = %{py_ver}
220 %{!?with_info:Obsoletes:        python-doc-info}
221 Obsoletes:      python-intl
222
223 %description libs
224 Python shared library and very essental modules for Python binary.
225
226 %description libs -l pl.UTF-8
227 Biblioteka współdzielona języka Python oraz bardzo podstawowe moduły
228 dla Pythona.
229
230 %package modules
231 Summary:        Python modules
232 Summary(pl.UTF-8):      Moduły języka Python
233 Group:          Libraries/Python
234 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
235 Provides:       python-argparse = 1.1
236 Provides:       python-cElementTree
237 Provides:       python-elementtree
238 Provides:       pythonegg(argparse) = 1.1
239 Obsoletes:      python-argparse < 1.1.99
240 Obsoletes:      python-cElementTree
241 Obsoletes:      python-ctypes
242 Obsoletes:      python-curses
243 Obsoletes:      python-elementtree
244 Obsoletes:      python-gdbm
245 Obsoletes:      python-hashlib
246 Obsoletes:      python-logging
247 Obsoletes:      python-old
248 Obsoletes:      python-optik
249 Obsoletes:      python-ssl
250 Obsoletes:      python-xml
251 Obsoletes:      python-xmlrpc <= 1.0.1
252 Obsoletes:      python-zlib
253
254 %description modules
255 Python officially distributed modules.
256
257 %description modules -l pl.UTF-8
258 Oficjalnie rozprowadzane moduły języka Python.
259
260 %package modules-sqlite
261 Summary:        Python SQLite modules
262 Summary(pl.UTF-8):      Moduły SQLite języka Python
263 Group:          Libraries/Python
264 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
265 Provides:       python(sqlite)
266
267 %description modules-sqlite
268 Python officially distributed sqlite module.
269
270 %description modules-sqlite -l pl.UTF-8
271 Oficjalnie rozprowadzany moduł sqlite języka Python.
272
273 %package -n pydoc
274 Summary:        Python interactive module documentation access support
275 Summary(pl.UTF-8):      Interaktywne korzystanie z dokumentacji modułów języka Python
276 Group:          Applications
277 Requires:       %{name}-modules = %{epoch}:%{version}-%{release}
278 Obsoletes:      python-pydoc
279
280 %description -n pydoc
281 Python interactive module documentation access support.
282
283 %description -n pydoc -l pl.UTF-8
284 Interaktywne korzystanie z dokumentacji modułów języka Python.
285
286 %package -n idle
287 Summary:        IDE for Python language
288 Summary(pl.UTF-8):      IDE dla języka Python
289 Group:          Applications/Editors
290 Requires:       %{name}-tkinter = %{epoch}:%{version}-%{release}
291 Obsoletes:      python-idle
292
293 %description -n idle
294 IDE for Python language.
295
296 %description -n idle -l pl.UTF-8
297 IDE dla języka Python.
298
299 %package devel
300 Summary:        Libraries and header files for building python code
301 Summary(de.UTF-8):      Libraries und Header-Dateien zum Erstellen von Python-Code
302 Summary(es.UTF-8):      Bibliotecas y archivos de inclusión para construir programas en python
303 Summary(fr.UTF-8):      Bibliothèques et en-têtes pour construire du code python
304 Summary(pl.UTF-8):      Pliki nagłówkowe i biblioteki Pythona
305 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para o Python
306 Summary(ru.UTF-8):      Библиотеки и хедеры для построения кода на языке Python
307 Summary(tr.UTF-8):      Python ile geliştirme yapmak için gerekli dosyalar
308 Summary(uk.UTF-8):      Бібліотеки та хедери для програмування на мові Python
309 Group:          Development/Languages/Python
310 Requires:       %{name}-libs = %{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 %prep
554 %setup -q -n Python-%{version}%{beta}
555 %patch0 -p1
556 %patch1 -p1
557 %patch2 -p1
558 %patch3 -p1
559 %patch4 -p1
560 %patch5 -p1
561 %patch6 -p1
562 %patch7 -p1
563 %patch8 -p1
564
565 tar xjf %{SOURCE1}
566
567 sed -i -e 's#db_setup_debug = False#db_setup_debug = True#g' setup.py
568
569 # remove if Lib/plat-linux3 exists
570 [ -d Lib/plat-linux3 ] && exit 1
571 cp -a Lib/plat-linux2 Lib/plat-linux3
572
573 %build
574 %{__aclocal}
575 %{__autoconf}
576 CPPFLAGS="-I/usr/include/ncursesw %{rpmcppflags}"; export CPPFLAGS
577 %configure \
578         ac_cv_posix_semaphores_enabled=yes \
579         ac_cv_broken_sem_getvalue=no \
580         --with-threads \
581         --with-cxx-main="%{__cxx}" \
582         --with-system-ffi \
583         --enable-ipv6 \
584         --enable-unicode=ucs4 \
585         --enable-shared \
586         --with-system-ffi \
587         --with-dbmliborder=gdbm:bdb \
588         LINKCC='$(PURIFY) $(CXX)' \
589         LDSHARED='$(CC) $(CFLAGS) -shared' \
590         BLDSHARED='$(CC) $(CFLAGS) -shared' \
591         LDFLAGS="%{rpmcflags} %{rpmldflags}"
592
593 %{__make} \
594         OPT="%{rpmcflags}" 2>&1 | awk '
595 BEGIN { fail = 0; logmsg = ""; }
596 {
597                 if ($0 ~ /\*\*\* WARNING:/) {
598                                 fail = 1;
599                                 logmsg = logmsg $0;
600                 }
601                 print $0;
602 }
603 END { if (fail) { print "\nPROBLEMS FOUND:"; print logmsg; exit(1); } }'
604
605 LC_ALL=C
606 export LC_ALL
607 %if %{with tests}
608 WITHIN_PYTHON_RPM_BUILD=1 %{__make} -j1 test \
609         TESTOPTS="%{test_flags} %{test_list}" \
610         TESTPYTHON="LD_LIBRARY_PATH=`pwd` PYTHONHOME=`pwd` PYTHONPATH=`pwd`/Lib:`pwd`/Lib/lib-tk:`pwd`/build/lib.linux-`uname -m`-%{py_ver} ./python -tt"
611 %endif
612
613 %install
614 rm -rf $RPM_BUILD_ROOT
615 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
616         $RPM_BUILD_ROOT{%{py_sitedir},%{_mandir}/man1} \
617         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
618         $RPM_BUILD_ROOT%{_infodir} \
619         $RPM_BUILD_ROOT%{_docdir} \
620         $RPM_BUILD_ROOT/etc/shrc.d
621
622 %{__make} install \
623         DESTDIR=$RPM_BUILD_ROOT
624
625 # docs in constant location
626 ln -sf python-doc-%{version} $RPM_BUILD_ROOT%{_docdir}/python-doc
627
628 %if %{with info}
629 %{__make} -C Doc/info
630 install Doc/info/python*info* $RPM_BUILD_ROOT%{_infodir}
631 %endif
632
633 install Makefile.pre.in $RPM_BUILD_ROOT%{py_libdir}/config
634
635 mv $RPM_BUILD_ROOT{%{py_libdir}/config,%{_libdir}}/libpython%{py_ver}.a
636 ln -sf libpython%{py_ver}.a $RPM_BUILD_ROOT%{_libdir}/libpython.a
637 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython.so
638 ln -sf libpython%{py_ver}.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libpython%{py_ver}.so
639
640 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
641 cp -a Tools Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
642
643 #
644 # create several useful aliases, such as timeit.py, profile.py, pdb.py, smtpd.py
645 #
646
647 # for python devel tools
648 for script in timeit profile pdb pstats; do
649     echo alias $script.py=\"python -m ${script}\"
650 done > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh
651
652 sed 's/=/ /' \
653         < $RPM_BUILD_ROOT/etc/shrc.d/python-devel.sh \
654         > $RPM_BUILD_ROOT/etc/shrc.d/python-devel.csh
655
656 # for python modules
657 for script in smtpd webbrowser; do
658     echo alias $script.py=\"python -m ${script}\"
659 done > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh
660
661 sed 's/=/ /' \
662         < $RPM_BUILD_ROOT/etc/shrc.d/python-modules.sh \
663         > $RPM_BUILD_ROOT/etc/shrc.d/python-modules.csh
664
665 # just to cut the noise, as they are not packaged (now)
666 # first tests
667 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/test
668 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/bsddb/test
669 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/ctypes/test
670 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/distutils/tests
671 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/email/test
672 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/sqlite3/test
673 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/json/tests
674 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/lib2to3/tests
675
676 # other files
677 %{__rm} -r $RPM_BUILD_ROOT%{py_scriptdir}/plat-*/regen
678 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.egg-info -exec rm {} \;
679 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.bat -exec rm {} \;
680 find $RPM_BUILD_ROOT%{py_scriptdir} -name \*.txt -exec rm {} \;
681 find $RPM_BUILD_ROOT%{py_scriptdir} -name README\* -exec rm {} \;
682
683 %clean
684 rm -rf $RPM_BUILD_ROOT
685
686 %post   libs -p /sbin/ldconfig
687 %postun libs -p /sbin/ldconfig
688
689 %post   doc-info -p /sbin/postshell
690 -/usr/sbin/fix-info-dir -c %{_infodir}
691
692 %postun doc-info -p /sbin/postshell
693 -/usr/sbin/fix-info-dir -c %{_infodir}
694
695 %files
696 %defattr(644,root,root,755)
697 %attr(755,root,root) %{_bindir}/python
698 %attr(755,root,root) %{_bindir}/python2
699 %attr(755,root,root) %{_bindir}/python%{py_ver}
700 %{_mandir}/man1/python.1*
701 %{_mandir}/man1/python2.1*
702
703 %files modules
704 %defattr(644,root,root,755)
705 /etc/shrc.d/python-modules*
706 %exclude %{py_scriptdir}/_abcoll.py[co]
707 %exclude %{py_scriptdir}/abc.py[co]
708 %exclude %{py_scriptdir}/UserDict.py[co]
709 %exclude %{py_scriptdir}/codecs.py[co]
710 %exclude %{py_scriptdir}/copy_reg.py[co]
711 %exclude %{py_scriptdir}/genericpath.py[co]
712 %exclude %{py_scriptdir}/linecache.py[co]
713 %exclude %{py_scriptdir}/locale.py[co]
714 %exclude %{py_scriptdir}/posixpath.py[co]
715 %exclude %{py_scriptdir}/pdb.py[co]
716 %exclude %{py_scriptdir}/profile.py[co]
717 %exclude %{py_scriptdir}/pstats.py[co]
718 %exclude %{py_scriptdir}/pydoc.py[co]
719 %exclude %{py_scriptdir}/re.py[co]
720 %exclude %{py_scriptdir}/site.py[co]
721 %exclude %{py_scriptdir}/sre_*.py[co]
722 %exclude %{py_scriptdir}/stat.py[co]
723 %exclude %{py_scriptdir}/sysconfig.py[co]
724 %exclude %{py_scriptdir}/timeit.py[co]
725 %exclude %{py_scriptdir}/os.py[co]
726 %exclude %{py_scriptdir}/_weakrefset.py[co]
727 %exclude %{py_scriptdir}/encodings/*.py[co]
728 %exclude %{py_scriptdir}/types.py[co]
729 %exclude %{py_scriptdir}/warnings.py[co]
730
731 %{py_scriptdir}/*.py[co]
732
733 %{py_dyndir}/Python-%{version}-py%{py_ver}.egg-info
734
735 #
736 # list .so modules to be sure that all of them are built
737 #
738
739 # three modules below do not work on 64-bit architectures
740 # see Python README file for explanation
741 %ifnarch alpha ia64 ppc64 sparc64 %{x8664}
742 %attr(755,root,root) %{py_dyndir}/imageop.so
743 # sizeof(long) != sizeof(int), so dl module will not be built on 64-bit
744 # platforms
745 %attr(755,root,root) %{py_dyndir}/dl.so
746 %endif
747
748 %attr(755,root,root) %{py_dyndir}/audioop.so
749 %attr(755,root,root) %{py_dyndir}/array.so
750 %attr(755,root,root) %{py_dyndir}/binascii.so
751 %attr(755,root,root) %{py_dyndir}/_bisect.so
752 %attr(755,root,root) %{py_dyndir}/_bsddb.so
753 %attr(755,root,root) %{py_dyndir}/bz2.so
754 %attr(755,root,root) %{py_dyndir}/cmath.so
755 %attr(755,root,root) %{py_dyndir}/_codecs_cn.so
756 %attr(755,root,root) %{py_dyndir}/_codecs_hk.so
757 %attr(755,root,root) %{py_dyndir}/_codecs_iso2022.so
758 %attr(755,root,root) %{py_dyndir}/_codecs_jp.so
759 %attr(755,root,root) %{py_dyndir}/_codecs_kr.so
760 %attr(755,root,root) %{py_dyndir}/_codecs_tw.so
761 %attr(755,root,root) %{py_dyndir}/_collections.so
762 %attr(755,root,root) %{py_dyndir}/cPickle.so
763 %attr(755,root,root) %{py_dyndir}/crypt.so
764 %attr(755,root,root) %{py_dyndir}/cStringIO.so
765 %attr(755,root,root) %{py_dyndir}/_csv.so
766 %attr(755,root,root) %{py_dyndir}/_ctypes*.so
767 %attr(755,root,root) %{py_dyndir}/_curses_panel.so
768 %attr(755,root,root) %{py_dyndir}/_curses.so
769 %attr(755,root,root) %{py_dyndir}/datetime.so
770 %attr(755,root,root) %{py_dyndir}/_elementtree.so
771 %attr(755,root,root) %{py_dyndir}/_functools.so
772 %attr(755,root,root) %{py_dyndir}/_hashlib.so
773 %attr(755,root,root) %{py_dyndir}/_heapq.so
774 %attr(755,root,root) %{py_dyndir}/_io.so
775 %attr(755,root,root) %{py_dyndir}/_json.so
776 %attr(755,root,root) %{py_dyndir}/_locale.so
777 %attr(755,root,root) %{py_dyndir}/_lsprof.so
778 %attr(755,root,root) %{py_dyndir}/_multibytecodec.so
779 %attr(755,root,root) %{py_dyndir}/_multiprocessing.so
780 %attr(755,root,root) %{py_dyndir}/_random.so
781 %{?with_openssl097:%attr(755,root,root) %{py_dyndir}/_sha*.so}
782 %attr(755,root,root) %{py_dyndir}/_socket.so
783 %attr(755,root,root) %{py_dyndir}/_ssl.so
784 %attr(755,root,root) %{py_dyndir}/_testcapi.so
785 %ifnarch sparc64
786 %attr(755,root,root) %{py_dyndir}/dbm.so
787 %endif
788 %attr(755,root,root) %{py_dyndir}/fcntl.so
789 %attr(755,root,root) %{py_dyndir}/future_builtins.so
790 %attr(755,root,root) %{py_dyndir}/gdbm.so
791 %attr(755,root,root) %{py_dyndir}/grp.so
792 %attr(755,root,root) %{py_dyndir}/itertools.so
793 %attr(755,root,root) %{py_dyndir}/linuxaudiodev.so
794 %attr(755,root,root) %{py_dyndir}/math.so
795 %attr(755,root,root) %{py_dyndir}/mmap.so
796 %attr(755,root,root) %{py_dyndir}/nis.so
797 %attr(755,root,root) %{py_dyndir}/operator.so
798 %attr(755,root,root) %{py_dyndir}/ossaudiodev.so
799 %attr(755,root,root) %{py_dyndir}/parser.so
800 %attr(755,root,root) %{py_dyndir}/pyexpat.so
801 %attr(755,root,root) %{py_dyndir}/readline.so
802 %attr(755,root,root) %{py_dyndir}/resource.so
803 %attr(755,root,root) %{py_dyndir}/select.so
804 %attr(755,root,root) %{py_dyndir}/strop.so
805 %attr(755,root,root) %{py_dyndir}/syslog.so
806 %attr(755,root,root) %{py_dyndir}/termios.so
807 %attr(755,root,root) %{py_dyndir}/time.so
808 %attr(755,root,root) %{py_dyndir}/spwd.so
809 %attr(755,root,root) %{py_dyndir}/unicodedata.so
810 %attr(755,root,root) %{py_dyndir}/zlib.so
811
812 %dir %{py_scriptdir}/plat-*
813 %{py_scriptdir}/plat-*/*.py[co]
814
815 %dir %{py_scriptdir}/bsddb
816 %{py_scriptdir}/bsddb/*.py[co]
817
818 %dir %{py_scriptdir}/compiler
819 %{py_scriptdir}/compiler/*.py[co]
820
821 %dir %{py_scriptdir}/ctypes
822 %dir %{py_scriptdir}/ctypes/macholib
823 %{py_scriptdir}/ctypes/*.py[co]
824 %{py_scriptdir}/ctypes/macholib/*.py[co]
825
826 %dir %{py_scriptdir}/curses
827 %{py_scriptdir}/curses/*.py[co]
828
829 %dir %{py_scriptdir}/distutils
830 %dir %{py_scriptdir}/distutils/command
831 %{py_scriptdir}/distutils/*.py[co]
832 %{py_scriptdir}/distutils/command/*.py[co]
833
834 %dir %{py_scriptdir}/email
835 %dir %{py_scriptdir}/email/mime
836 %{py_scriptdir}/email/*.py[co]
837 %{py_scriptdir}/email/mime/*.py[co]
838
839 %dir %{py_scriptdir}/importlib
840 %{py_scriptdir}/importlib/*.py[co]
841
842 %dir %{py_scriptdir}/json
843 %{py_scriptdir}/json/*.py[co]
844
845 %dir %{py_scriptdir}/logging
846 %{py_scriptdir}/logging/*.py[co]
847
848 %dir %{py_scriptdir}/multiprocessing
849 %dir %{py_scriptdir}/multiprocessing/dummy
850 %{py_scriptdir}/multiprocessing/*.py[co]
851 %{py_scriptdir}/multiprocessing/dummy/*.py[co]
852
853 %dir %{py_scriptdir}/unittest
854 %{py_scriptdir}/unittest/*.py[co]
855 %dir %{py_scriptdir}/unittest/test
856 %{py_scriptdir}/unittest/test/*.py[co]
857
858 %dir %{py_scriptdir}/wsgiref
859 %{py_scriptdir}/wsgiref/*.py[co]
860
861 %dir %{py_scriptdir}/xml
862 %dir %{py_scriptdir}/xml/dom
863 %dir %{py_scriptdir}/xml/etree
864 %dir %{py_scriptdir}/xml/parsers
865 %dir %{py_scriptdir}/xml/sax
866 %{py_scriptdir}/xml/*.py[co]
867 %{py_scriptdir}/xml/dom/*.py[co]
868 %{py_scriptdir}/xml/etree/*.py[co]
869 %{py_scriptdir}/xml/parsers/*.py[co]
870 %{py_scriptdir}/xml/sax/*.py[co]
871
872 %files modules-sqlite
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{py_dyndir}/_sqlite3.so
875 %dir %{py_scriptdir}/sqlite3
876 %{py_scriptdir}/sqlite3/*.py[co]
877
878 %files libs
879 %defattr(644,root,root,755)
880 %attr(755,root,root) %{_libdir}/libpython%{py_ver}.so.*
881
882 %dir %{py_dyndir}
883 %dir %{py_scriptdir}
884 %dir %{py_libdir}
885 %dir %{py_sitescriptdir}
886 %dir %{py_sitedir}
887
888 # shared modules required by python library
889 %attr(755,root,root) %{py_dyndir}/_struct.so
890
891 # modules required by python library
892 %{py_scriptdir}/_abcoll.py[co]
893 %{py_scriptdir}/abc.py[co]
894 %{py_scriptdir}/UserDict.py[co]
895 %{py_scriptdir}/codecs.py[co]
896 %{py_scriptdir}/copy_reg.py[co]
897 %{py_scriptdir}/genericpath.py[co]
898 %{py_scriptdir}/linecache.py[co]
899 %{py_scriptdir}/locale.py[co]
900 %{py_scriptdir}/posixpath.py[co]
901 %{py_scriptdir}/re.py[co]
902 %{py_scriptdir}/site.py[co]
903 %{py_scriptdir}/sre_*.py[co]
904 %{py_scriptdir}/stat.py[co]
905 %{py_scriptdir}/sysconfig.py[co]
906 %{py_scriptdir}/os.py[co]
907 %{py_scriptdir}/_weakrefset.py[co]
908 # needed by the dynamic sys.lib patch
909 %{py_scriptdir}/types.py[co]
910 %{py_scriptdir}/warnings.py[co]
911
912 # encodings required by python library
913 %dir %{py_scriptdir}/encodings
914 %{py_scriptdir}/encodings/*.py[co]
915
916 # required by sysconfig.py
917 %dir %{py_libdir}/config
918 %{py_libdir}/config/Makefile
919 %dir %{py_incdir}
920 %{py_incdir}/pyconfig.h
921
922 %files -n pydoc
923 %defattr(644,root,root,755)
924 %attr(755,root,root) %{_bindir}/pydoc
925 %{py_scriptdir}/pydoc.py[co]
926 %dir %{py_scriptdir}/pydoc_data
927 %{py_scriptdir}/pydoc_data/*.py[co]
928
929 %files -n idle
930 %defattr(644,root,root,755)
931 %attr(755,root,root) %{_bindir}/idle
932 %dir %{py_scriptdir}/idlelib
933 %dir %{py_scriptdir}/idlelib/Icons
934 %{py_scriptdir}/idlelib/*.py[co]
935 %{py_scriptdir}/idlelib/Icons/*
936 %{py_scriptdir}/idlelib/*.def
937
938 %files devel
939 %defattr(644,root,root,755)
940 %doc Misc/{ACKS,NEWS,README,README.valgrind,valgrind-python.supp}
941 %attr(755,root,root) %{_bindir}/python-config
942 %attr(755,root,root) %{_bindir}/python2-config
943 %attr(755,root,root) %{_bindir}/python%{py_ver}-config
944 %attr(755,root,root) %{_libdir}/libpython%{py_ver}.so
945 %attr(755,root,root) %{_libdir}/libpython.so
946 %{py_incdir}/*.h
947 %exclude %{py_incdir}/pyconfig.h
948 %{_pkgconfigdir}/python.pc
949 %{_pkgconfigdir}/python2.pc
950 %{_pkgconfigdir}/python-%{py_ver}.pc
951
952 %attr(755,root,root) %{py_libdir}/config/makesetup
953 %attr(755,root,root) %{py_libdir}/config/install-sh
954 %{py_libdir}/config/Makefile.pre.in
955 %{py_libdir}/config/Setup
956 %{py_libdir}/config/Setup.config
957 %{py_libdir}/config/Setup.local
958 %{py_libdir}/config/config.c
959 %{py_libdir}/config/config.c.in
960 %{py_libdir}/config/python.o
961
962 %files devel-src
963 %defattr(644,root,root,755)
964 %attr(-,root,root) %{py_scriptdir}/*.py
965 %{py_scriptdir}/plat-*/*.py
966 %{py_scriptdir}/bsddb/*.py
967 %{py_scriptdir}/ctypes/*.py
968 %{py_scriptdir}/ctypes/macholib/*.py
969 %{py_scriptdir}/compiler/*.py
970 %{py_scriptdir}/curses/*.py
971 %{py_scriptdir}/distutils/*.py
972 %{py_scriptdir}/distutils/command/*.py
973 %{py_scriptdir}/email/*.py
974 %{py_scriptdir}/email/mime/*.py
975 %{py_scriptdir}/encodings/*.py
976 %{py_scriptdir}/hotshot/*.py
977 %{py_scriptdir}/idlelib/*.py
978 %{py_scriptdir}/importlib/*.py
979 %{py_scriptdir}/json/*.py
980 %{py_scriptdir}/lib2to3/*.py
981 %{py_scriptdir}/lib2to3/fixes/*.py
982 %{py_scriptdir}/lib2to3/pgen2/*.py
983 %{py_scriptdir}/logging/*.py
984 %{py_scriptdir}/multiprocessing/*.py
985 %{py_scriptdir}/multiprocessing/dummy/*.py
986 %{py_scriptdir}/pydoc_data/*.py
987 %{py_scriptdir}/sqlite3/*.py
988 %{py_scriptdir}/unittest/*.py
989 %{py_scriptdir}/unittest/test/*.py
990 %{py_scriptdir}/wsgiref/*.py
991 %{py_scriptdir}/xml/*.py
992 %{py_scriptdir}/xml/dom/*.py
993 %{py_scriptdir}/xml/etree/*.py
994 %{py_scriptdir}/xml/parsers/*.py
995 %{py_scriptdir}/xml/sax/*.py
996
997 %files devel-tools
998 %defattr(644,root,root,755)
999 %doc Lib/pdb.doc
1000 /etc/shrc.d/python-devel*
1001
1002 %attr(755,root,root) %{py_dyndir}/_hotshot.so
1003 %dir %{py_scriptdir}/hotshot
1004 %{py_scriptdir}/hotshot/*.py[co]
1005 %{py_scriptdir}/pdb.py[co]
1006 %{py_scriptdir}/profile.py[co]
1007 %{py_scriptdir}/pstats.py[co]
1008 %{py_scriptdir}/timeit.py[co]
1009
1010 %files 2to3
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_bindir}/2to3
1013 %dir %{py_scriptdir}/lib2to3
1014 %dir %{py_scriptdir}/lib2to3/fixes
1015 %dir %{py_scriptdir}/lib2to3/pgen2
1016 %{py_scriptdir}/lib2to3/*.py[co]
1017 %{py_scriptdir}/lib2to3/*.pickle
1018 %{py_scriptdir}/lib2to3/fixes/*.py[co]
1019 %{py_scriptdir}/lib2to3/pgen2/*.py[co]
1020
1021 %files static
1022 %defattr(644,root,root,755)
1023 %{_libdir}/libpython%{py_ver}.a
1024 %{_libdir}/libpython.a
1025
1026 %files examples
1027 %defattr(644,root,root,755)
1028 %{_examplesdir}/%{name}-%{version}
1029
1030 %files doc
1031 %defattr(644,root,root,755)
1032 %doc python-%{dver}-docs-html/*
1033 %{_docdir}/python-doc
1034
1035 %if %{with info}
1036 %files doc-info
1037 %defattr(644,root,root,755)
1038 %{_infodir}/*.info*
1039 %endif
1040
1041 %if %{with tkinter}
1042 %files tkinter
1043 %defattr(644,root,root,755)
1044 %{py_scriptdir}/lib-tk
1045 %attr(755,root,root) %{py_dyndir}/_tkinter.so
1046 %endif
This page took 0.091678 seconds and 2 git commands to generate.