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