]> git.pld-linux.org Git - packages/apache-mod_python.git/blob - apache-mod_python.spec
149039ed21b3d130f27721069f691ec84590e65d
[packages/apache-mod_python.git] / apache-mod_python.spec
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}
21 Version:        3.1.3
22 Release:        5
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:  2e1983e35edd428f308b0dfeb1c23bfe
27 Source1:        %{name}.conf
28 Patch0:         %{name}-lib64.patch
29 Patch1:         %{name}-apr-status-is-success.patch
30 URL:            http://www.modpython.org/
31 BuildRequires:  %{apxs}
32 #BuildRequires: apache >= 2.0.44
33 BuildRequires:  apache-devel >= 2.0.52-7
34 BuildRequires:  apr-devel >= 1:1.0.0
35 BuildRequires:  autoconf
36 BuildRequires:  automake
37 BuildRequires:  flex >= 2.5.31
38 BuildRequires:  python-devel >= 2.2
39 BuildRequires:  rpm-pythonprov
40 Requires(post,preun):   %{apxs}
41 Requires:       apache >= 2.0.52-7
42 Requires:       apr >= 1:1.0.0
43 # apache.py uses pdb module
44 Requires:       python-devel-tools
45 %pyrequires_eq  python
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR)
49 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
50
51 %description
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
59 %description -l cs
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í.
63
64 %description -l de
65 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
66 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
67 geschrieben zu werden.
68
69 Mod_python verbindet die Vielseitigkeit von Python und die
70 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
71 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
72 bedeutet.
73
74 %description -l es
75 Mod_python es un módulo que activa el intérprete de Python en el
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
80 en comparación a una aproximación tradicional con CGI.
81
82 %description -l fr
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
85 Python.
86
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
90 traditionnelle.
91
92 %description -l it
93 Mod_python è un modulo che integra nel server l'interprete del
94 linguaggio Python, in modo che i programmi di gestione possano essere
95 scritti in Python.
96
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
99 un miglioramento notevole nelle prestazioni rispetto all'approccio
100 tradizionale CGI.
101
102 %description -l ja
103 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
104 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
105 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ­½Ò¤Ç¤­¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ­¤È
106 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
107 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
108
109 %description -l pl
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
112 Pythonie.
113
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.
117
118 %description -l sv
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.
121
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.
125
126 %prep
127 %setup -q -n mod_%{mod_name}-%{version}
128 %if "%{_libdir}" == "%{_prefix}/lib64"
129 %patch0
130 %endif
131 %patch1 -p1
132
133 %build
134 %{__aclocal}
135 %{__autoconf}
136
137 # new apache needs it
138 CFLAGS="-DEAPI %{rpmcflags}"
139 %configure \
140         --with-apxs=%{apxs}
141
142 %{__make} dso
143
144 %install
145 rm -rf $RPM_BUILD_ROOT
146 install -d $RPM_BUILD_ROOT%{_pkglibdir} \
147         $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
148
149 %{__make} install \
150         DESTDIR=$RPM_BUILD_ROOT
151
152 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.conf
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %post
158 if [ -f /var/lock/subsys/httpd ]; then
159         /etc/rc.d/init.d/httpd restart 1>&2
160 fi
161
162 %preun
163 if [ "$1" = "0" ]; then
164         if [ -f /var/lock/subsys/httpd ]; then
165                 /etc/rc.d/init.d/httpd restart 1>&2
166         fi
167 fi
168
169 %files
170 %defattr(644,root,root,755)
171 %doc doc-html/* README COPYRIGHT NEWS CREDITS
172 %{_sysconfdir}/httpd.conf/60_mod_python.conf
173 %attr(755,root,root) %{_pkglibdir}/*.so
174 %dir %{py_sitedir}/mod_%{mod_name}
175 %attr(755,root,root) %{py_sitedir}/mod_%{mod_name}/*.so
176 %{py_sitedir}/mod_%{mod_name}/*.py[co]
This page took 0.039759 seconds and 2 git commands to generate.