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