]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - hard to solve and is it worth? | |
3 | # Apache::Util::escape_html() can't be used outside Aapache it is xs and in shared library which is also the apache module | |
4 | # fix would be probably link only Apachye symbols to apache module and put rest of the symbols as perl library | |
5 | # perl-HTML-Menu-Select uses that method in test. | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without ipv6 # IPv6 support (must match same bcond from apache1-devel) | |
9 | # | |
10 | %define mod_name perl | |
11 | %define apxs /usr/sbin/apxs1 | |
12 | Summary: A Perl interpreter for the Apache Web server | |
13 | Summary(cs.UTF-8): Vestavěný interpret Perlu pro WWW server Apache | |
14 | Summary(da.UTF-8): En indbygget Perl-fortolker for webtjeneren Apache | |
15 | Summary(de.UTF-8): Ein eingebetteter Perl-Interpreter für den Apache Web-Server | |
16 | Summary(es.UTF-8): Intérprete Perl para el servidor Web Apache | |
17 | Summary(fr.UTF-8): Interpréteur Perl intégré pour le serveur Web Apache | |
18 | Summary(id.UTF-8): Interpreter Perl untuk web server Apache | |
19 | Summary(is.UTF-8): Perl túlkur fyrir Apache vefþjóninn | |
20 | Summary(it.UTF-8): Interprete Perl integrato per il server Web Apache | |
21 | Summary(ja.UTF-8): Apache Web サーバー用の組込み Perl インタープリタ | |
22 | Summary(nb.UTF-8): En Perl-fortolker for webtjeneren Apache | |
23 | Summary(pl.UTF-8): Interpreter Perla dla serwera WWW Apache | |
24 | Summary(pt.UTF-8): Um interpretador de Perl embebido para o servidor Web Apache | |
25 | Summary(ru.UTF-8): Встроенный интерпретатор Perl для WWW-сервера Apache | |
26 | Summary(sk.UTF-8): Interpreter jazyka Perl pre webový server Apache | |
27 | Summary(sl.UTF-8): Vključeni perlovski tolmač za spletni strežnik Apache | |
28 | Summary(sv.UTF-8): En inbyggd Perl-interpretator för webbservern Apache | |
29 | Summary(uk.UTF-8): Модуль вбудовування інтерпретатора Perl в сервер Apache | |
30 | Summary(zh_CN.UTF-8): 用于 Apache web 服务程序的 Perl 解释程序。 | |
31 | Name: apache1-mod_perl | |
32 | Version: 1.31 | |
33 | Release: 1 | |
34 | License: Apache v1.1 | |
35 | Group: Networking/Daemons | |
36 | Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz | |
37 | # Source0-md5: d2188bf500e9f00cd78dc97c3fbf6b97 | |
38 | Patch0: apache-perl-rh.patch | |
39 | # from ftp://ftp.kddlabs.co.jp/Linux/packages/Kondara/pub/Jirai/ | |
40 | Patch1: mod_perl-v6.patch | |
41 | Patch2: %{name}-optimize.patch | |
42 | URL: http://perl.apache.org/ | |
43 | %{?with_ipv6:BuildRequires: apache1(ipv6)-devel} | |
44 | BuildRequires: apache1-devel >= 1.3.39-2 | |
45 | BuildRequires: perl-B-Graph | |
46 | BuildRequires: perl-BSD-Resource | |
47 | BuildRequires: perl-Devel-Symdump | |
48 | BuildRequires: perl-HTML-Parser | |
49 | BuildRequires: perl-MIME-Base64 | |
50 | BuildRequires: perl-URI | |
51 | BuildRequires: perl-devel >= 1:5.8.0 | |
52 | BuildRequires: perl-libwww | |
53 | BuildRequires: rpm-perlprov >= 4.1-13 | |
54 | BuildRequires: rpmbuild(macros) >= 1.268 | |
55 | Requires(triggerpostun): sed >= 4.0 | |
56 | Requires: apache1(EAPI) | |
57 | Provides: apache(mod_perl) | |
58 | Obsoletes: mod_perl | |
59 | Obsoletes: mod_perl-common | |
60 | %{!?with_ipv6:Conflicts: apache1(ipv6)} | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
64 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
65 | %define _noautoreqdep 'perl(Apache::.*)' 'perl(mod_perl)' | |
66 | %define _manualdocdir %{_datadir}/apache1-manual | |
67 | ||
68 | %description | |
69 | Mod_perl incorporates a Perl interpreter into the Apache web server, | |
70 | so that the Apache web server can directly execute Perl code. Mod_perl | |
71 | links the Perl runtime library into the Apache web server and provides | |
72 | an object-oriented Perl interface for Apache's C language API. The end | |
73 | result is a quicker CGI script turnaround process, since no external | |
74 | Perl interpreter has to be started. | |
75 | ||
76 | %description -l cs.UTF-8 | |
77 | Modul mod_perl začleňuje interpret Perlu do WWW serveru Apache, takže | |
78 | WWW server může přímo provádět programy v Perlu. Mod_perl připojuje | |
79 | běhovou knihovnu Perlu do Apache WWW serveru a poskytuje objektově | |
80 | orientované perlovské rozhraní pro API serveru Apache. Výsledkem je | |
81 | rychlejší start CGI skriptů, protože nemusí být startován externí | |
82 | interpret Perlu. | |
83 | ||
84 | %description -l de.UTF-8 | |
85 | Mod_perl integriert einen Perl-Interpreter in den Apache Web-Server, | |
86 | so dass dieser Perl-Code direkt ausführen kann. Das Programm verknüpft | |
87 | die Perl-Runtime-Bibliothek mit dem Apache Web-Sever und stellt eine | |
88 | objektorientierte Perl-Benutzeroberfläche für die C-API des | |
89 | Apache-Servers bereit. Das Resultat ist eine schnellere Ausführung von | |
90 | CGI-Skripten, da kein externer Perl-Interpreter gestartet werden muss. | |
91 | ||
92 | %description -l es.UTF-8 | |
93 | Mod_perl incluye un intérprete Perl en el servidor Apache, de manera | |
94 | que se puede ejecutar el código Perl directamente desde el servidor | |
95 | Web. Mod_perl enumera las bibliotecas runtime del Perl al Web servidor | |
96 | Apache y proporciona una interfaz Perl object-oriented para las API | |
97 | del lenguaje C. De tal modo que se obtiene una ejecución más rápida de | |
98 | los script CGI sin necesidad de apoyarse en un intérprete Perl. | |
99 | ||
100 | %description -l fr.UTF-8 | |
101 | Mod_perl incorpore un interpréteur Perl dans le serveur Web Apache, de | |
102 | manière à ce que le serveur Web Apache puisse exécuter directement du | |
103 | code Perl. Mod_perl lie la bibliothèque d'exécution Perl au serveur | |
104 | Web Apache et fournit une interface Perl orientée objet pour l'API en | |
105 | langage C d'Apache. Le résultat final est une exécution des scripts | |
106 | CGI plus rapide, du fait qu'aucun interpréteur Perl externe ne doit | |
107 | être démarré. | |
108 | ||
109 | %description -l id.UTF-8 | |
110 | Mod_perl memasukkan interpreter Perl ke dalam web server Apache, | |
111 | sehingga Apache dapat secara langsung menjalankan kode Perl. Mod_perl | |
112 | me-link runtime library Perl ke dalam web server Apache dan | |
113 | menyediakan antarmuka Perl yang object-oriented untuk API Apache yang | |
114 | ditulis dalam C. Hasilnya, respon proses CGI lebih cepat, karena tidak | |
115 | perlu lagi menjalankan interpreter Perl eksternal. | |
116 | ||
117 | %description -l is.UTF-8 | |
118 | Mod_perl vinnur með perl á Apache vefþjóninum svo að Apache geti beint | |
119 | keyrt Perl kóða. Mod_perl tengir Perl keyrslu söfnin við Apache | |
120 | vefþjóninn og býður upp á hlutbundið Perl fyrir Apache C | |
121 | forritunarmáls API. Það sem græðist er Hraðari CGI scriptur þar sem | |
122 | það er engar úttengd Perl köll. | |
123 | ||
124 | %description -l it.UTF-8 | |
125 | Mod_perl incorpora un interprete Perl nel server web Apache, in modo | |
126 | che quest'ultimo possa eseguire direttamente il codice Perl. Mod_perl | |
127 | collega la libreria runtime di Perl al server web Apache e fornisce | |
128 | un'interfaccia Perl orientata all'oggetto per le API in linguaggio C | |
129 | di Apache. In tal modo si velocizza il processo di turnaround degli | |
130 | script CGI, poiché non è più necessario appoggiarsi ad un interprete | |
131 | Perl esterno. | |
132 | ||
133 | %description -l ja.UTF-8 | |
134 | mod_perl は、Apache Web サーバーが直接 Perl コードを実行できるように、 | |
135 | Perl インタープリタを Apache Web サーバーに組み込みます。mod_perl は、 | |
136 | Perl のランタイムライブラリを Apache Web サーバーにリンクさせ、Apache | |
137 | の C 言語 API 用のオブジェクト指向の Perl インターフェイスを提供 | |
138 | します。その結果、外部の Perl インタープリタが起動する必要がないため、 | |
139 | CGI スクリプトのターンアラウンドプロセスが速くなります。 | |
140 | ||
141 | %description -l pl.UTF-8 | |
142 | Mod_perl jest modułem, który wyposaża serwer Apache w interpreter | |
143 | Perla, umożliwiając w ten sposób bezpośrednie wykonywanie kodu Perla | |
144 | przez serwer bez potrzeby angażowania zewnętrznego interpretera, co | |
145 | przyspiesza procesy związane z uruchamianiem skryptów CGI. | |
146 | ||
147 | %description -l pt.UTF-8 | |
148 | O mod_perl incorpora um interpretador de Perl no servidor Web Apache, | |
149 | para que assim o servidor Web Apache possa executar directamente | |
150 | código em Perl. O mod_perl associa a biblioteca de execução do Perl | |
151 | com o servidor Web Apache e oferece uma interface orientada por | |
152 | objectos do Perl para a API de C do Apache. O resultado final é um | |
153 | processo de torneamento dos 'scripts' CGI mais rápido, dado que não | |
154 | tem que se iniciar um interpretador de Perl externo. | |
155 | ||
156 | %description -l ru.UTF-8 | |
157 | Mod_perl встраивает Perl-интрепретатор в WWW-сервер Apache, так что | |
158 | этот сервер может напрямую работать с кодом Perl. Mod_perl связывает | |
159 | библиотеку реального времени Perl с сервером Apache и содержит | |
160 | объектно-ориентированный интерфейс Perl API языка Apache C. Конечный | |
161 | результат - ускоренная работа со скриптами CGI. | |
162 | ||
163 | %description -l sk.UTF-8 | |
164 | Mod_perl začleňuje interpreter Perlu do webového servera Apache; | |
165 | server Apache potom môže priamo vykonávať príkazy Perlu. Mod_perl | |
166 | zlinkuje knižnicu Perlu s webovým serverom Apache a poskytne tak | |
167 | objektovo orietované rozhranie Perlu pre aplikačné rozhranie servera | |
168 | Apache v jazyku C. Výsledkom je rýchlejšie vykonanie CGI skriptu, bez | |
169 | akéhokoľvek spustenia externého interpretera jazyka Perl. | |
170 | ||
171 | %description -l sv.UTF-8 | |
172 | Mod_perl införlivar en Perl-interpretator i webbservern Apache, så att | |
173 | webbervern Apach kan köra Perl-kod direkt. Mod_perl länkar in Perls | |
174 | körtidsbibliotek i webbservern Apache och ger ett objektorienterat | |
175 | Perl-gränssnitt till Apaches API i språket C. Slutresultatet är en | |
176 | snabbare processomsättning av CGI-skript, eftersom ingen extern | |
177 | Perl-interpretator behöver startas. | |
178 | ||
179 | %description -l uk.UTF-8 | |
180 | Проект інтеграції Apache та Perl дозволяє вам використовувати всю | |
181 | потужність мови програмування Perl та web-серверу Apache. Це | |
182 | досягається шляхом вбудовування бібліотек Perl всередину сервера | |
183 | Apache через DSO та надання об'єктно-орієнтованих Perl-бібліотек для | |
184 | доступу до Apache API. | |
185 | ||
186 | Це досягається за допомогою mod_perl'а, котрий дозволяє створювати | |
187 | модулі для Apache безпосередньо на мові Perl. Крім цього, це дозволяє | |
188 | уникнути накладних витрат на завантаження інтерпретатора Perl при | |
189 | обробці кожного запиту. | |
190 | ||
191 | %description -l zh_CN.UTF-8 | |
192 | Mod_perl 将 Perl 解释程序与 Apache web 服务程序结合在一起, | |
193 | 以便后者可以直接执行 Perl 代码。 Mod_perl 将 Perl 运行时间程序库链接至 | |
194 | Apache web 服务程序, 并为 Apache 的 C 语言 API 提供面向对象的 Perl | |
195 | 接口。 由于不必启动任何外部 Perl 解释程序,因此会使 CGI | |
196 | 脚本回转过程更为快速。 | |
197 | ||
198 | %package -n perl-mod_perl1 | |
199 | Summary: Perl APIs for mod_perl | |
200 | Summary(pl.UTF-8): Perlowe API dla mod_perla | |
201 | Group: Development/Languages/Perl | |
202 | ||
203 | %description -n perl-mod_perl1 | |
204 | Perl APIs for mod_perl. | |
205 | ||
206 | %description -n perl-mod_perl1 -l pl.UTF-8 | |
207 | Perlowe API dla mod_perl. | |
208 | ||
209 | %package -n perl-mod_perl1-devel | |
210 | Summary: Files needed for building XS modules that use mod_perl | |
211 | Summary(pl.UTF-8): Pliki potrzebne do budowania modułów XS korzystających z mod_perla | |
212 | Group: Development/Libraries | |
213 | Requires: apache1-devel | |
214 | Requires: perl-mod_perl1 = %{version}-%{release} | |
215 | Obsoletes: apache1-mod_perl-devel | |
216 | ||
217 | %description -n perl-mod_perl1-devel | |
218 | The apache1-mod_perl-devel package contains the files needed for | |
219 | building XS modules that use mod_perl. | |
220 | ||
221 | %description -n perl-mod_perl1-devel -l pl.UTF-8 | |
222 | Ten pakiet zawiera pliki potrzebne do budowania modułów XS | |
223 | korzystających z mod_perla. | |
224 | ||
225 | %package doc | |
226 | Summary: mod_perl documentation | |
227 | Summary(pl.UTF-8): Dokumentacja do mod_perla | |
228 | Group: Documentation | |
229 | Requires: apache1-doc | |
230 | ||
231 | %description doc | |
232 | mod_perl online documentation. | |
233 | ||
234 | %description doc -l pl.UTF-8 | |
235 | Dokumentacja do mod_perla dostępna przez Apache'a. | |
236 | ||
237 | %prep | |
238 | %setup -q -n mod_perl-%{version} | |
239 | %patch0 -p1 | |
240 | %{?with_ipv6:%patch1 -p1} | |
241 | %patch2 -p1 | |
242 | ||
243 | %build | |
244 | %{__perl} Makefile.PL \ | |
245 | USE_APXS=1 \ | |
246 | WITH_APXS=%{apxs} \ | |
247 | EVERYTHING=1 \ | |
248 | PERL_STACKED_HANDLERS=1 \ | |
249 | OPTIMIZE="%{rpmcflags}" \ | |
250 | INSTALLDIRS=vendor | |
251 | ||
252 | ln -s ../src/modules apaci/modules | |
253 | chmod +x apaci/find_source | |
254 | ||
255 | %{__make} \ | |
256 | OPTIMIZE="%{rpmcflags}" | |
257 | %{__make} -C faq | |
258 | ||
259 | %install | |
260 | rm -rf $RPM_BUILD_ROOT | |
261 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_manualdocdir}/mod} | |
262 | ||
263 | %{__make} pure_install \ | |
264 | DESTDIR=$RPM_BUILD_ROOT | |
265 | ||
266 | install apaci/libperl.so $RPM_BUILD_ROOT%{_pkglibdir} | |
267 | install htdocs/manual/mod/mod_perl.html \ | |
268 | $RPM_BUILD_ROOT%{_manualdocdir}/mod | |
269 | ||
270 | echo 'LoadModule %{mod_name}_module modules/lib%{mod_name}.so' > \ | |
271 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf | |
272 | ||
273 | # clean known unpackaged files | |
274 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/*.pod | |
275 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Apache.pm | |
276 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/mod_perl/.packlist | |
277 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/Bundle::Apache.3pm* | |
278 | ||
279 | %clean | |
280 | rm -rf $RPM_BUILD_ROOT | |
281 | ||
282 | %post | |
283 | %service -q apache restart | |
284 | ||
285 | %postun | |
286 | if [ "$1" = "0" ]; then | |
287 | %service -q apache restart | |
288 | fi | |
289 | ||
290 | %triggerpostun -- apache1-mod_%{mod_name} < 1.29-7.1 | |
291 | # check that they're not using old apache.conf | |
292 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then | |
293 | %{__sed} -i -e '/^\(Add\|Load\)Module.*libperl\.\(so\|c\)/d' /etc/apache/apache.conf | |
294 | fi | |
295 | ||
296 | %files | |
297 | %defattr(644,root,root,755) | |
298 | %doc CREDITS Changes INSTALL LICENSE README STATUS SUPPORT faq/*.html faq/*.txt apache-modlist.html eg | |
299 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf | |
300 | %attr(755,root,root) %{_pkglibdir}/libperl.so | |
301 | ||
302 | %files doc | |
303 | %defattr(644,root,root,755) | |
304 | %{_manualdocdir}/mod/mod_perl.html | |
305 | ||
306 | %files -n perl-mod_perl1 | |
307 | %defattr(644,root,root,755) | |
308 | %{perl_vendorarch}/Apache.pm | |
309 | %{perl_vendorarch}/mod_perl*.pm | |
310 | %{perl_vendorarch}/mod_perl_hooks.pm.PL | |
311 | %{perl_vendorarch}/Apache/*.pm | |
312 | %{perl_vendorarch}/Apache/Constants | |
313 | %dir %{perl_vendorarch}/auto/Apache | |
314 | %dir %{perl_vendorarch}/auto/Apache/Leak | |
315 | %{perl_vendorarch}/auto/Apache/Leak/Leak.bs | |
316 | %attr(755,root,root) %{perl_vendorarch}/auto/Apache/Leak/Leak.so | |
317 | %dir %{perl_vendorarch}/auto/Apache/Symbol | |
318 | %{perl_vendorarch}/auto/Apache/Symbol/Symbol.bs | |
319 | %attr(755,root,root) %{perl_vendorarch}/auto/Apache/Symbol/Symbol.so | |
320 | %{_mandir}/man3/Apache*.3pm* | |
321 | %{_mandir}/man3/cgi_to_mod_perl.3pm* | |
322 | %{_mandir}/man3/mod_perl*.3pm* | |
323 | ||
324 | %files -n perl-mod_perl1-devel | |
325 | %defattr(644,root,root,755) | |
326 | %{perl_vendorarch}/auto/Apache/typemap | |
327 | %{perl_vendorarch}/auto/Apache/mod_perl.exp | |
328 | %{perl_vendorarch}/auto/Apache/include |