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