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