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