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