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