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