]> git.pld-linux.org Git - packages/apache-mod_python.git/blob - apache-mod_python.spec
91456d163faedcbb15be46a39e8618b882a0e700
[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.7
23 Release:        1
24 License:        distributable
25 Group:          Networking/Daemons
26 Source0:        http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
27 Patch0:         apache-mod_python-shared.patch
28 Patch1:         apache-mod_python-DESTDIR.patch
29 Patch2:         apache-mod_python-Makefile-in.patch
30 URL:            http://www.modpython.org/
31 BuildRequires:  autoconf
32 BuildRequires:  automake
33 BuildRequires:  apache-devel
34 BuildRequires:  python-devel >= 2.2
35 BuildRequires:  rpm-pythonprov
36 BuildRequires:  %{apxs}
37 Prereq:         %{_sbindir}/apxs
38 Requires:       apache
39 %pyrequires_eq  python
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         apache_moddir   %(%{apxs} -q LIBEXECDIR)
43
44 %description
45 Mod_python is a module that embeds the Python language interpreter
46 within the server, allowing Apache handlers to be written in Python.
47
48 Mod_python brings together the versatility of Python and the power of
49 the Apache Web server for a considerable boost in flexibility and
50 performance over the traditional CGI approach.
51
52
53 %description -l cs
54 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
55 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
56 zvý¹ení rychlosti jejich provedení.
57
58
59 %description -l de
60 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
61 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
62 geschrieben zu werden.
63
64 Mod_python verbindet die Vielseitigkeit von Python und die
65 Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der
66 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
67 bedeutet.
68
69
70 %description -l es
71 Mod_python es un módulo que activa el intérprete de Python en el
72 servidor, permitiendo que se escriban gestores para Apache en Python.
73
74 Mod_python proporciona la versatilidad y el poder del servidor web
75 Apache para acelerar considerablemente la flexibilidad y prestaciones
76 en comparación a una aproximación tradicional con CGI.
77
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
90 %description -l it
91 Mod_python è un modulo che integra nel server l'interprete del
92 linguaggio Python, in modo che i programmi di gestione possano essere
93 scritti in Python.
94
95 Mod_python unisce in sé la versatilità di Python e la potenza del
96 server Web Apache, con un conseguente accrescimento di flessibilità e
97 un miglioramento notevole nelle prestazioni rispetto all'approccio
98 tradizionale CGI.
99
100
101 %description -l ja
102 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
103 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
104 ¥Ï¥ó¥É¥é¤ò Python ¤Çµ­½Ò¤Ç¤­¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ­¤È
105 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
106 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
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
119 %description -l sv
120 Mod_python är en modul som bygger in en interpretator för språket
121 Python i servern, och låter Apach-hanterare skrivas i Python.
122
123 Mod_python sammanför mångsidigheten hos Python och kraften hos
124 webbservern Apache till en avsevärd ökning av flexibiliteten och
125 prestandan jämfört med den traditionella CGI-metoden.
126
127
128 %prep
129 %setup -q -n mod_%{mod_name}-%{version}
130 %patch0 -p1
131 %patch1 -p1
132 %patch2 -p1
133
134 %build
135 aclocal
136 %{__autoconf}
137
138 # new apache needs it
139 CFLAGS="-DEAPI %{rpmcflags}"
140 %configure \
141         --with-apxs=%{apxs}
142
143 %{__make} dso
144
145 %install
146 rm -rf $RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT{%{apache_moddir},%{py_sitedir}/mod_%{mod_name}}
148
149 %{__make} install DESTDIR=$RPM_BUILD_ROOT
150
151 gzip -9nf README COPYRIGHT NEWS CREDITS
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
155
156 %post
157 %{_sbindir}/apxs -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
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         %{_sbindir}/apxs -e -A -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
165         if [ -f /var/lock/subsys/httpd ]; then
166                 /etc/rc.d/init.d/httpd restart 1>&2
167         fi
168 fi
169
170 %files
171 %defattr(644,root,root,755)
172 %doc doc-html/*
173 %doc {README,COPYRIGHT,NEWS,CREDITS}.gz
174 %attr(755,root,root) %{apache_moddir}/*
175 %{py_sitedir}/mod_%{mod_name}
This page took 0.027732 seconds and 2 git commands to generate.