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