]>
Commit | Line | Data |
---|---|---|
9da631b3 | 1 | %define mod_name python |
2bd51d05 | 2 | %define apxs /usr/sbin/apxs |
8c943194 | 3 | Summary: An embedded Python interpreter for the Apache Web server |
95039108 JR |
4 | Summary(cs.UTF-8): Vestavěný interpret Pythonu pro WWW server Apache |
5 | Summary(da.UTF-8): En indbygget Python-fortolker for webtjeneren Apache | |
6 | Summary(de.UTF-8): Ein eingebetteter Python-Interpreter für den Apache Web-Server | |
7 | Summary(es.UTF-8): Intérprete Perl para el servidor Web Apache | |
8 | Summary(fr.UTF-8): Interpréteur Python intégré pour le serveur Web Apache | |
9 | Summary(id.UTF-8): Interpreter Perl untuk web server Apache | |
10 | Summary(is.UTF-8): Perl túlkur fyrir Apache vefþjóninn | |
11 | Summary(it.UTF-8): Interprete Python integrato per il server Web Apache | |
12 | Summary(ja.UTF-8): Apache Web サーバー用の組込み Perl インタープリタ | |
13 | Summary(nb.UTF-8): En Python-fortolker for webtjeneren Apache | |
14 | Summary(pl.UTF-8): Wbudowany interpreter języka Python dla serwera WWW Apache | |
15 | Summary(pt.UTF-8): Um interpretador de Perl embebido para o servidor Web Apache | |
16 | Summary(ru.UTF-8): Встроенный интерпретатор Perl для WWW-сервера Apache | |
17 | Summary(sk.UTF-8): Interpreter jazyka Perl pre webový server Apache | |
18 | Summary(sl.UTF-8): Vključeni pythonski tolmač za spletni strežnik Apache | |
19 | Summary(sv.UTF-8): En inbyggd Python-interpretator för webbservern Apache | |
9da631b3 | 20 | Name: apache-mod_%{mod_name} |
5a404cd5 | 21 | Version: 3.2.10 |
79184ed7 | 22 | Release: 2 |
a58b005a | 23 | License: Apache Group License |
9da631b3 | 24 | Group: Networking/Daemons |
8991fb06 | 25 | Source0: http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz |
5a404cd5 | 26 | # Source0-md5: cc6439f546a6e70cfff7ca51b8c62541 |
d67ddad7 | 27 | Source1: %{name}.conf |
5a404cd5 | 28 | Patch0: %{name}-httpd-not-needed.patch |
29 | Patch1: %{name}-ldflags.patch | |
9da631b3 | 30 | URL: http://www.modpython.org/ |
2216397d | 31 | BuildRequires: %{apxs} |
716a7243 JB |
32 | BuildRequires: apache-devel >= 2.0.52-7 |
33 | BuildRequires: apr-devel >= 1:1.0.0 | |
22317842 | 34 | BuildRequires: autoconf |
964e9a83 | 35 | BuildRequires: automake |
c0187e33 | 36 | BuildRequires: flex >= 2.5.31 |
08bf510f | 37 | BuildRequires: python |
f661901b | 38 | BuildRequires: python-devel >= 2.2 |
a6540c91 | 39 | BuildRequires: rpm-pythonprov |
e53d5b62 | 40 | BuildRequires: rpmbuild(macros) >= 1.268 |
327002b6 | 41 | Requires: apache(modules-api) = %apache_modules_api |
716a7243 | 42 | Requires: apr >= 1:1.0.0 |
7caf45e1 | 43 | # apache.py uses pdb module |
8918f17a | 44 | Requires: python-devel-tools |
2af2db31 | 45 | %requires_eq python-libs |
9da631b3 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
327002b6 ER |
48 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
49 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
9da631b3 | 50 | |
9da631b3 | 51 | %description |
8c943194 | 52 | Mod_python is a module that embeds the Python language interpreter |
53 | within the server, allowing Apache handlers to be written in Python. | |
54 | ||
55 | Mod_python brings together the versatility of Python and the power of | |
56 | the Apache Web server for a considerable boost in flexibility and | |
57 | performance over the traditional CGI approach. | |
58 | ||
95039108 JR |
59 | %description -l cs.UTF-8 |
60 | Balíček mod_python obsahuje modul, který umožní serveru Apache přímo | |
61 | interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému | |
62 | zvýšení rychlosti jejich provedení. | |
8c943194 | 63 | |
95039108 | 64 | %description -l de.UTF-8 |
8c943194 | 65 | Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb |
95039108 | 66 | des Servers einbettet und es den Apache-Handlern ermöglicht, in Python |
8c943194 | 67 | geschrieben zu werden. |
68 | ||
69 | Mod_python verbindet die Vielseitigkeit von Python und die | |
95039108 JR |
70 | Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der |
71 | Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz | |
8c943194 | 72 | bedeutet. |
73 | ||
95039108 JR |
74 | %description -l es.UTF-8 |
75 | Mod_python es un módulo que activa el intérprete de Python en el | |
8c943194 | 76 | servidor, permitiendo que se escriban gestores para Apache en Python. |
77 | ||
78 | Mod_python proporciona la versatilidad y el poder del servidor web | |
79 | Apache para acelerar considerablemente la flexibilidad y prestaciones | |
95039108 | 80 | en comparación a una aproximación tradicional con CGI. |
8c943194 | 81 | |
95039108 JR |
82 | %description -l fr.UTF-8 |
83 | Mod_python est un module qui intègre l'interpréteur de langage Python | |
84 | dans le serveur, permettant aux gestionnaires Apache d'être écrits en | |
8c943194 | 85 | Python. |
86 | ||
95039108 JR |
87 | Mod_python conjugue la versatilité de Python et la puissance du |
88 | serveur Web Apache de façon à augmenter considérablement la | |
89 | flexibilité et la performance par rapport à une approche CGI | |
8c943194 | 90 | traditionnelle. |
91 | ||
95039108 JR |
92 | %description -l it.UTF-8 |
93 | Mod_python è un modulo che integra nel server l'interprete del | |
8c943194 | 94 | linguaggio Python, in modo che i programmi di gestione possano essere |
95 | scritti in Python. | |
96 | ||
95039108 JR |
97 | Mod_python unisce in sé la versatilità di Python e la potenza del |
98 | server Web Apache, con un conseguente accrescimento di flessibilità e | |
8c943194 | 99 | un miglioramento notevole nelle prestazioni rispetto all'approccio |
100 | tradizionale CGI. | |
101 | ||
95039108 JR |
102 | %description -l ja.UTF-8 |
103 | Mod_python はサーバー内に Python | |
104 | 言語インタープリタを組み込んだモジュール です。これにより、Apache | |
105 | ハンドラを Python で記述できます。 Mod_python は、Python の汎用性と | |
106 | Apache Web サーバーのパワーを組み合わせる ことにより、従来の CGI | |
107 | アプローチから柔軟性とパフォーマンスを大幅に向上させます。 | |
8c943194 | 108 | |
95039108 JR |
109 | %description -l pl.UTF-8 |
110 | mod_python jest modułem osadzającym interpreter języka Python w | |
111 | serwerze WWW Apache, umożliwiając mu obsługę kodu napisanego w | |
8c943194 | 112 | Pythonie. |
22317842 | 113 | |
95039108 JR |
114 | mod_python łączy wszechstronność Pythona i moc Apache'a jako serwera |
115 | WWW, co daje zwiększoną elastyczność i zauważalną poprawę wydajności w | |
116 | stosunku do tradycyjnego rozwiązania opartego na CGI. | |
8c943194 | 117 | |
95039108 JR |
118 | %description -l sv.UTF-8 |
119 | Mod_python är en modul som bygger in en interpretator för språket | |
120 | Python i servern, och låter Apach-hanterare skrivas i Python. | |
8c943194 | 121 | |
95039108 JR |
122 | Mod_python sammanför mångsidigheten hos Python och kraften hos |
123 | webbservern Apache till en avsevärd ökning av flexibiliteten och | |
124 | prestandan jämfört med den traditionella CGI-metoden. | |
8c943194 | 125 | |
8c943194 | 126 | %prep |
9da631b3 | 127 | %setup -q -n mod_%{mod_name}-%{version} |
f15a5c07 | 128 | %patch0 -p1 |
1a7b3fd3 | 129 | %patch1 -p1 |
9da631b3 | 130 | |
131 | %build | |
168742b5 | 132 | %{__aclocal} |
bf34adc6 | 133 | %{__autoconf} |
8cca102a | 134 | %configure \ |
2bd51d05 | 135 | --with-apxs=%{apxs} |
f7564150 | 136 | %{__make} dso |
9da631b3 | 137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
327002b6 | 140 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf} |
9da631b3 | 141 | |
dbc6fba5 PG |
142 | %{__make} install \ |
143 | DESTDIR=$RPM_BUILD_ROOT | |
c55db4a1 | 144 | |
cee73326 | 145 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.conf |
2570d55f | 146 | %py_postclean |
d67ddad7 | 147 | |
22317842 JB |
148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
9da631b3 | 151 | %post |
e53d5b62 | 152 | %service -q httpd restart |
9da631b3 | 153 | |
143b215e | 154 | %postun |
9da631b3 | 155 | if [ "$1" = "0" ]; then |
e53d5b62 | 156 | %service -q httpd restart |
9da631b3 | 157 | fi |
158 | ||
9da631b3 | 159 | %files |
160 | %defattr(644,root,root,755) | |
dbc6fba5 | 161 | %doc doc-html/* README COPYRIGHT NEWS CREDITS |
2af2db31 | 162 | %doc examples |
2570d55f | 163 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf |
cee73326 | 164 | %attr(755,root,root) %{_pkglibdir}/*.so |
a58b005a | 165 | %dir %{py_sitedir}/mod_%{mod_name} |
ae849789 | 166 | %attr(755,root,root) %{py_sitedir}/mod_%{mod_name}/*.so |
a58b005a | 167 | %{py_sitedir}/mod_%{mod_name}/*.py[co] |