]> git.pld-linux.org Git - packages/apache-mod_python.git/blob - apache-mod_python.spec
e939fdcc9dec209b793ab0b559c5a72f2b5d15ba
[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:        3
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 URL:            http://www.modpython.org/
30 BuildRequires:  %{apxs}
31 BuildRequires:  apache-devel >= 2.0.44
32 BuildRequires:  apr-devel >= 1:0.9.4-1
33 BuildRequires:  autoconf
34 BuildRequires:  automake
35 BuildRequires:  flex >= 2.5.31
36 BuildRequires:  python-devel >= 2.2
37 BuildRequires:  rpm-pythonprov
38 Requires(post,preun):   %{apxs}
39 Requires:       apache >= 2.0.44
40 # apache.py uses pdb module
41 Requires:       python-devel-tools
42 %pyrequires_eq  python
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR)
46 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
47
48 %description
49 Mod_python is a module that embeds the Python language interpreter
50 within the server, allowing Apache handlers to be written in Python.
51
52 Mod_python brings together the versatility of Python and the power of
53 the Apache Web server for a considerable boost in flexibility and
54 performance over the traditional CGI approach.
55
56 %description -l cs
57 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
58 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
59 zvý¹ení rychlosti jejich provedení.
60
61 %description -l de
62 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
63 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
64 geschrieben zu werden.
65
66 Mod_python verbindet die Vielseitigkeit von Python und die
67 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
68 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
69 bedeutet.
70
71 %description -l es
72 Mod_python es un módulo que activa el intérprete de Python en el
73 servidor, permitiendo que se escriban gestores para Apache en Python.
74
75 Mod_python proporciona la versatilidad y el poder del servidor web
76 Apache para acelerar considerablemente la flexibilidad y prestaciones
77 en comparación a una aproximación tradicional con CGI.
78
79 %description -l fr
80 Mod_python est un module qui intègre l'interpréteur de langage Python
81 dans le serveur, permettant aux gestionnaires Apache d'être écrits en
82 Python.
83
84 Mod_python conjugue la versatilité de Python et la puissance du
85 serveur Web Apache de façon à augmenter considérablement la
86 flexibilité et la performance par rapport à une approche CGI
87 traditionnelle.
88
89 %description -l it
90 Mod_python è un modulo che integra nel server l'interprete del
91 linguaggio Python, in modo che i programmi di gestione possano essere
92 scritti in Python.
93
94 Mod_python unisce in sé la versatilità di Python e la potenza del
95 server Web Apache, con un conseguente accrescimento di flessibilità e
96 un miglioramento notevole nelle prestazioni rispetto all'approccio
97 tradizionale CGI.
98
99 %description -l ja
100 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
101 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
102 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ­½Ò¤Ç¤­¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ­¤È
103 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
104 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
105
106 %description -l pl
107 mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w
108 serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w
109 Pythonie.
110
111 mod_python ³±czy wszechstronno¶æ Pythona i moc Apache'a jako serwera
112 WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w
113 stosunku do tradycyjnego rozwi±zania opartego na CGI.
114
115 %description -l sv
116 Mod_python är en modul som bygger in en interpretator för språket
117 Python i servern, och låter Apach-hanterare skrivas i Python.
118
119 Mod_python sammanför mångsidigheten hos Python och kraften hos
120 webbservern Apache till en avsevärd ökning av flexibiliteten och
121 prestandan jämfört med den traditionella CGI-metoden.
122
123 %prep
124 %setup -q -n mod_%{mod_name}-%{version}
125 %if "%{_libdir}" == "%{_prefix}/lib64"
126 %patch0
127 %endif
128
129 %build
130 %{__aclocal}
131 %{__autoconf}
132
133 # new apache needs it
134 CFLAGS="-DEAPI %{rpmcflags}"
135 %configure \
136         --with-apxs=%{apxs}
137
138 %{__make} dso
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT%{_pkglibdir} \
143         $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT
147
148 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.conf
149
150 %clean
151 rm -rf $RPM_BUILD_ROOT
152
153 %post
154 if [ -f /var/lock/subsys/httpd ]; then
155         /etc/rc.d/init.d/httpd restart 1>&2
156 fi
157
158 %preun
159 if [ "$1" = "0" ]; then
160         if [ -f /var/lock/subsys/httpd ]; then
161                 /etc/rc.d/init.d/httpd restart 1>&2
162         fi
163 fi
164
165 %files
166 %defattr(644,root,root,755)
167 %doc doc-html/* README COPYRIGHT NEWS CREDITS
168 %{_sysconfdir}/httpd.conf/60_mod_python.conf
169 %attr(755,root,root) %{_pkglibdir}/*.so
170 %dir %{py_sitedir}/mod_%{mod_name}
171 %attr(755,root,root) %{py_sitedir}/mod_%{mod_name}/*.so
172 %{py_sitedir}/mod_%{mod_name}/*.py[co]
This page took 0.033441 seconds and 3 git commands to generate.