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