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