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