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