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