]> git.pld-linux.org Git - packages/apache-mod_python.git/blob - apache-mod_python.spec
- release 5
[packages/apache-mod_python.git] / apache-mod_python.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         mod_name        python
3 %define         apxs            /usr/sbin/apxs
4 Summary:        An embedded Python interpreter for the Apache Web server
5 Summary(cs):    Vestavìný interpret Pythonu pro WWW server Apache
6 Summary(da):    En indbygget Python-fortolker for webtjeneren Apache
7 Summary(de):    Ein eingebetteter Python-Interpreter für den Apache Web-Server
8 Summary(es):    Intérprete Perl para el servidor Web Apache
9 Summary(fr):    Interpréteur Python intégré pour le serveur Web Apache
10 Summary(id):    Interpreter Perl untuk web server Apache
11 Summary(is):    Perl túlkur fyrir Apache vefþjóninn
12 Summary(it):    Interprete Python integrato per il server Web Apache
13 Summary(ja):    Apache Web ¥µ¡¼¥Ð¡¼ÍѤÎÁȹþ¤ß Perl ¥¤¥ó¥¿¡¼¥×¥ê¥¿
14 Summary(no):    En Python-fortolker for webtjeneren Apache
15 Summary(pl):    Wbudowany interpreter Pythona dla serwera WWW Apache
16 Summary(pt):    Um interpretador de Perl embebido para o servidor Web Apache
17 Summary(ru):    ÷ÓÔÒÏÅÎÎÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ WWW-ÓÅÒ×ÅÒÁ Apache
18 Summary(sk):    Interpreter jazyka Perl pre webový server Apache
19 Summary(sl):    Vkljuèeni pythonski tolmaè za spletni stre¾nik Apache
20 Summary(sv):    En inbyggd Python-interpretator för webbservern Apache
21 Name:           apache-mod_%{mod_name}
22 Version:        2.7.6
23 Release:        5
24 License:        distributable
25 Group:          Networking/Daemons
26 Group(cs):      Sí»ové/Démoni
27 Group(da):      Netværks/Dæmoner
28 Group(de):      Netzwerkwesen/Server
29 Group(es):      Red/Servidores
30 Group(fr):      Réseau/Serveurs
31 Group(is):      Net/Púkar
32 Group(it):      Rete/Demoni
33 Group(no):      Nettverks/Daemoner
34 Group(pl):      Sieciowe/Serwery
35 Group(pt):      Rede/Servidores
36 Group(ru):      óÅÔØ/äÅÍÏÎÙ
37 Group(sl):      Omre¾ni/Stre¾niki
38 Group(sv):      Nätverk/Demoner
39 Group(uk):      íÅÒÅÖÁ/äÅÍÏÎÉ
40 Source0:        http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
41 Patch0:         apache-mod_python-shared.patch
42 Patch1:         apache-mod_python-DESTDIR.patch
43 Patch2:         apache-mod_python-Makefile-in.patch
44 URL:            http://www.modpython.org/
45 BuildRequires:  autoconf
46 BuildRequires:  automake
47 BuildRequires:  apache-devel
48 BuildRequires:  python-devel >= 2.2
49 BuildRequires:  rpm-pythonprov
50 BuildRequires:  %{apxs}
51 Prereq:         %{_sbindir}/apxs
52 Requires:       apache
53 %requires_eq    python
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %define         apache_moddir   %(%{apxs} -q LIBEXECDIR)
57
58 %description
59 Mod_python is a module that embeds the Python language interpreter
60 within the server, allowing Apache handlers to be written in Python.
61
62 Mod_python brings together the versatility of Python and the power of
63 the Apache Web server for a considerable boost in flexibility and
64 performance over the traditional CGI approach.
65
66
67 %description -l cs
68 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
69 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
70 zvý¹ení rychlosti jejich provedení.
71
72
73 %description -l de
74 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
75 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
76 geschrieben zu werden.
77
78 Mod_python verbindet die Vielseitigkeit von Python und die
79 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
80 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
81 bedeutet.
82
83
84 %description -l es
85 Mod_python es un módulo que activa el intérprete de Python en el
86 servidor, permitiendo que se escriban gestores para Apache en Python.
87
88 Mod_python proporciona la versatilidad y el poder del servidor web
89 Apache para acelerar considerablemente la flexibilidad y prestaciones
90 en comparación a una aproximación tradicional con CGI.
91
92
93 %description -l fr
94 Mod_python est un module qui intègre l'interpréteur de langage Python
95 dans le serveur, permettant aux gestionnaires Apache d'être écrits en
96 Python.
97
98 Mod_python conjugue la versatilité de Python et la puissance du
99 serveur Web Apache de façon à augmenter considérablement la
100 flexibilité et la performance par rapport à une approche CGI
101 traditionnelle.
102
103
104 %description -l it
105 Mod_python è un modulo che integra nel server l'interprete del
106 linguaggio Python, in modo che i programmi di gestione possano essere
107 scritti in Python.
108
109 Mod_python unisce in sé la versatilità di Python e la potenza del
110 server Web Apache, con un conseguente accrescimento di flessibilità e
111 un miglioramento notevole nelle prestazioni rispetto all'approccio
112 tradizionale CGI.
113
114
115 %description -l ja
116 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
117 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
118 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ­½Ò¤Ç¤­¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ­¤È
119 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
120 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
121
122
123 %description -l pl
124 mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w
125 serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w
126 Pythonie.
127
128 mod_python ³±czy wszechstronno¶æ Pythona i moc Apache'a jako serwera
129 WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w
130 stosunku do tradycyjnego rozwi±zania opartego na CGI.
131
132
133 %description -l sv
134 Mod_python är en modul som bygger in en interpretator för språket
135 Python i servern, och låter Apach-hanterare skrivas i Python.
136
137 Mod_python sammanför mångsidigheten hos Python och kraften hos
138 webbservern Apache till en avsevärd ökning av flexibiliteten och
139 prestandan jämfört med den traditionella CGI-metoden.
140
141
142 %prep
143 %setup -q -n mod_%{mod_name}-%{version}
144 %patch0 -p1
145 %patch1 -p1
146 %patch2 -p1
147
148 %build
149 aclocal
150 autoconf
151
152 # new apache needs it
153 CFLAGS="-DEAPI %{rpmcflags}"
154 %configure \
155         --with-apxs=%{apxs}
156
157 %{__make} dso
158
159 %install
160 rm -rf $RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT{%{apache_moddir},%{py_sitedir}/mod_%{mod_name}}
162
163 %{__make} install DESTDIR=$RPM_BUILD_ROOT
164
165 gzip -9nf README COPYRIGHT NEWS CREDITS
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %post
171 %{_sbindir}/apxs -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
172 if [ -f /var/lock/subsys/httpd ]; then
173         /etc/rc.d/init.d/httpd restart 1>&2
174 fi
175
176 %preun
177 if [ "$1" = "0" ]; then
178         %{_sbindir}/apxs -e -A -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
179         if [ -f /var/lock/subsys/httpd ]; then
180                 /etc/rc.d/init.d/httpd restart 1>&2
181         fi
182 fi
183
184 %files
185 %defattr(644,root,root,755)
186 %doc doc-html/*
187 %doc {README,COPYRIGHT,NEWS,CREDITS}.gz
188 %attr(755,root,root) %{apache_moddir}/*
189 %{py_sitedir}/mod_%{mod_name}
This page took 0.033921 seconds and 3 git commands to generate.