]>
Commit | Line | Data |
---|---|---|
e32a8e8e ER |
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 | # | |
b2951fdb JB |
7 | # Conditional build: |
8 | %bcond_without ipv6 # IPv6 support (must match same bcond from apache1-devel) | |
08fec711 | 9 | # |
0db61fe4 | 10 | %define mod_name perl |
0923904c | 11 | %define apxs /usr/sbin/apxs1 |
938d3983 | 12 | Summary: A Perl interpreter for the Apache Web server |
c915d7c2 ER |
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 解释程序。 | |
938d3983 | 31 | Name: apache1-mod_perl |
d7a47fc7 JB |
32 | Version: 1.31 |
33 | Release: 1 | |
b2951fdb | 34 | License: Apache v1.1 |
938d3983 JB |
35 | Group: Networking/Daemons |
36 | Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz | |
d7a47fc7 | 37 | # Source0-md5: d2188bf500e9f00cd78dc97c3fbf6b97 |
938d3983 JB |
38 | Patch0: apache-perl-rh.patch |
39 | # from ftp://ftp.kddlabs.co.jp/Linux/packages/Kondara/pub/Jirai/ | |
40 | Patch1: mod_perl-v6.patch | |
0dd8ee02 | 41 | Patch2: %{name}-optimize.patch |
938d3983 | 42 | URL: http://perl.apache.org/ |
08fec711 | 43 | %{?with_ipv6:BuildRequires: apache1(ipv6)-devel} |
b2951fdb | 44 | BuildRequires: apache1-devel >= 1.3.39-2 |
938d3983 JB |
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 | |
9cf4f03e | 51 | BuildRequires: perl-devel >= 1:5.8.0 |
938d3983 JB |
52 | BuildRequires: perl-libwww |
53 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b38545fb | 54 | BuildRequires: rpmbuild(macros) >= 1.268 |
96b55245 | 55 | Requires(triggerpostun): sed >= 4.0 |
692500e4 | 56 | Requires: apache1(EAPI) |
692500e4 | 57 | Provides: apache(mod_perl) |
938d3983 JB |
58 | Obsoletes: mod_perl |
59 | Obsoletes: mod_perl-common | |
08fec711 | 60 | %{!?with_ipv6:Conflicts: apache1(ipv6)} |
938d3983 JB |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
0db61fe4 ER |
63 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
64 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
cab6f00b | 65 | %define _noautoreqdep 'perl(Apache::.*)' 'perl(mod_perl)' |
08fec711 | 66 | %define _manualdocdir %{_datadir}/apache1-manual |
3ff7c49b | 67 | |
938d3983 JB |
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 | ||
4c06d90a JR |
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í | |
938d3983 JB |
82 | interpret Perlu. |
83 | ||
4c06d90a | 84 | %description -l de.UTF-8 |
938d3983 | 85 | Mod_perl integriert einen Perl-Interpreter in den Apache Web-Server, |
4c06d90a | 86 | so dass dieser Perl-Code direkt ausführen kann. Das Programm verknüpft |
938d3983 | 87 | die Perl-Runtime-Bibliothek mit dem Apache Web-Sever und stellt eine |
4c06d90a JR |
88 | objektorientierte Perl-Benutzeroberfläche für die C-API des |
89 | Apache-Servers bereit. Das Resultat ist eine schnellere Ausführung von | |
938d3983 JB |
90 | CGI-Skripten, da kein externer Perl-Interpreter gestartet werden muss. |
91 | ||
4c06d90a JR |
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 | |
938d3983 JB |
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 | |
4c06d90a JR |
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 | |
938d3983 JB |
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 | ||
4c06d90a JR |
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. | |
938d3983 | 123 | |
4c06d90a | 124 | %description -l it.UTF-8 |
938d3983 JB |
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 | |
4c06d90a | 130 | script CGI, poiché non è più necessario appoggiarsi ad un interprete |
938d3983 JB |
131 | Perl esterno. |
132 | ||
4c06d90a JR |
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 | |
938d3983 JB |
148 | O mod_perl incorpora um interpretador de Perl no servidor Web Apache, |
149 | para que assim o servidor Web Apache possa executar directamente | |
4c06d90a | 150 | código em Perl. O mod_perl associa a biblioteca de execução do Perl |
938d3983 | 151 | com o servidor Web Apache e oferece uma interface orientada por |
4c06d90a JR |
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 | |
938d3983 JB |
154 | tem que se iniciar um interpretador de Perl externo. |
155 | ||
4c06d90a JR |
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 | 脚本回转过程更为快速。 | |
938d3983 | 197 | |
b2951fdb JB |
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 | |
ac7fd1aa | 210 | Summary: Files needed for building XS modules that use mod_perl |
c915d7c2 | 211 | Summary(pl.UTF-8): Pliki potrzebne do budowania modułów XS korzystających z mod_perla |
ac7fd1aa | 212 | Group: Development/Libraries |
ac7fd1aa | 213 | Requires: apache1-devel |
b2951fdb JB |
214 | Requires: perl-mod_perl1 = %{version}-%{release} |
215 | Obsoletes: apache1-mod_perl-devel | |
ac7fd1aa | 216 | |
b2951fdb | 217 | %description -n perl-mod_perl1-devel |
ac7fd1aa ER |
218 | The apache1-mod_perl-devel package contains the files needed for |
219 | building XS modules that use mod_perl. | |
220 | ||
b2951fdb | 221 | %description -n perl-mod_perl1-devel -l pl.UTF-8 |
4c06d90a JR |
222 | Ten pakiet zawiera pliki potrzebne do budowania modułów XS |
223 | korzystających z mod_perla. | |
ef21c2f6 | 224 | |
b2951fdb JB |
225 | %package doc |
226 | Summary: mod_perl documentation | |
fb3f2869 | 227 | Summary(pl.UTF-8): Dokumentacja do mod_perla |
b2951fdb JB |
228 | Group: Documentation |
229 | Requires: apache1-doc | |
7e7d4881 | 230 | |
b2951fdb JB |
231 | %description doc |
232 | mod_perl online documentation. | |
7e7d4881 | 233 | |
b2951fdb JB |
234 | %description doc -l pl.UTF-8 |
235 | Dokumentacja do mod_perla dostępna przez Apache'a. | |
7e7d4881 | 236 | |
938d3983 | 237 | %prep |
b2951fdb | 238 | %setup -q -n mod_perl-%{version} |
938d3983 | 239 | %patch0 -p1 |
0db61fe4 | 240 | %{?with_ipv6:%patch1 -p1} |
0dd8ee02 | 241 | %patch2 -p1 |
938d3983 JB |
242 | |
243 | %build | |
0dd8ee02 | 244 | %{__perl} Makefile.PL \ |
938d3983 JB |
245 | USE_APXS=1 \ |
246 | WITH_APXS=%{apxs} \ | |
247 | EVERYTHING=1 \ | |
248 | PERL_STACKED_HANDLERS=1 \ | |
0dd8ee02 | 249 | OPTIMIZE="%{rpmcflags}" \ |
938d3983 JB |
250 | INSTALLDIRS=vendor |
251 | ||
0dd8ee02 | 252 | ln -s ../src/modules apaci/modules |
253 | chmod +x apaci/find_source | |
938d3983 | 254 | |
0dd8ee02 | 255 | %{__make} \ |
256 | OPTIMIZE="%{rpmcflags}" | |
ab4fef4c | 257 | %{__make} -C faq |
938d3983 JB |
258 | |
259 | %install | |
260 | rm -rf $RPM_BUILD_ROOT | |
08fec711 | 261 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_manualdocdir}/mod} |
938d3983 | 262 | |
ab4fef4c JB |
263 | %{__make} pure_install \ |
264 | DESTDIR=$RPM_BUILD_ROOT | |
938d3983 | 265 | |
0db61fe4 | 266 | install apaci/libperl.so $RPM_BUILD_ROOT%{_pkglibdir} |
938d3983 | 267 | install htdocs/manual/mod/mod_perl.html \ |
08fec711 | 268 | $RPM_BUILD_ROOT%{_manualdocdir}/mod |
938d3983 | 269 | |
0db61fe4 ER |
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 | |
d7a47fc7 JB |
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* | |
0db61fe4 | 278 | |
938d3983 JB |
279 | %clean |
280 | rm -rf $RPM_BUILD_ROOT | |
281 | ||
282 | %post | |
b38545fb | 283 | %service -q apache restart |
938d3983 | 284 | |
21b57f60 | 285 | %postun |
938d3983 | 286 | if [ "$1" = "0" ]; then |
b38545fb | 287 | %service -q apache restart |
938d3983 JB |
288 | fi |
289 | ||
0db61fe4 ER |
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 | |
7e7d4881 | 293 | %{__sed} -i -e '/^\(Add\|Load\)Module.*libperl\.\(so\|c\)/d' /etc/apache/apache.conf |
0db61fe4 ER |
294 | fi |
295 | ||
938d3983 JB |
296 | %files |
297 | %defattr(644,root,root,755) | |
b2951fdb | 298 | %doc CREDITS Changes INSTALL LICENSE README STATUS SUPPORT faq/*.html faq/*.txt apache-modlist.html eg |
c5dcfe51 | 299 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf |
b2951fdb | 300 | %attr(755,root,root) %{_pkglibdir}/libperl.so |
938d3983 | 301 | |
b2951fdb | 302 | %files doc |
7e7d4881 | 303 | %defattr(644,root,root,755) |
b2951fdb | 304 | %{_manualdocdir}/mod/mod_perl.html |
938d3983 | 305 | |
b2951fdb JB |
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 | |
938d3983 JB |
311 | %{perl_vendorarch}/Apache/*.pm |
312 | %{perl_vendorarch}/Apache/Constants | |
313 | %dir %{perl_vendorarch}/auto/Apache | |
314 | %dir %{perl_vendorarch}/auto/Apache/Leak | |
b2951fdb JB |
315 | %{perl_vendorarch}/auto/Apache/Leak/Leak.bs |
316 | %attr(755,root,root) %{perl_vendorarch}/auto/Apache/Leak/Leak.so | |
938d3983 | 317 | %dir %{perl_vendorarch}/auto/Apache/Symbol |
b2951fdb JB |
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* | |
938d3983 | 323 | |
b2951fdb | 324 | %files -n perl-mod_perl1-devel |
ac7fd1aa | 325 | %defattr(644,root,root,755) |
938d3983 JB |
326 | %{perl_vendorarch}/auto/Apache/typemap |
327 | %{perl_vendorarch}/auto/Apache/mod_perl.exp | |
328 | %{perl_vendorarch}/auto/Apache/include |