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