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