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