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