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