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