1 %include /usr/lib/rpm/macros.python
2 %define mod_name python
3 %define apxs /usr/sbin/apxs
4 Summary: An embedded Python interpreter for the Apache Web server
5 Summary(cs): Vestavìný interpret Pythonu pro WWW server Apache
6 Summary(da): En indbygget Python-fortolker for webtjeneren Apache
7 Summary(de): Ein eingebetteter Python-Interpreter für den Apache Web-Server
8 Summary(es): Intérprete Perl para el servidor Web Apache
9 Summary(fr): Interpréteur Python intégré pour le serveur Web Apache
10 Summary(id): Interpreter Perl untuk web server Apache
11 Summary(is): Perl túlkur fyrir Apache vefþjóninn
12 Summary(it): Interprete Python integrato per il server Web Apache
13 Summary(ja): Apache Web ¥µ¡¼¥Ð¡¼ÍѤÎÁȹþ¤ß Perl ¥¤¥ó¥¿¡¼¥×¥ê¥¿
14 Summary(no): En Python-fortolker for webtjeneren Apache
15 Summary(pl): Wbudowany interpreter Pythona dla serwera WWW Apache
16 Summary(pt): Um interpretador de Perl embebido para o servidor Web Apache
17 Summary(ru): ÷ÓÔÒÏÅÎÎÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ WWW-ÓÅÒ×ÅÒÁ Apache
18 Summary(sk): Interpreter jazyka Perl pre webový server Apache
19 Summary(sl): Vkljuèeni pythonski tolmaè za spletni stre¾nik Apache
20 Summary(sv): En inbyggd Python-interpretator för webbservern Apache
21 Name: apache-mod_%{mod_name}
24 License: distributable
25 Group: Networking/Daemons
26 Group(cs): Sí»ové/Démoni
27 Group(da): Netværks/Dæmoner
28 Group(de): Netzwerkwesen/Server
29 Group(es): Red/Servidores
30 Group(fr): Réseau/Serveurs
32 Group(it): Rete/Demoni
33 Group(no): Nettverks/Daemoner
34 Group(pl): Sieciowe/Serwery
35 Group(pt): Rede/Servidores
36 Group(ru): óÅÔØ/äÅÍÏÎÙ
37 Group(sl): Omre¾ni/Stre¾niki
38 Group(sv): Nätverk/Demoner
39 Group(uk): íÅÒÅÖÁ/äÅÍÏÎÉ
40 Source0: http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
41 Patch0: apache-mod_python-shared.patch
42 Patch1: apache-mod_python-DESTDIR.patch
43 Patch2: apache-mod_python-Makefile-in.patch
44 URL: http://www.modpython.org/
45 BuildRequires: autoconf
46 BuildRequires: automake
47 BuildRequires: apache-devel
48 BuildRequires: python-devel >= 2.2
49 BuildRequires: rpm-pythonprov
50 BuildRequires: %{apxs}
51 Prereq: %{_sbindir}/apxs
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 %define apache_moddir %(%{apxs} -q LIBEXECDIR)
59 Mod_python is a module that embeds the Python language interpreter
60 within the server, allowing Apache handlers to be written in Python.
62 Mod_python brings together the versatility of Python and the power of
63 the Apache Web server for a considerable boost in flexibility and
64 performance over the traditional CGI approach.
68 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
69 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
70 zvý¹ení rychlosti jejich provedení.
74 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
75 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
76 geschrieben zu werden.
78 Mod_python verbindet die Vielseitigkeit von Python und die
79 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
80 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
85 Mod_python es un módulo que activa el intérprete de Python en el
86 servidor, permitiendo que se escriban gestores para Apache en Python.
88 Mod_python proporciona la versatilidad y el poder del servidor web
89 Apache para acelerar considerablemente la flexibilidad y prestaciones
90 en comparación a una aproximación tradicional con CGI.
94 Mod_python est un module qui intègre l'interpréteur de langage Python
95 dans le serveur, permettant aux gestionnaires Apache d'être écrits en
98 Mod_python conjugue la versatilité de Python et la puissance du
99 serveur Web Apache de façon à augmenter considérablement la
100 flexibilité et la performance par rapport à une approche CGI
105 Mod_python è un modulo che integra nel server l'interprete del
106 linguaggio Python, in modo che i programmi di gestione possano essere
109 Mod_python unisce in sé la versatilità di Python e la potenza del
110 server Web Apache, con un conseguente accrescimento di flessibilità e
111 un miglioramento notevole nelle prestazioni rispetto all'approccio
116 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
117 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
118 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ½Ò¤Ç¤¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ¤È
119 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
120 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
124 mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w
125 serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w
128 mod_python ³±czy wszechstronno¶æ Pythona i moc Apache'a jako serwera
129 WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w
130 stosunku do tradycyjnego rozwi±zania opartego na CGI.
134 Mod_python är en modul som bygger in en interpretator för språket
135 Python i servern, och låter Apach-hanterare skrivas i Python.
137 Mod_python sammanför mångsidigheten hos Python och kraften hos
138 webbservern Apache till en avsevärd ökning av flexibiliteten och
139 prestandan jämfört med den traditionella CGI-metoden.
143 %setup -q -n mod_%{mod_name}-%{version}
152 # new apache needs it
153 CFLAGS="-DEAPI %{rpmcflags}"
160 rm -rf $RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT{%{apache_moddir},%{py_sitedir}/mod_%{mod_name}}
163 %{__make} install DESTDIR=$RPM_BUILD_ROOT
165 gzip -9nf README COPYRIGHT NEWS CREDITS
168 rm -rf $RPM_BUILD_ROOT
171 %{_sbindir}/apxs -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
172 if [ -f /var/lock/subsys/httpd ]; then
173 /etc/rc.d/init.d/httpd restart 1>&2
177 if [ "$1" = "0" ]; then
178 %{_sbindir}/apxs -e -A -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
179 if [ -f /var/lock/subsys/httpd ]; then
180 /etc/rc.d/init.d/httpd restart 1>&2
185 %defattr(644,root,root,755)
187 %doc {README,COPYRIGHT,NEWS,CREDITS}.gz
188 %attr(755,root,root) %{apache_moddir}/*
189 %{py_sitedir}/mod_%{mod_name}