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