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