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