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