1 %define mod_name python
2 %define apxs /usr/sbin/apxs
3 Summary: An embedded Python interpreter for the Apache Web server
4 Summary(cs): Vestavìný interpret Pythonu pro WWW server Apache
5 Summary(da): En indbygget Python-fortolker for webtjeneren Apache
6 Summary(de): Ein eingebetteter Python-Interpreter für den Apache Web-Server
7 Summary(es): Intérprete Perl para el servidor Web Apache
8 Summary(fr): Interpréteur Python intégré pour le serveur Web Apache
9 Summary(id): Interpreter Perl untuk web server Apache
10 Summary(is): Perl túlkur fyrir Apache vefþjóninn
11 Summary(it): Interprete Python integrato per il server Web Apache
12 Summary(ja): Apache Web ¥µ¡¼¥Ð¡¼ÍѤÎÁȹþ¤ß Perl ¥¤¥ó¥¿¡¼¥×¥ê¥¿
13 Summary(nb): En Python-fortolker for webtjeneren Apache
14 Summary(pl): Wbudowany interpreter jêzyka Python dla serwera WWW Apache
15 Summary(pt): Um interpretador de Perl embebido para o servidor Web Apache
16 Summary(ru): ÷ÓÔÒÏÅÎÎÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ WWW-ÓÅÒ×ÅÒÁ Apache
17 Summary(sk): Interpreter jazyka Perl pre webový server Apache
18 Summary(sl): Vkljuèeni pythonski tolmaè za spletni stre¾nik Apache
19 Summary(sv): En inbyggd Python-interpretator för webbservern Apache
20 Name: apache-mod_%{mod_name}
23 License: Apache Group License
24 Group: Networking/Daemons
25 Source0: http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz
26 # Source0-md5: d03452979a6a334f73cc2b95b39db331
28 Patch0: %{name}-lib64.patch
29 Patch1: %{name}-apr-status-is-success.patch
30 Patch2: %{name}-httpd-not-needed.patch
31 Patch3: %{name}-ldflags.patch
32 URL: http://www.modpython.org/
33 BuildRequires: %{apxs}
34 BuildRequires: apache-devel >= 2.0.52-7
35 BuildRequires: apr-devel >= 1:1.0.0
36 BuildRequires: autoconf
37 BuildRequires: automake
38 BuildRequires: flex >= 2.5.31
40 BuildRequires: python-devel >= 2.2
41 BuildRequires: rpm-pythonprov
42 BuildRequires: rpmbuild(macros) >= 1.268
43 Requires: apache(modules-api) = %apache_modules_api
44 Requires: apr >= 1:1.0.0
45 # apache.py uses pdb module
46 Requires: python-devel-tools
47 %requires_eq python-libs
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
51 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
54 Mod_python is a module that embeds the Python language interpreter
55 within the server, allowing Apache handlers to be written in Python.
57 Mod_python brings together the versatility of Python and the power of
58 the Apache Web server for a considerable boost in flexibility and
59 performance over the traditional CGI approach.
62 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
63 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
64 zvý¹ení rychlosti jejich provedení.
67 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
68 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
69 geschrieben zu werden.
71 Mod_python verbindet die Vielseitigkeit von Python und die
72 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
73 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
77 Mod_python es un módulo que activa el intérprete de Python en el
78 servidor, permitiendo que se escriban gestores para Apache en Python.
80 Mod_python proporciona la versatilidad y el poder del servidor web
81 Apache para acelerar considerablemente la flexibilidad y prestaciones
82 en comparación a una aproximación tradicional con CGI.
85 Mod_python est un module qui intègre l'interpréteur de langage Python
86 dans le serveur, permettant aux gestionnaires Apache d'être écrits en
89 Mod_python conjugue la versatilité de Python et la puissance du
90 serveur Web Apache de façon à augmenter considérablement la
91 flexibilité et la performance par rapport à une approche CGI
95 Mod_python è un modulo che integra nel server l'interprete del
96 linguaggio Python, in modo che i programmi di gestione possano essere
99 Mod_python unisce in sé la versatilità di Python e la potenza del
100 server Web Apache, con un conseguente accrescimento di flessibilità e
101 un miglioramento notevole nelle prestazioni rispetto all'approccio
105 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
106 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
107 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ½Ò¤Ç¤¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ¤È
108 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
109 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
112 mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w
113 serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w
116 mod_python ³±czy wszechstronno¶æ Pythona i moc Apache'a jako serwera
117 WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w
118 stosunku do tradycyjnego rozwi±zania opartego na CGI.
121 Mod_python är en modul som bygger in en interpretator för språket
122 Python i servern, och låter Apach-hanterare skrivas i Python.
124 Mod_python sammanför mångsidigheten hos Python och kraften hos
125 webbservern Apache till en avsevärd ökning av flexibiliteten och
126 prestandan jämfört med den traditionella CGI-metoden.
129 %setup -q -n mod_%{mod_name}-%{version}
130 %if "%{_libdir}" == "%{_prefix}/lib64"
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
149 DESTDIR=$RPM_BUILD_ROOT
151 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.conf
155 rm -rf $RPM_BUILD_ROOT
158 %service -q httpd restart
161 if [ "$1" = "0" ]; then
162 %service -q httpd restart
166 %defattr(644,root,root,755)
167 %doc doc-html/* README COPYRIGHT NEWS CREDITS
169 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
170 %attr(755,root,root) %{_pkglibdir}/*.so
171 %dir %{py_sitedir}/mod_%{mod_name}
172 %attr(755,root,root) %{py_sitedir}/mod_%{mod_name}/*.so
173 %{py_sitedir}/mod_%{mod_name}/*.py[co]