]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- fix apxs in case %{_libdir} != /usr/lib (change based on spec included in apache...
[packages/apache.git] / apache.spec
1 # _without_ssl  - don't build with SSL support
2 # _without_ldap - don't build with LDAP support
3 # TODO:
4 # - mod_case_filter
5 # - mod_case_filter_in
6 # - mod_optional_fn_{export,import}
7 # - mod_optional_hook_{export,import}
8 # - mod_ext_filter
9 # - mod_echo
10 # - config examples for mod_*
11 # - switch from worker to perchild when it will be working in apache
12 # - check if all modules are (de)registered in %%post/%%postun
13 # - find smart way to deregister module if its moved from main package to subpackage (maybe test -f ?)
14 # - add %%post/%%postun to suexec
15 # - --with-suexec-gidmin=500 or =100 ?
16 # - --with-suexec-uidmin=500 or =1000 ?
17 %include        /usr/lib/rpm/macros.perl
18 # this is internal macro, don't change to %%apache_modules_api
19 %define         _apache_modules_api 20020903
20 Summary:        The most widely used Web server on the Internet
21 Summary(de):    Leading World Wide Web-Server
22 Summary(es):    Servidor HTTPD para proveer servicios WWW
23 Summary(fr):    Le serveur web le plus utilise sur Internet
24 Summary(pl):    Serwer WWW (World Wide Web)
25 Summary(pt_BR): Servidor HTTPD para prover serviços WWW
26 Summary(ru):    óÁÍÙÊ ÐÏÐÕÌÑÒÎÙÊ ×ÅÂ-ÓÅÒ×ÅÒ
27 Summary(tr):    Lider WWW tarayýcý
28 Name:           apache
29 Version:        2.0.48
30 Release:        0.1.3
31 License:        Apache Group License
32 Group:          Networking/Daemons
33 Source0:        http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
34 # Source0-md5:  466c63bb71b710d20a5c353df8c1a19c
35 Source1:        %{name}.init
36 Source2:        %{name}.logrotate
37 Source3:        %{name}-icons.tar.gz
38 # Source3-md5:  2b085cbc19fd28536dc883f0b864cd83
39 Source4:        %{name}.sysconfig
40 Source6:        %{name}-httpd.conf
41 Source8:        %{name}-mod_vhost_alias.conf
42 Source9:        %{name}-mod_status.conf
43 Source10:       %{name}-mod_proxy.conf
44 Source11:       %{name}-mod_info.conf
45 Source12:       %{name}-mod_ssl.conf
46 Source13:       %{name}-mod_dav.conf
47 Source14:       %{name}-mod_dir.conf
48 Source20:       %{name}-server.crt
49 Source21:       %{name}-server.key
50 Patch0:         %{name}-configdir_skip_backups.patch
51 Patch1:         %{name}-layout.patch
52 Patch2:         %{name}-suexec.patch
53 Patch3:         %{name}-nolibs.patch
54 Patch4:         %{name}-apr.patch
55 URL:            http://httpd.apache.org/
56 BuildRequires:  automake
57 BuildRequires:  apr-devel >= 1:0.9.4-1
58 BuildRequires:  apr-util-devel >= 1:0.9.5-0.3
59 BuildRequires:  db-devel
60 BuildRequires:  expat-devel
61 BuildRequires:  gdbm-devel >= 1.8.3
62 BuildRequires:  libtool >= 1.5
63 %{!?_without_ldap:BuildRequires:        openldap-devel}
64 %{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.7c}
65 %{!?_without_ssl:BuildRequires: openssl-tools >= 0.9.7c}
66 BuildRequires:  perl-devel >= 5.004
67 BuildRequires:  rpm-perlprov >= 4.0.4
68 BuildRequires:  zlib-devel
69 PreReq:         perl-base
70 PreReq:         rc-scripts
71 Requires(pre):  /bin/id
72 Requires(pre):  /usr/bin/getgid
73 Requires(pre):  /usr/sbin/groupadd
74 Requires(pre):  /usr/sbin/useradd
75 Requires(postun):       /usr/sbin/userdel
76 Requires(postun):       /usr/sbin/groupdel
77 Requires(post,preun):   /sbin/chkconfig
78 Requires(post,postun):  /sbin/ldconfig
79 Requires(post): fileutils
80 Requires:       apr-util >= 1:0.9.4-1
81 Requires:       /etc/mime.types
82 Requires:       mailcap
83 Requires:       psmisc >= 20.1
84 Provides:       httpd = %{version}
85 Provides:       webserver = %{version}
86 Provides:       apache(modules-api) = %{_apache_modules_api}
87 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88 Obsoletes:      apache-extra
89 Obsoletes:      apache-doc
90 Obsoletes:      apache6
91 Obsoletes:      apache1
92 Obsoletes:      indexhtml
93
94 %define         _sysconfdir     /etc/httpd
95 %define         _includedir     %{_prefix}/include/apache
96 %define         _datadir        /home/services/httpd
97 %define         _libexecdir     %{_libdir}/apache
98
99 %description
100 Apache is a powerful, full-featured, efficient and freely-available
101 Web server. Apache is also the most popular Web server on the
102 Internet.
103
104 %description -l de
105 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
106 erhältlich und weit verbreitet ist.
107
108 %description -l es
109 El servidor web Apache es el mejor servidor gratuito disponible en el
110 mundo UNIX hoy. Usa HTTP (HyperText Transfer Protocol) para permitir
111 que browsers web vean documentos y sometan datos remotamente. Puede
112 ejecutar varias funciones diferentes, incluyendo funciones de proxy y
113 caché, y nos ofrece características como monitor de estado, conversión
114 dinámica de tipo, y otras más.
115
116 %description -l fr
117 Apache est un serveur Web puissant, efficace, gratuit et complet.
118 Apache est aussi le serveur Web le plus populaire sur Internet.
119
120 %description -l pl
121 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet
122 bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet.
123
124 %description -l pt_BR
125 O servidor web Apache é o melhor servidor gratuito disponível no mundo
126 UNIX hoje. Ele usa HTTP (HyperText Transfer Protocol) para permitir
127 que browsers web vejam documentos e submetam dados remotamente. Ele
128 pode executar várias funções diferentes, incluindo funções de proxy e
129 cache, e oferece características como monitor de status, conversão
130 dinâmica de tipo, e mais.
131
132 %description -l ru
133 Apache - ÍÏÝÎÙÊ, ÆÕÎËÃÉÏÎÁÌØÎÙÊ, ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ É Ó×ÏÂÏÄÎÏ
134 ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ×ÅÂ-ÓÅÒ×ÅÒ.
135
136 %description -l tr
137 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web
138 sunucusudur.
139
140 %package suexec
141 Summary:        Apache suexec wrapper
142 Summary(pl):    Wrapper suexec do serwera WWW Apache
143 Group:          Development/Tools
144 Requires:       %{name} = %{version}
145
146 %description suexec
147 The suEXEC feature provides Apache users the ability to run CGI and
148 SSI programs under user IDs different from the user ID of the calling
149 web-server. Normally, when a CGI or SSI program executes, it runs as
150 the same user who is running the web server.
151
152 %description suexec -l pl
153 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z
154 innym UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s±
155 wykonywane jako taki sam u¿ytkownik jak serwer WWW.
156
157 %package index
158 Summary:        Apache index.html* files
159 Summary(pl):    Pliki Apache index.html*
160 Group:          Documentation
161 Requires:       %{name} = %{version}
162
163 %description index
164 Apache index.html* files.
165
166 %description index -l pl
167 Pliki Apache index.html*.
168
169 %package devel
170 Summary:        Module development tools for the Apache web server
171 Summary(es):    Archivos de inclusión del Apache para desarrollo de módulos
172 Summary(fr):    Les outils de developpement de modules pour le serveur web Apache
173 Summary(pl):    Pliki nag³ówkowe do tworzenia modu³ów rozszerzeñ do serwera WWW Apache
174 Summary(pt_BR): Arquivos de inclusão do Apache para desenvolvimento de módulos
175 Summary(ru):    óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
176 Group:          Networking/Utilities
177 Requires:       %{name} = %{version}
178 Requires:       apr-util-devel >= 1:0.9.4
179 Requires:       libtool
180 Obsoletes:      %{name}-static
181
182 %description devel
183 The apache-devel package contains header files for Apache.
184
185 %description devel -l es
186 Este paquete contiene los archivos de inclusión para el Apache, bien
187 como el utilitario apxs para la construcción de objetos compartidos
188 dinámicos (DSOs). Ha ce falta instalar este paquete si deseas compilar
189 o desarrollar módulos adicionales para Apache.
190
191 %description devel -l fr
192 Le package apache-devel contient le code source pour le serveur Web
193 Apache et le binaire APXS dont vous aurez besoin pour construire des
194 Objets Dynamiques Partages (DSOs) pour Apache.
195
196 %description devel -l pl
197 Pliki nag³ówkowe i inne zasoby niezbêdne przy budowaniu modu³ów DSO
198 (Dynamic Shared Objects) dla Apache.
199
200 %description devel -l ru
201 óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache.
202
203 %description devel -l pt_BR
204 Este pacote contem os arquivos de inclusão para o Apache, bem como o
205 utilitário apxs para a construção de objetos compartilhados dinâmicos
206 (DSOs). Este pacote precisa ser instalado se você deseja compilar ou
207 desenvolver módulos adicionais para o Apache.
208
209 %package mod_actions
210 Summary:        Apache module for run CGI whenever a file of a certain type is requested
211 Summary(pl):    Modu³ Apache'a do uruchamiania skryptów CGI
212 Group:          Networking/Daemons
213 Requires:       %{name} = %{version}
214
215 %description mod_actions
216 This package contains mod_actions module. This module lets you run CGI
217 scripts whenever a file of a certain type is requested. This makes it
218 much easier to execute scripts that process files.
219
220 %description mod_actions -l pl
221 Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
222 ¿±danie pobrania pliku okre¶lonego typu.
223
224 %package mod_auth
225 Summary:        Apache module with user authentication using textual files
226 Summary(pl):    Modu³ Apache'a identyfikuj±cy u¿ytkowników na podstawie plików tekstowych
227 Group:          Networking/Daemons
228 Requires:       %{name} = %{version}
229
230 %description mod_auth
231 This package contains mod_auth module. It provides for user
232 authentication using textual files.
233
234 %description mod_auth -l pl
235 Ten pakiet zawiera modu³ mod_auth. S³u¿y on do sprawdzania to¿samo¶ci
236 u¿ytkowników na podstawie plików tekstowych.
237
238 %package mod_auth_anon
239 Summary:        Apache module with "anonymous" user access authentication
240 Summary(pl):    Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkownika "anonimowego"
241 Group:          Networking/Daemons
242 Requires:       %{name} = %{version}
243
244 %description mod_auth_anon
245 This package contains mod_auth_anon module. It allows "anonymous" user
246 access to authenticated areas. It does access control in a manner
247 similar to anonymous-ftp sites; i.e. have a 'magic' user id
248 'anonymous' and the email address as a password. These email addresses
249 can be logged. Combined with other (database) access control methods,
250 this allows for effective user tracking and customization according to
251 a user profile while still keeping the site open for 'unregistered'
252 users. One advantage of using Auth-based user tracking is that, unlike
253 magic-cookies and funny URL pre/postfixes, it is completely browser
254 independent and it allows users to share URLs.
255
256 %description mod_auth_anon -l pl
257 Ten modu³ oferuje autoryzacjê u¿ytkownika "anonimowego" podobnie do
258 anonimowych serwerów FTP (u¿ytkownik "anonymous" oraz has³o w postaci
259 adresu pocztowego u¿ytkownika).
260
261 %package mod_auth_ldap
262 Summary:        Apache module with LDAP user access authentication
263 Summary(pl):    Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
264 Group:          Networking/Daemons
265 Requires:       %{name} = %{version}
266
267 %description mod_auth_ldap
268 Apache module with LDAP user access authentication.
269
270 %description mod_auth_ldap -l pl
271 Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
272
273 %package mod_auth_dbm
274 Summary:        Apache module with user authentication which uses DBM files
275 Summary(pl):    Modu³ Apache'a z mechanizmem identyfikacji korzystaj±cym z plików DBM
276 Group:          Networking/Daemons
277 Obsoletes:      %{name}-mod_auth_db
278 Requires:       %{name} = %{version}
279
280 %description mod_auth_dbm
281 This module provides for HTTP Basic Authentication, where the
282 usernames and passwords are stored in DBM type database files. It is
283 an alternative to the plain text password files provided by mod_auth.
284
285 %description mod_auth_dbm -l pl
286 Ten modu³ udostêpnia Prost± Autoryzacjê HTTP, gdzie u¿ytkownicy oraz
287 ich has³a s± trzymane w plikach bazy typu DBM.
288
289 %package mod_auth_digest
290 Summary:        Apache user authentication module using MD5 Digest Authentication
291 Summary(pl):    Modu³ Apache'a do autoryzacji MD5
292 Group:          Networking/Daemons
293 Obsoletes:      apache-mod_digest
294 Requires:       %{name} = %{version}
295
296 %description mod_auth_digest
297 This package contains mod_digest module. It provides user
298 authentication using MD5 Digest Authentication.
299
300 %description mod_auth_digest -l pl
301 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
302 Authentication.
303
304 %package mod_cache
305 Summary:        Content cache keyed to URIs
306 Summary(pl):    Pamiêæ podrêczna wg klucza URI
307 Group:          Networking/Daemons
308 Requires:       %{name} = %{version}
309
310 %description mod_cache
311 mod_cache implements an RFC 2616 compliant HTTP content cache that can
312 be used to cache either local or proxied content. Two storage
313 management modules are included in the base Apache distribution:
314 mod_disk_cache implements a disk based storage manager (generally used
315 for proxy caching) and mod_mem_cache implements an in-memory based
316 storage manager (primarily useful for caching local content).
317
318 %description mod_cache -l pl
319 Implementacja zgodnej z RFC 2616 pamiêci podrêcznej, która mo¿e byæ
320 u¿ywana do zapamiêtywania zawarto¶ci lokalnej lub dostêpnej przez
321 proxy. Do³±czono dwa modu³y pozwalaj±ce magazynowaæ dane w pamiêci
322 (g³ównie u¿yteczne przy cacheowaniu lokalnej zawarto¶ci) oraz na dysku
323 (u¿ywane do cacheowania proxy).
324
325 %package mod_cgid
326 Summary:        Execution of CGI scripts using an external CGI daemon
327 Summary(pl):    Uruchamianie zewnêtrznych skryptów CGI za pomoc± daemona CGI
328 Group:          Networking/Daemons
329 Requires:       %{name} = %{version}
330
331 %description mod_cgid
332 Execution of CGI scripts using an external CGI daemon.
333
334 %description mod_cgid -l pl
335 Uruchamianie zewnêtrznych skryptów CGI za pomoc± demona CGI.
336
337 %package mod_charset_lite
338 Summary:        Specify character set translation or recoding
339 Summary(pl):    Translacja lub przekodowywanie znaków
340 Group:          Networking/Daemons
341 Requires:       %{name} = %{version}
342
343 %description mod_charset_lite
344 Specify character set translation or recoding.
345
346 %description mod_charset_lite -l pl
347 Translacja lub przekodowywanie znaków.
348
349 %package mod_dav
350 Summary:        Apache module - Distributed Authoring and Versioning
351 Summary(pl):    Modu³ Apache'a - rozproszone autorstwo i wersjonowanie
352 Group:          Networking/Daemons
353 Requires:       %{name} = %{version}
354
355 %description mod_dav
356 This module provides class 1 and class 2 WebDAV ('Web-based
357 Distributed Authoring and Versioning') functionality for Apache. This
358 extension to the HTTP protocol allows creating, moving, copying, and
359 deleting resources and collections on a remote web server.
360
361 %description mod_dav -l pl
362 Modu³ udostêpnia klasê 1 oraz klasê 2 WebDAV (Bazuj±cego na WWW
363 rozproszonego autorstwa i wersjonowania). To rozszerzenie HTTP pozwala
364 na tworzenie, przesuwanie, kopiowanie oraz kasowanie zasobów na
365 zdalnym serwerze WWW.
366
367 %package mod_deflate
368 Summary:        Apache module: Compress content before it is delivered to the client
369 Summary(pl):    Modu³ Apache'a kompresuj±cy dane przed przes³aniem ich do klienta
370 Group:          Networking/Daemons
371 Requires:       %{name} = %{version}
372
373 %description mod_deflate
374 Compress content before it is delivered to the client.
375
376 %description mod_deflate -l pl
377 Modu³ kompresuj±cy dane przed przes³aniem ich do klienta.
378
379 %package mod_dir
380 Summary:        Apache module for "trailing slash" redirects and serving directory index files
381 Summary(pl):    Modu³ Apache'a oferuj±cy przekierowania i udostêpnianie informacji o zawarto¶ci katalogu
382 Group:          Networking/Daemons
383 Requires:       %{name} = %{version}
384
385 %description mod_dir
386 This package contains mod_dir which provides "trailing slash"
387 redirects and serving directory index files.
388
389 %description mod_dir -l pl
390 Modu³ oferuj±cy przekierowania i udostêpnianie informacji o zawarto¶ci
391 katalogu.
392
393 %package mod_headers
394 Summary:        Apache module allows for the customization of HTTP response headers
395 Summary(pl):    Modu³ Apache'a pozwalaj±cy na modyfikacjê nag³ówków HTTP
396 Group:          Networking/Daemons
397 Requires:       %{name} = %{version}
398
399 %description mod_headers
400 This package contains mod_headers module. The module allows for the
401 customization of HTTP response headers. Headers can be merged,
402 replaced or removed.
403
404 %description mod_headers -l pl
405 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
406 wysy³anych do przegl±darki.
407
408 %package mod_imap
409 Summary:        Apache module with imap-file handler
410 Summary(pl):    Modu³ Apache'a z obs³ug± imap-file
411 Group:          Networking/Daemons
412 Requires:       %{name} = %{version}
413
414 %description mod_imap
415 This package contains mod_imap module. It provides for .map files,
416 replacing the functionality of the imagemap CGI program. Any directory
417 or document type configured to use the handler imap-file.
418
419 %description mod_imap -l pl
420 Modu³ umo¿liwiaj±cy obs³ugê plików .map (imap-file handler).
421
422 %package mod_info
423 Summary:        Apache module with comprehensive overview of the server configuration
424 Summary(pl):    Modu³ Apache'a udostêpniaj±cy informacje o serwerze
425 Group:          Networking/Daemons
426 Requires:       %{name} = %{version}
427
428 %description mod_info
429 This package contains mod_info module. It provides a comprehensive
430 overview of the server configuration including all installed modules
431 and directives in the configuration files.
432
433 %description mod_info -l pl
434 Modu³ udostêpniaj±cy informacje o konfiguracji serwera,
435 zainstalowanych modu³ach itp.
436
437 %package mod_ldap
438 Summary:        Apache module to use LDAP connections
439 Summary(pl):    Modu³ Apache'a umo¿liwiaj±cy korzystanie z po³±czeñ LDAP
440 Group:          Networking/Daemons
441 Requires:       %{name} = %{version}
442
443 %description mod_ldap
444 Apache module to use LDAP connections.
445
446 %description mod_ldap -l pl
447 Modu³ Apache'a umo¿liwiaj±cy korzystanie z po³±czeñ LDAP.
448
449 %package mod_proxy
450 Summary:        Apache module with Web proxy
451 Summary(pl):    Modu³ Apache'a dodaj±cy obs³ugê serwera proxy
452 Group:          Networking/Daemons
453 Requires:       %{name} = %{version}
454
455 %description mod_proxy
456 This package contains module with implementation a proxy/cache for
457 Apache. It implements proxying capability for FTP, CONNECT (for SSL),
458 HTTP/0.9, HTTP/1.0 and HTTP/1.1. The module can be configured to
459 connect to other proxy modules for these and other protocols.
460
461 %description mod_proxy -l pl
462 Modu³ zawiera implementacjê serwera proxy/cache dla Apache.
463 Implementacja zawiera obs³ugê FTP, CONNECT (dla SSL), HTTP/0.9,
464 HTTP/1.0 i HTTP/1.1.
465
466 %package mod_rewrite
467 Summary:        Apache module with rule-based engine for rewrite requested URLs on the fly
468 Summary(pl):    Modu³ Apache'a do "przepisywania" adresów URL w locie
469 Group:          Networking/Daemons
470 Requires:       %{name} = %{version}
471
472 %description mod_rewrite
473 This package contains It provides a rule-based rewriting engine to
474 rewrite requested URLs on the fly.
475
476 %description mod_rewrite -l pl
477 Modu³ oferuj±cy mo¿liwo¶æ "przepisywania" adresów URL w locie.
478
479 %package mod_ssl
480 Summary:        SSL/TLS module for the Apache HTTP server
481 Summary(pl):    Modu³ SSL/TSL dla serwera Apache
482 Summary(ru):    íÏÄÕÌØ SSL/TLS ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
483 Group:          Networking/Daemons
484 Epoch:          1
485 Requires:       %{name} = %{version}
486
487 %description mod_ssl
488 The mod_ssl module provides strong cryptography for the Apache Web
489 server via the Secure Sockets Layer (SSL) and Transport Layer Security
490 (TLS) protocols.
491
492 %description mod_ssl -l pl
493 Modu³ mod_ssl udostêpnia wsparcie do silnej kryptografii dla serwera
494 Apache poprzez protoko³y SSL/TSL (Secure Sockets Layer/Transport Layer
495 Security).
496
497 %description mod_ssl -l ru
498 íÏÄÕÌØ mod_ssl ÏÂÅÓÐÅÞÉ×ÁÅÔ ÐÏÄÄÅÒÖËÕ × ×ÅÂ-ÓÅÒ×ÅÒÅ Apache ÎÁÄÅÖÎÏÇÏ
499 ÛÉÆÒÏ×ÁÎÉÑ ÓÒÅÄÓÔ×ÁÍÉ Secure Sockets Layer (SSL) É Transport Layer
500
501 %package mod_status
502 Summary:        Server status report module for Apache
503 Summary(pl):    Modu³ udostêpniaj±cy informacje statystyczne z serwera Apache
504 Group:          Networking/Daemons
505 Requires:       %{name} = %{version}
506
507 %description mod_status
508 The Status module allows a server administrator to find out how well
509 their server is performing. A HTML page is presented that gives the
510 current server statistics in an easily readable form. If required this
511 page can be made to automatically refresh (given a compatible
512 browser).
513
514 %description mod_status -l pl
515 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
516 pracy serwera apache (w postaci strony HTML).
517
518 %package mod_usertrack
519 Summary:        Apache module for user tracking using cookies
520 Summary(pl):    Modu³ Apache'a s³u¿±cy do ¶ledzenia "ciasteczek"
521 Group:          Networking/Daemons
522 Requires:       %{name} = %{version}
523
524 %description mod_usertrack
525 This package contains the user tracking module which did its own
526 logging using CookieLog directory. This module allow multiple log
527 files.
528
529 %description mod_usertrack -l pl
530 Modu³ pozwalaj±cy na ¶ledzenie "ciasteczek".
531
532 %package mod_vhost_alias
533 Summary:        Apache module for dynamically configured mass virtual hosting
534 Summary(pl):    Modu³ Apache'a dodaj±cy obs³ugê hostów wirtualnych
535 Group:          Networking/Daemons
536 Requires:       %{name} = %{version}
537
538 %description mod_vhost_alias
539 This package contains the mod_vhost_alias. It provides support for
540 dynamically configured mass virtual hosting.
541
542 %description mod_vhost_alias -l pl
543 Modu³ umo¿liwia na dynamiczne konfigurowanie masowej ilo¶ci serwerów
544 wirtualnych.
545
546 %package mod_unique_id
547 Summary:        Apache module which provides a magic token for each request
548 Summary(pl):    Modu³ Apache'a nadaj±cy ka¿demu zapytaniu unikalny token
549 Group:          Networking/Daemons
550 Requires:       %{name} = %{version}
551
552 %description mod_unique_id
553 This package contains the mod_unique_id. This module provides a magic
554 token for each request which is guaranteed to be unique across "all"
555 requests under very specific conditions. The unique identifier is even
556 unique across multiple machines in a properly configured cluster of
557 machines. The environment variable UNIQUE_ID is set to the identifier
558 for each request. Unique identifiers are useful for various reasons
559 which are beyond the scope of this document.
560
561 %description mod_unique_id -l pl
562 Modu³ nadaje ka¿demu zapytaniu token unikalny w ramach wszystkich
563 zapytañ, nawet w ramach poprawnie skonfigurowanego klastra z wielu
564 maszyn. Modu³ ustawia przy ka¿dym zapytaniu zmienn± ¶rodowiskow±
565 UNIQUE_ID.
566
567 %package mod_expires
568 Summary:        Apache module which generates Expires HTTP headers
569 Summary(pl):    Modu³ Apache'a generuj±cy nag³ówki HTTP Expires
570 Group:          Networking/Daemons
571 Requires:       %{name} = %{version}
572
573 %description mod_expires
574 This module controls the setting of the Expires HTTP header in server
575 responses. The expiration date can set to be relative to either the
576 time the source file was last modified, or to the time of the client
577 access.
578
579 %description mod_expires -l pl
580 Modu³ kontroluje ustawianie nag³ówka HTTP Expires. Data wyga¶niêcia
581 wa¿no¶ci mo¿e byæ ustalana w zale¿no¶ci od czasu modyfikacji plików
582 ¼ród³owych lub odwo³ania klienta.
583
584 %package mod_file_cache
585 Summary:        Apache module: caches a static list of files in memory
586 Summary(pl):    Modu³ Apache'a cache'uj±cy statyczn± listê plików w pamiêci
587 Group:          Networking/Daemons
588 Obsoletes:      %{name}-mmap_static
589 Requires:       %{name} = %{version}
590
591 %description mod_file_cache
592 Caches a static list of files in memory.
593
594 %description mod_file_cache -l pl
595 Modu³ cache'uj±cy statyczn± listê plików w pamiêci.
596
597 %prep
598 %setup -q -n httpd-%{version}
599 %patch0 -p1
600 %patch1 -p1
601 %patch2 -p1
602 %patch3 -p1
603 %patch4 -p1
604
605 %build
606 # sanity check
607 MODULES_API=`awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' include/ap_mmn.h`
608 if [ "$MODULES_API" != "%_apache_modules_api" ]; then
609         echo "Set %%_apache_modules_api to $MODILES_API and rerun."
610         exit 1
611 fi
612 ./buildconf
613 # Before configure; fix location of build dir in generated apxs
614 %{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/apache/build:g" \
615         support/apxs.in
616 install /usr/share/automake/config.* build/
617 %configure \
618         --prefix=%{_libexecdir} \
619         --enable-layout=PLD \
620         --enable-modules=all \
621         --enable-mods-shared=all \
622         --enable-auth-anon       \
623         --enable-auth-dbm \
624         --enable-auth-digest \
625         --enable-file-cache \
626         --enable-echo \
627         --enable-cache \
628         --enable-charset-lite \
629         --enable-mem-cache \
630         --enable-disk-cache \
631         --enable-ext-filter \
632         --enable-case-filter \
633         --enable-case-filter-in \
634         --enable-deflate \
635         --with-z=%{_prefix} \
636         --enable-mime-magic \
637         --enable-cern-meta \
638         --enable-expires \
639         --enable-headers \
640         --enable-usertrack \
641         --enable-unique-id \
642         --enable-proxy \
643         --enable-proxy-connect \
644         --enable-proxy-ftp \
645         --enable-proxy-http \
646         %{!?_without_ssl:--enable-ssl} \
647         --enable-optional-hook-export \
648         --enable-optional-hook-import \
649         --enable-optional-fn-import \
650         --enable-optional-fn-export \
651         %{!?_without_ldap:--enable-ldap} \
652         %{!?_without_ldap:--enable-auth-ldap} \
653         --enable-dav \
654         --enable-info \
655         --enable-suexec \
656         --enable-cgi \
657         --enable-cgid \
658         --enable-dav-fs \
659         --enable-vhost-alias \
660         --enable-speling \
661         --enable-rewrite \
662         --enable-so \
663         --with-mpm=worker \
664         --with-suexec-bin=%{_sbindir}/suexec \
665         --with-suexec-caller=http \
666         --with-suexec-docroot=%{_datadir} \
667         --with-suexec-logfile=/var/log/httpd/suexec_log \
668         --with-suexec-uidmin=500 \
669         --with-suexec-gidmin=500 \
670         --with-suexec-umask=077 \
671         --with-apr=%{_bindir} \
672         --with-apr-util=%{_bindir}
673
674 %{__make}
675
676 %install
677 rm -rf $RPM_BUILD_ROOT
678 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
679         $RPM_BUILD_ROOT%{_var}/{log/{httpd,archiv/httpd},{run,cache}/apache}
680
681 %{__make} install \
682         DESTDIR=$RPM_BUILD_ROOT \
683         installbuilddir=%{_sysconfdir}/build \
684         prefix=%{_sysconfdir}/httpd \
685         libexecdir=%{_libdir}/%{name} \
686         iconsdir=%{_datadir}/icons \
687         errordir=%{_datadir}/error \
688         htdocsdir=%{_datadir}/html \
689         manualdir=%{_datadir}/manual \
690         cgidir=%{_datadir}/cgi-bin \
691         runtimedir=%{_var}/run \
692         logdir=%{_var}/log/httpd \
693         proxycachedir=%{_var}/cache/httpd
694
695 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
696 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
697
698 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/build \
699         $RPM_BUILD_ROOT%{_libexecdir}/build
700
701 perl -pi -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
702 perl -pi -e "s#$RPM_BUILD_DIR#%{_usrsrc}#g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
703 perl -pi -e "s#-pthread#-lpthread#g" $RPM_BUILD_ROOT%{_libdir}/lib*.la
704 perl -pi -e 's#/etc/httpd/build#%{_libexecdir}/build#g' $RPM_BUILD_ROOT%{_libexecdir}/build/*
705 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_libexecdir}/build/libtool
706 ln -sf %{_libexecdir}/build $RPM_BUILD_ROOT%{_sysconfdir}/build
707
708 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
709 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
710 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
711
712 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer,suexec}_log
713
714 %if %{?_without_ssl:0}%{!?_without_ssl:1}
715 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ssl
716 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.crt
717 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.key
718 %endif
719
720 CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/"
721
722 install %{SOURCE6}  $CFG/10_httpd.conf
723 install %{SOURCE8}  $CFG/20_mod_vhost_alias.conf
724 install %{SOURCE9}  $CFG/25_mod_status.conf
725 install %{SOURCE10} $CFG/30_mod_proxy.conf
726 install %{SOURCE11} $CFG/35_mod_info.conf
727 install %{SOURCE12} $CFG/40_mod_ssl.conf
728 install %{SOURCE13} $CFG/45_mod_dav.conf
729 install %{SOURCE14} $CFG/59_mod_dir.conf
730
731 echo "LoadModule ldap_module       %{_libexecdir}/mod_ldap.so" > $CFG/49_mod_ldap.conf
732 echo "LoadModule actions_module       %{_libexecdir}/mod_actions.so" > $CFG/50_mod_actions.conf
733 echo "LoadModule auth_module          %{_libexecdir}/mod_auth.so" > $CFG/51_mod_auth.conf
734 echo "LoadModule auth_anon_module     %{_libexecdir}/mod_auth_anon.so" > $CFG/52_mod_auth_anon.conf
735 echo "LoadModule auth_dbm_module      %{_libexecdir}/mod_auth_dbm.so" > $CFG/53_mod_auth_dbm.conf
736 echo "LoadModule auth_digest_module   %{_libexecdir}/mod_auth_digest.so" > $CFG/54_mod_auth_digest.conf
737 echo "LoadModule cache_module         %{_libexecdir}/mod_cache.so
738 LoadModule mem_cache_module     %{_libexecdir}/mod_mem_cache.so
739 LoadModule disk_cache_module    %{_libexecdir}/mod_disk_cache.so" > $CFG/55_mod_cache.conf
740 echo "LoadModule cgid_module          %{_libexecdir}/mod_cgid.so" > $CFG/56_mod_cgid.conf
741 echo "LoadModule charset_lite_module  %{_libexecdir}/mod_charset_lite.so" > $CFG/57_mod_charset_lite.conf
742 echo "LoadModule deflate_module       %{_libexecdir}/mod_deflate.so" > $CFG/58_mod_deflate.conf
743 echo "LoadModule auth_ldap_module     %{_libexecdir}/mod_auth_ldap.so" > $CFG/59_mod_auth_ldap.conf
744 echo "LoadModule expires_module       %{_libexecdir}/mod_expires.so" > $CFG/60_mod_expires.conf
745 echo "LoadModule file_cache_module    %{_libexecdir}/mod_file_cache.so" > $CFG/61_mod_file_cache.conf
746 echo "LoadModule headers_module       %{_libexecdir}/mod_headers.so" > $CFG/62_mod_headers.conf
747 echo "LoadModule imap_module          %{_libexecdir}/mod_imap.so" > $CFG/63_mod_imap.conf
748 echo "LoadModule rewrite_module       %{_libexecdir}/mod_rewrite.so" > $CFG/64_mod_rewrite.conf
749 echo "LoadModule usertrack_module     %{_libexecdir}/mod_usertrack.so" > $CFG/65_mod_usertrack.conf
750 echo "LoadModule unique_id_module     %{_libexecdir}/mod_unique_id.so" > $CFG/66_mod_unique_id.conf
751
752 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
753
754 %clean
755 rm -rf $RPM_BUILD_ROOT
756
757 %pre
758 if [ -n "`getgid http`" ]; then
759         if [ "`getgid http`" != "51" ]; then
760                 echo "Error: group http doesn't have gid=51. Correct this before installing apache." 1>&2
761                 exit 1
762         fi
763 else
764         /usr/sbin/groupadd -g 51 -r -f http
765 fi
766 if [ -n "`id -u http 2>/dev/null`" ]; then
767         if [ "`id -u http`" != "51" ]; then
768                 echo "Error: user http doesn't have uid=51. Correct this before installing apache." 1>&2
769                 exit 1
770         fi
771 else
772         /usr/sbin/useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
773 fi
774
775 %post
776 /sbin/ldconfig
777 /sbin/chkconfig --add httpd
778 umask 137
779 touch /var/log/httpd/{access,error,agent,referer}_log
780 if [ -f /var/lock/subsys/httpd ]; then
781         /etc/rc.d/init.d/httpd restart 1>&2
782 else
783         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
784 fi
785
786 %preun
787 if [ "$1" = "0" ]; then
788         if [ -f /var/lock/subsys/httpd ]; then
789                 /etc/rc.d/init.d/httpd stop 1>&2
790         fi
791         /sbin/chkconfig --del httpd
792 fi
793
794 %postun
795 /sbin/ldconfig
796 if [ "$1" = "0" ]; then
797         /usr/sbin/userdel http
798         /usr/sbin/groupdel http
799 fi
800
801 %post mod_actions
802 if [ -f /var/lock/subsys/httpd ]; then
803         /etc/rc.d/init.d/httpd restart 1>&2
804 else
805         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
806 fi
807
808 %preun mod_actions
809 if [ "$1" = "0" ]; then
810         if [ -f /var/lock/subsys/httpd ]; then
811                 /etc/rc.d/init.d/httpd restart 1>&2
812         fi
813 fi
814
815 %post mod_auth
816 if [ -f /var/lock/subsys/httpd ]; then
817         /etc/rc.d/init.d/httpd restart 1>&2
818 else
819         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
820 fi
821
822 %preun mod_auth
823 if [ "$1" = "0" ]; then
824         if [ -f /var/lock/subsys/httpd ]; then
825                 /etc/rc.d/init.d/httpd restart 1>&2
826         fi
827 fi
828
829 %post mod_auth_anon
830 if [ -f /var/lock/subsys/httpd ]; then
831         /etc/rc.d/init.d/httpd restart 1>&2
832 else
833         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
834 fi
835
836 %preun mod_auth_anon
837 if [ "$1" = "0" ]; then
838         if [ -f /var/lock/subsys/httpd ]; then
839                 /etc/rc.d/init.d/httpd restart 1>&2
840         fi
841 fi
842
843 %post mod_auth_dbm
844 if [ -f /var/lock/subsys/httpd ]; then
845         /etc/rc.d/init.d/httpd restart 1>&2
846 else
847         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
848 fi
849
850 %preun mod_auth_dbm
851 if [ "$1" = "0" ]; then
852         if [ -f /var/lock/subsys/httpd ]; then
853                 /etc/rc.d/init.d/httpd restart 1>&2
854         fi
855 fi
856
857 %post mod_cache
858 if [ -f /var/lock/subsys/httpd ]; then
859         /etc/rc.d/init.d/httpd restart 1>&2
860 else
861         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
862 fi
863
864 %preun mod_cache
865 if [ "$1" = "0" ]; then
866         if [ -f /var/lock/subsys/httpd ]; then
867                 /etc/rc.d/init.d/httpd restart 1>&2
868         fi
869 fi
870
871 %post mod_cgid
872 if [ -f /var/lock/subsys/httpd ]; then
873         /etc/rc.d/init.d/httpd restart 1>&2
874 else
875         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
876 fi
877
878 %preun mod_cgid
879 if [ "$1" = "0" ]; then
880         if [ -f /var/lock/subsys/httpd ]; then
881                 /etc/rc.d/init.d/httpd restart 1>&2
882         fi
883 fi
884
885 %post mod_charset_lite
886 if [ -f /var/lock/subsys/httpd ]; then
887         /etc/rc.d/init.d/httpd restart 1>&2
888 else
889         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
890 fi
891
892 %preun mod_charset_lite
893 if [ "$1" = "0" ]; then
894         if [ -f /var/lock/subsys/httpd ]; then
895                 /etc/rc.d/init.d/httpd restart 1>&2
896         fi
897 fi
898
899 %post mod_dav
900 if [ -f /var/lock/subsys/httpd ]; then
901         /etc/rc.d/init.d/httpd restart 1>&2
902 else
903         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
904 fi
905
906 %preun mod_dav
907 if [ "$1" = "0" ]; then
908         if [ -f /var/lock/subsys/httpd ]; then
909                 /etc/rc.d/init.d/httpd restart 1>&2
910         fi
911 fi
912
913 %post mod_auth_digest
914 if [ -f /var/lock/subsys/httpd ]; then
915         /etc/rc.d/init.d/httpd restart 1>&2
916 else
917         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
918 fi
919
920 %preun mod_auth_digest
921 if [ "$1" = "0" ]; then
922         if [ -f /var/lock/subsys/httpd ]; then
923                 /etc/rc.d/init.d/httpd restart 1>&2
924         fi
925 fi
926
927 %post mod_deflate
928 if [ -f /var/lock/subsys/httpd ]; then
929         /etc/rc.d/init.d/httpd restart 1>&2
930 else
931         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
932 fi
933
934 %preun mod_deflate
935 if [ "$1" = "0" ]; then
936         if [ -f /var/lock/subsys/httpd ]; then
937                 /etc/rc.d/init.d/httpd restart 1>&2
938         fi
939 fi
940
941 %post mod_dir
942 if [ -f /var/lock/subsys/httpd ]; then
943         /etc/rc.d/init.d/httpd restart 1>&2
944 else
945         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
946 fi
947
948 %preun mod_dir
949 if [ "$1" = "0" ]; then
950         if [ -f /var/lock/subsys/httpd ]; then
951                 /etc/rc.d/init.d/httpd restart 1>&2
952         fi
953 fi
954
955 %post mod_expires
956 if [ -f /var/lock/subsys/httpd ]; then
957         /etc/rc.d/init.d/httpd restart 1>&2
958 else
959         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
960 fi
961
962 %preun mod_expires
963 if [ "$1" = "0" ]; then
964         if [ -f /var/lock/subsys/httpd ]; then
965                 /etc/rc.d/init.d/httpd restart 1>&2
966         fi
967 fi
968
969 %post mod_file_cache
970 if [ -f /var/lock/subsys/httpd ]; then
971         /etc/rc.d/init.d/httpd restart 1>&2
972 else
973         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
974 fi
975
976 %preun mod_file_cache
977 if [ "$1" = "0" ]; then
978         if [ -f /var/lock/subsys/httpd ]; then
979                 /etc/rc.d/init.d/httpd restart 1>&2
980         fi
981 fi
982
983 %post mod_headers
984 if [ -f /var/lock/subsys/httpd ]; then
985         /etc/rc.d/init.d/httpd restart 1>&2
986 else
987         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
988 fi
989
990 %preun mod_headers
991 if [ "$1" = "0" ]; then
992         if [ -f /var/lock/subsys/httpd ]; then
993                 /etc/rc.d/init.d/httpd restart 1>&2
994         fi
995 fi
996
997 %post mod_imap
998 if [ -f /var/lock/subsys/httpd ]; then
999         /etc/rc.d/init.d/httpd restart 1>&2
1000 else
1001         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1002 fi
1003
1004 %preun mod_imap
1005 if [ "$1" = "0" ]; then
1006         if [ -f /var/lock/subsys/httpd ]; then
1007                 /etc/rc.d/init.d/httpd restart 1>&2
1008         fi
1009 fi
1010
1011 %post mod_info
1012 if [ -f /var/lock/subsys/httpd ]; then
1013         /etc/rc.d/init.d/httpd restart 1>&2
1014 else
1015         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1016 fi
1017
1018 %preun mod_info
1019 if [ "$1" = "0" ]; then
1020         if [ -f /var/lock/subsys/httpd ]; then
1021                 /etc/rc.d/init.d/httpd restart 1>&2
1022         fi
1023 fi
1024
1025 %post mod_proxy
1026 if [ -f /var/lock/subsys/httpd ]; then
1027         /etc/rc.d/init.d/httpd restart 1>&2
1028 else
1029         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1030 fi
1031
1032 %preun mod_proxy
1033 if [ "$1" = "0" ]; then
1034         if [ -f /var/lock/subsys/httpd ]; then
1035                 /etc/rc.d/init.d/httpd restart 1>&2
1036         fi
1037 fi
1038
1039 %post mod_rewrite
1040 if [ -f /var/lock/subsys/httpd ]; then
1041         /etc/rc.d/init.d/httpd restart 1>&2
1042 else
1043         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1044 fi
1045
1046 %preun mod_rewrite
1047 if [ "$1" = "0" ]; then
1048         if [ -f /var/lock/subsys/httpd ]; then
1049                 /etc/rc.d/init.d/httpd restart 1>&2
1050         fi
1051 fi
1052
1053 %post mod_ssl
1054 if [ -f /var/lock/subsys/httpd ]; then
1055         /etc/rc.d/init.d/httpd restart 1>&2
1056 else
1057         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1058 fi
1059
1060 %preun mod_ssl
1061 if [ "$1" = "0" ]; then
1062         if [ -f /var/lock/subsys/httpd ]; then
1063                 /etc/rc.d/init.d/httpd restart 1>&2
1064         fi
1065 fi
1066
1067 %post mod_status
1068 if [ -f /var/lock/subsys/httpd ]; then
1069         /etc/rc.d/init.d/httpd restart 1>&2
1070 else
1071         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1072 fi
1073
1074 %preun mod_status
1075 if [ "$1" = "0" ]; then
1076         if [ -f /var/lock/subsys/httpd ]; then
1077                 /etc/rc.d/init.d/httpd restart 1>&2
1078         fi
1079 fi
1080
1081 %post mod_usertrack
1082 if [ -f /var/lock/subsys/httpd ]; then
1083         /etc/rc.d/init.d/httpd restart 1>&2
1084 else
1085         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1086 fi
1087
1088 %preun mod_usertrack
1089 if [ "$1" = "0" ]; then
1090         if [ -f /var/lock/subsys/httpd ]; then
1091                 /etc/rc.d/init.d/httpd restart 1>&2
1092         fi
1093 fi
1094
1095 %post mod_unique_id
1096 if [ -f /var/lock/subsys/httpd ]; then
1097         /etc/rc.d/init.d/httpd restart 1>&2
1098 else
1099         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1100 fi
1101
1102 %preun mod_unique_id
1103 if [ "$1" = "0" ]; then
1104         if [ -f /var/lock/subsys/httpd ]; then
1105                 /etc/rc.d/init.d/httpd restart 1>&2
1106         fi
1107 fi
1108
1109 %post mod_vhost_alias
1110 if [ -f /var/lock/subsys/httpd ]; then
1111         /etc/rc.d/init.d/httpd restart 1>&2
1112 else
1113         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1114 fi
1115
1116 %preun mod_vhost_alias
1117 if [ "$1" = "0" ]; then
1118         if [ -f /var/lock/subsys/httpd ]; then
1119                 /etc/rc.d/init.d/httpd restart 1>&2
1120         fi
1121 fi
1122
1123 %files
1124 %defattr(644,root,root,755)
1125 %doc ABOUT_APACHE CHANGES README
1126 %doc docs/conf/mime.types
1127
1128 %attr(754,root,root) /etc/rc.d/init.d/httpd
1129
1130 %attr(750,root,root) %dir %{_sysconfdir}
1131 %attr(750,root,root) %dir %{_sysconfdir}/httpd.conf
1132 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_httpd.conf
1133 %attr(640,root,root) %{_sysconfdir}/magic
1134 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
1135 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
1136
1137 %dir %{_libexecdir}
1138 %attr(755,root,root) %{_libexecdir}/mod_access.so
1139 %attr(755,root,root) %{_libexecdir}/mod_alias.so
1140 %attr(755,root,root) %{_libexecdir}/mod_asis.so
1141 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
1142 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
1143 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
1144 %attr(755,root,root) %{_libexecdir}/mod_env.so
1145 %attr(755,root,root) %{_libexecdir}/mod_include.so
1146 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
1147 %attr(755,root,root) %{_libexecdir}/mod_mime.so
1148 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
1149 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
1150 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
1151 %attr(755,root,root) %{_libexecdir}/mod_speling.so
1152 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
1153
1154 # look at TODO on top
1155 %attr(755,root,root) %{_libexecdir}/mod_case_filter.so
1156 %attr(755,root,root) %{_libexecdir}/mod_case_filter_in.so
1157 %attr(755,root,root) %{_libexecdir}/mod_echo.so
1158 %attr(755,root,root) %{_libexecdir}/mod_ext_filter.so
1159 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_export.so
1160 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_import.so
1161 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_export.so
1162 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_import.so
1163
1164 %attr(755,root,root) %{_sbindir}/htdigest
1165
1166 %attr(755,root,root) %{_sbindir}/ab
1167 %attr(755,root,root) %{_sbindir}/apachectl
1168 %attr(755,root,root) %{_sbindir}/apxs
1169 %attr(755,root,root) %{_sbindir}/checkgid
1170 %attr(755,root,root) %{_sbindir}/httpd
1171 %attr(755,root,root) %{_sbindir}/logresolve
1172 %attr(755,root,root) %{_sbindir}/rotatelogs
1173 %attr(755,root,root) %{_sbindir}/envvars*
1174
1175 %dir %attr(770,root,http) /var/run/apache
1176
1177 %{_mandir}/man1/htdigest.1*
1178 %{_mandir}/man8/*
1179
1180 %attr(750,root,root) %dir /var/log/httpd
1181 %attr(750,root,root) %dir /var/log/archiv/httpd
1182 %attr(640,root,root) %ghost /var/log/httpd/*
1183
1184 %dir %{_datadir}
1185 %dir %{_datadir}/manual
1186 %{_datadir}/manual/LICENSE
1187 %{_datadir}/manual/*.xml
1188 %{_datadir}/manual/*.html.en
1189 %lang(ja) %{_datadir}/manual/*.html.ja.jis
1190 %lang(ja) %{_datadir}/manual/*.xml.ja
1191 %lang(ko) %{_datadir}/manual/*.html.ko.euc-kr
1192 %lang(de) %{_datadir}/manual/*.html.de
1193 %lang(fr) %{_datadir}/manual/*.html.fr
1194 %{_datadir}/manual/developer
1195 %{_datadir}/manual/faq
1196 %dir %{_datadir}/manual/howto
1197 %doc %{_datadir}/manual/howto/*.en
1198 %lang(ja) %{_datadir}/manual/howto/*.ja.jis
1199 %dir %{_datadir}/manual/images
1200 %{_datadir}/manual/images/[achips]*
1201 %{_datadir}/manual/misc
1202 %dir %{_datadir}/manual/mod
1203 %{_datadir}/manual/mod/[cdfhipw]*.html.en
1204 %{_datadir}/manual/mod/[acd]*.xml
1205 %lang(ja) %{_datadir}/manual/mod/[ad]*.xml.ja*
1206 %lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
1207 %lang(ja) %{_datadir}/manual/mod/index.xml.ja
1208 %{_datadir}/manual/mod/index.xml
1209 %{_datadir}/manual/mod/mpm*.html.en
1210 %{_datadir}/manual/mod/mod_access.html.en
1211 %{_datadir}/manual/mod/mod_alias.html.en
1212 %{_datadir}/manual/mod/mod_asis.html.en
1213 %{_datadir}/manual/mod/mod_autoindex.html.en
1214 %{_datadir}/manual/mod/mod_cern_meta.html.en
1215 %{_datadir}/manual/mod/mod_cgi.html.en
1216 %{_datadir}/manual/mod/mod_env.html.en
1217 %{_datadir}/manual/mod/mod_include.html.en
1218 %{_datadir}/manual/mod/mod_log_config.html.en
1219 %{_datadir}/manual/mod/mod_mime*.html.en
1220 %{_datadir}/manual/mod/mod_negotiation.html.en
1221 %{_datadir}/manual/mod/mod_setenvif.html.en
1222 %{_datadir}/manual/mod/mod_speling.html.en
1223 %{_datadir}/manual/mod/mod_userdir.html.en
1224 %{_datadir}/manual/platform
1225 %{_datadir}/manual/programs
1226 %dir %{_datadir}/manual/search
1227 %doc%attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
1228 %{_datadir}/manual/style
1229
1230 %attr(755,root,root) %dir %{_datadir}/html
1231 %{_datadir}/icons
1232 %attr(755,root,root) %{_datadir}/cgi-bin
1233
1234 %{_datadir}/error
1235
1236 %files suexec
1237 %defattr(644,root,root,755)
1238 %attr(4755,root,root) %{_sbindir}/suexec
1239 %attr(755,root,root) %{_libexecdir}/mod_suexec.so
1240 %{_datadir}/manual/mod/mod_suexec.html.en
1241
1242 %files index
1243 %defattr(644,root,root,755)
1244 %config(noreplace,missingok) %{_datadir}/html/index.html*
1245 %{_datadir}/html/*.gif
1246 %{_datadir}/html/*.png
1247
1248 %files devel
1249 %defattr(644,root,root,755)
1250 %{_includedir}
1251 %{_libexecdir}/*.exp
1252 %attr(755,root,root) %dir %{_libexecdir}/build
1253 %attr(644,root,root) %{_libexecdir}/build/*.mk
1254 %attr(755,root,root) %{_libexecdir}/build/*.sh
1255 %attr(755,root,root) %{_libexecdir}/build/libtool
1256
1257 %files mod_actions
1258 %defattr(644,root,root,755)
1259 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_actions.conf
1260 %attr(755,root,root) %{_libexecdir}/mod_actions.so
1261 %{_datadir}/manual/mod/mod_actions.html.en
1262
1263 %files mod_auth
1264 %defattr(644,root,root,755)
1265 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
1266 %attr(755,root,root) %{_libexecdir}/mod_auth.so
1267 %attr(755,root,root) %{_sbindir}/htpasswd
1268 %{_datadir}/manual/mod/mod_auth.html.en
1269 %{_mandir}/man1/htpasswd.1*
1270
1271 %files mod_auth_anon
1272 %defattr(644,root,root,755)
1273 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_anon.conf
1274 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
1275 %{_datadir}/manual/mod/mod_auth_anon.html.en
1276
1277 %if %{!?_without_ldap:1}%{?_without_ldap:0}
1278 %files mod_auth_ldap
1279 %defattr(644,root,root,755)
1280 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_ldap.conf
1281 %attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so
1282 %{_datadir}/manual/mod/mod_auth_ldap.html.en
1283 %endif
1284
1285 %if %{!?_without_ldap:1}%{?_without_ldap:0}
1286 %files mod_ldap
1287 %defattr(644,root,root,755)
1288 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ldap.conf
1289 %attr(755,root,root) %{_libexecdir}/mod_ldap.so
1290 %{_datadir}/manual/mod/mod_ldap.html.en
1291 %endif
1292
1293 %files mod_auth_dbm
1294 %defattr(644,root,root,755)
1295 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_dbm.conf
1296 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
1297 %attr(755,root,root) %{_sbindir}/dbmmanage
1298 %attr(755,root,root) %{_sbindir}/htdbm
1299 %{_datadir}/manual/mod/mod_auth_dbm.html.en
1300 %{_mandir}/man1/dbmmanage.1*
1301
1302 %files mod_auth_digest
1303 %defattr(644,root,root,755)
1304 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_digest.conf
1305 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
1306 %{_datadir}/manual/mod/mod_auth_digest.html.en
1307
1308 %files mod_cache
1309 %defattr(644,root,root,755)
1310 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cache.conf
1311 %attr(755,root,root) %{_libexecdir}/mod_cache.so
1312 %attr(755,root,root) %{_libexecdir}/mod_disk_cache.so
1313 %attr(755,root,root) %{_libexecdir}/mod_mem_cache.so
1314 %{_datadir}/manual/mod/mod_cache.html.en
1315
1316 %files mod_cgid
1317 %defattr(644,root,root,755)
1318 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cgid.conf
1319 %attr(755,root,root) %{_libexecdir}/mod_cgid.so
1320 %{_datadir}/manual/mod/mod_cgid.html.en
1321
1322 %files mod_charset_lite
1323 %defattr(644,root,root,755)
1324 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_charset_lite.conf
1325 %attr(755,root,root) %{_libexecdir}/mod_charset_lite.so
1326 %{_datadir}/manual/mod/mod_charset_lite.html.en
1327
1328 %files mod_dav
1329 %defattr(644,root,root,755)
1330 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dav.conf
1331 %attr(755,root,root) %{_libexecdir}/mod_dav*.so
1332 %{_datadir}/manual/mod/mod_dav*.html.en
1333
1334 %files mod_deflate
1335 %defattr(644,root,root,755)
1336 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_deflate.conf
1337 %attr(755,root,root) %{_libexecdir}/mod_deflate.so
1338 %{_datadir}/manual/mod/mod_deflate.html.en
1339
1340 %files mod_dir
1341 %defattr(644,root,root,755)
1342 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dir.conf
1343 %attr(755,root,root) %{_libexecdir}/mod_dir.so
1344 %{_datadir}/manual/mod/mod_dir.html.en
1345
1346 %files mod_expires
1347 %defattr(644,root,root,755)
1348 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_expires.conf
1349 %attr(755,root,root) %{_libexecdir}/mod_expires.so
1350 %{_datadir}/manual/mod/mod_expires.html.en
1351
1352 %files mod_file_cache
1353 %defattr(644,root,root,755)
1354 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_file_cache.conf
1355 %attr(755,root,root) %{_libexecdir}/mod_file_cache.so
1356 %{_datadir}/manual/mod/mod_file_cache.html.en
1357
1358 %files mod_headers
1359 %defattr(644,root,root,755)
1360 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_headers.conf
1361 %attr(755,root,root) %{_libexecdir}/mod_headers.so
1362 %{_datadir}/manual/mod/mod_headers.html.en
1363
1364 %files mod_imap
1365 %defattr(644,root,root,755)
1366 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_imap.conf
1367 %attr(755,root,root) %{_libexecdir}/mod_imap.so
1368 %{_datadir}/manual/mod/mod_imap.html.en
1369
1370 %files mod_info
1371 %defattr(644,root,root,755)
1372 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_info.conf
1373 %attr(755,root,root) %{_libexecdir}/mod_info.so
1374 %{_datadir}/manual/mod/mod_info.html.en
1375
1376 %files mod_proxy
1377 %defattr(644,root,root,755)
1378 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_proxy.conf
1379 %attr(755,root,root) %{_libexecdir}/mod_proxy*.so
1380 %doc %{_datadir}/manual/mod/mod_proxy*.html.en
1381 %attr(770,root,http) /var/cache/apache
1382
1383 %files mod_rewrite
1384 %defattr(644,root,root,755)
1385 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
1386 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_rewrite.conf
1387 %{_datadir}/manual/mod/mod_rewrite.html.en
1388 %{_datadir}/manual/images/mod_rewrite*
1389
1390 %if %{!?_without_ssl:1}%{?_without_ssl:0}
1391 %files mod_ssl
1392 %defattr(644,root,root,755)
1393 %attr(750,root,root) %dir %{_sysconfdir}/ssl
1394 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssl/server.*
1395 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ssl.conf
1396 %attr(755,root,root) %{_libexecdir}/mod_ssl.so
1397 %{_datadir}/manual/ssl
1398 %{_datadir}/manual/mod/mod_ssl.html.en
1399 %endif
1400
1401 %files mod_status
1402 %defattr(644,root,root,755)
1403 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_status.conf
1404 %attr(755,root,root) %{_libexecdir}/mod_status.so
1405 %{_datadir}/manual/mod/mod_status.html.en
1406
1407 %files mod_usertrack
1408 %defattr(644,root,root,755)
1409 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_usertrack.conf
1410 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
1411 %{_datadir}/manual/mod/mod_usertrack.html.en
1412
1413 %files mod_unique_id
1414 %defattr(644,root,root,755)
1415 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_unique_id.conf
1416 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
1417 %{_datadir}/manual/mod/mod_unique_id.html.en
1418
1419 %files mod_vhost_alias
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
1422 %{_datadir}/manual/mod/mod_vhost_alias.html.en
1423 %{_datadir}/manual/vhosts
1424 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
This page took 0.139836 seconds and 4 git commands to generate.