]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
- todo security
[packages/apache.git] / apache.spec
index 3bd2f8d1590dfb239bdd60fa82295cf91c2dbdba..1a61a7d9f6e05a5507b00ee99690043f269c2b6d 100644 (file)
@@ -1,4 +1,5 @@
 # TODO:
+# - security http://security.gentoo.org/glsa/glsa-200508-15.xml
 # - mod_case_filter
 # - mod_case_filter_in
 # - mod_optional_fn_{export,import}
@@ -7,17 +8,20 @@
 # - mod_echo
 # - config examples for mod_*
 # - check if all modules are (de)registered in %%post/%%postun
-# - find smart way to deregister module if its moved from main package to subpackage (maybe test -f ?)
+# - find smart way to deregister module if its moved from main package
+#   to subpackage (maybe test -f ?)
 # - add %%post/%%postun to suexec
 # - --with-suexec-gidmin=500 or =100 ?
 # - --with-suexec-uidmin=500 or =1000 ?
 # - subpackages for MPMs
 # - check if all modules (*.so) are exactly the same for different MPMs
+# - install stage fails with distcc (make -jN)
+# - /var/run/apache is also owned by apache1.spec, so rename it to /var/run/httpd spec here (NOTE: if you fix this also adjust apache-mod_fastcgi.spec)
 #
 # Conditional build:
 %bcond_without ssl             # build without SSL support
 %bcond_without ldap            # build without LDAP support
-%bcond_without metuxmpm        # don't build METUX MPM version
+%bcond_with    external_pcre   # build with external PCRE support (Apache bug #27550)
 #
 %include       /usr/lib/rpm/macros.perl
 # this is internal macro, don't change to %%apache_modules_api
@@ -31,17 +35,18 @@ Summary(pt_BR):     Servidor HTTPD para prover servi
 Summary(ru):   óÁÍÙÊ ÐÏÐÕÌÑÒÎÙÊ ×ÅÂ-ÓÅÒ×ÅÒ
 Summary(tr):   Lider WWW tarayýcý
 Name:          apache
-Version:       2.0.50
-Release:       1
+Version:       2.0.54
+Release:       4
 License:       Apache Group License
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
-# Source0-md5: 8b251767212aebf41a13128bb70c0b41
+# Source0-md5: 772503748ffb85301385d47fb2b96eca
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}-icons.tar.gz
 # Source3-md5: 2b085cbc19fd28536dc883f0b864cd83
 Source4:       %{name}.sysconfig
+Source5:       %{name}.monitrc
 Source6:       %{name}-httpd.conf
 Source8:       %{name}-mod_vhost_alias.conf
 Source9:       %{name}-mod_status.conf
@@ -52,6 +57,7 @@ Source13:     %{name}-mod_dav.conf
 Source14:      %{name}-mod_dir.conf
 Source15:      %{name}-mod_suexec.conf
 Source16:      %{name}-mod_deflate.conf
+Source17:      %{name}-mod_autoindex.conf
 Source20:      %{name}-server.crt
 Source21:      %{name}-server.key
 Patch0:                %{name}-configdir_skip_backups.patch
@@ -61,40 +67,47 @@ Patch3:             %{name}-nolibs.patch
 Patch4:                %{name}-apr.patch
 # project homepage http://www.metux.de/mpm/en/?patpage=index
 # http://www.sannes.org/metuxmpm/
-Patch5:                httpd-2.0.47-metuxmpm-r7.diff
+Patch5:                httpd-2.0.48-metuxmpm-r8.patch
+# what about this? it isn't applied...
 Patch6:                httpd-2.0.40-xfsz.patch
 Patch7:                httpd-2.0.45-davetag.patch
 Patch8:                httpd-2.0.45-encode.patch
 Patch9:                httpd-2.0.45-export.patch
 Patch10:       httpd-2.0.46-dav401dest.patch
 Patch11:       httpd-2.0.46-md5dig.patch
-Patch12:       httpd-2.0.46-rolog.patch
-Patch13:       httpd-2.0.46-shmcb.patch
-Patch14:       httpd-2.0.46-sslmutex.patch
-Patch15:       httpd-2.0.47-sslcleanup.patch
-Patch16:       httpd-2.0.48-corelimit.patch
-Patch17:       httpd-2.0.48-debuglog.patch
-Patch18:       httpd-2.0.48-dynlimit.patch
-Patch19:       httpd-2.0.48-fdsetsize.patch
-Patch20:       httpd-2.0.48-sslpphrase.patch
-Patch21:       %{name}-v6only-ENOPROTOOPT.patch
-Patch22:       %{name}-conffile-path.patch
+Patch12:       httpd-2.0.46-sslmutex.patch
+Patch13:       httpd-2.0.47-sslcleanup.patch
+Patch14:       httpd-2.0.48-corelimit.patch
+Patch15:       httpd-2.0.48-debuglog.patch
+Patch16:       httpd-2.0.48-dynlimit.patch
+Patch17:       httpd-2.0.48-sslpphrase.patch
+Patch18:       %{name}-v6only-ENOPROTOOPT.patch
+Patch19:       %{name}-conffile-path.patch
+Patch20:       %{name}-apxs.patch
+# http://www.telana.com/peruser.php
+Patch21:       httpd-2.0.50-peruser-r3.patch
+Patch22:       %{name}-apr1.patch
+Patch23:       %{name}-normalize-path.patch
+# http://issues.apache.org/bugzilla/attachment.cgi?id=13377 external pcre
+Patch24:       %{name}2-pcre-patch.diff
 URL:           http://httpd.apache.org/
 BuildRequires: automake
-BuildRequires: apr-devel >= 1:0.9.5-6
-BuildRequires: apr-util-devel >= 1:0.9.5-5
+BuildRequires: apr-devel >= 1:1.0.0
+BuildRequires: apr-util-devel >= 1:1.0.0
 BuildRequires: db-devel
 BuildRequires: expat-devel
 BuildRequires: gdbm-devel >= 1.8.3
-BuildRequires: libtool >= 1.5
+BuildRequires: libtool >= 2:1.5
 %{?with_ldap:BuildRequires:    openldap-devel}
 %{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
 %{?with_ssl:BuildRequires:     openssl-tools >= 0.9.7d}
+%{?with_external_pcre:BuildRequires:   pcre-devel}
 BuildRequires: perl-devel >= 1:5.6
 BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.202
 BuildRequires: zlib-devel
 PreReq:                perl-base
-PreReq:                rc-scripts
+PreReq:                rc-scripts >= 0.4.0.15
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
@@ -102,24 +115,42 @@ Requires(pre):    /usr/sbin/useradd
 Requires(postun):      /usr/sbin/userdel
 Requires(postun):      /usr/sbin/groupdel
 Requires(post,preun):  /sbin/chkconfig
-Requires(post,postun): /sbin/ldconfig
 Requires(post):        fileutils
-Requires:      apr-util >= 1:0.9.5-5
 Requires:      /etc/mime.types
+Requires:      apr >= 1:1.0.0-2
+Requires:      %{name}-apxs = %{version}-%{release}
+Requires:      FHS >= 2.3-12
 Requires:      mailcap
 Requires:      psmisc >= 20.1
-Provides:      httpd = %{version}
-Provides:      webserver = %{version}
 Provides:      apache(modules-api) = %{_apache_modules_api}
+Provides:      apache(mod_access)
+Provides:      apache(mod_alias)
+Provides:      apache(mod_asis)
+Provides:      apache(mod_autoindex)
+Provides:      apache(mod_cern_meta)
+Provides:      apache(mod_cgi)
+Provides:      apache(mod_env)
+Provides:      apache(mod_include)
+Provides:      apache(mod_log_config)
+Provides:      apache(mod_mime)
+Provides:      apache(mod_mime_magic)
+Provides:      apache(mod_negotiation)
+Provides:      apache(mod_setenvif)
+Provides:      apache(mod_speling)
+Provides:      apache(mod_userdir)
+Provides:      group(http)
+Provides:      httpd = %{version}
+Provides:      user(http)
+Provides:      webserver = apache
 Obsoletes:     apache-extra
 Obsoletes:     apache6
-Obsoletes:     indexhtml
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/httpd
 %define                _includedir     %{_prefix}/include/apache
 %define                _datadir        /home/services/httpd
 %define                _libexecdir     %{_libdir}/apache
+%define                _cgibindir      %{_prefix}/lib/cgi-bin/%{name}
 
 %description
 Apache is a powerful, full-featured, efficient and freely-available
@@ -133,7 +164,7 @@ erh
 %description -l es
 El servidor web Apache es el mejor servidor gratuito disponible en el
 mundo UNIX hoy. Usa HTTP (HyperText Transfer Protocol) para permitir
-que browsers web vean documentos y sometan datos remotamente. Puede
+que navegadores vean documentos y sometan datos remotamente. Puede
 ejecutar varias funciones diferentes, incluyendo funciones de proxy y
 caché, y nos ofrece características como monitor de estado, conversión
 dinámica de tipo, y otras más.
@@ -144,7 +175,7 @@ Apache est aussi le serveur Web le plus populaire sur Internet.
 
 %description -l pl
 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet
-bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet.
+bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci Internet.
 
 %description -l pt_BR
 O servidor web Apache é o melhor servidor gratuito disponível no mundo
@@ -165,7 +196,7 @@ sunucusudur.
 %package suexec
 Summary:       Apache suexec wrapper
 Summary(pl):   Wrapper suexec do serwera WWW Apache
-Group:         Development/Tools
+Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 
 %description suexec
@@ -184,12 +215,13 @@ Summary:  Apache index.html* files
 Summary(pl):   Pliki Apache index.html*
 Group:         Documentation
 Requires:      %{name} = %{version}-%{release}
+Obsoletes:     indexhtml
 
 %description index
 Apache index.html* files.
 
 %description index -l pl
-Pliki Apache index.html*.
+Pliki index.html* Apache'a.
 
 %package doc
 Summary:       Apache manual
@@ -203,6 +235,17 @@ Apache manual.
 %description doc -l pl
 Podrêcznik Apache'a.
 
+%package apxs
+Summary:       APache eXtenSion tool
+Summary(pl):   Narzêdzie do rozszerzania Apache'a
+Group:         Development/Tools
+
+%description apxs
+APache eXtenSion tool.
+
+%description apxs -l pl
+Narzêdzie do rozszerzania Apache'a.
 %package devel
 Summary:       Module development tools for the Apache web server
 Summary(es):   Archivos de inclusión del Apache para desarrollo de módulos
@@ -211,8 +254,8 @@ Summary(pl):        Pliki nag
 Summary(pt_BR):        Arquivos de inclusão do Apache para desenvolvimento de módulos
 Summary(ru):   óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
 Group:         Networking/Utilities
-Requires:      %{name} = %{version}-%{release}
-Requires:      apr-util-devel >= 1:0.9.5-5
+Requires:      %{name}-apxs = %{version}-%{release}
+Requires:      apr-util-devel >= 1:1.0.0
 Requires:      libtool
 Obsoletes:     apache-static
 
@@ -232,7 +275,7 @@ Objets Dynamiques Partages (DSOs) pour Apache.
 
 %description devel -l pl
 Pliki nag³ówkowe i inne zasoby niezbêdne przy budowaniu modu³ów DSO
-(Dynamic Shared Objects) dla Apache.
+(Dynamic Shared Objects) dla Apache'a.
 
 %description devel -l ru
 óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache.
@@ -247,6 +290,7 @@ desenvolver m
 Summary:       Apache module for run CGI whenever a file of a certain type is requested
 Summary(pl):   Modu³ Apache'a do uruchamiania skryptów CGI
 Group:         Networking/Daemons
+Provides:      apache(mod_actions) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_actions
@@ -262,7 +306,9 @@ Ten modu
 Summary:       Apache module with user authentication using textual files
 Summary(pl):   Modu³ Apache'a identyfikuj±cy u¿ytkowników na podstawie plików tekstowych
 Group:         Networking/Daemons
+Provides:      apache(mod_auth) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
+Requires:      htpasswd
 
 %description mod_auth
 This package contains mod_auth module. It provides for user
@@ -276,12 +322,13 @@ u
 Summary:       Apache module with "anonymous" user access authentication
 Summary(pl):   Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkownika "anonimowego"
 Group:         Networking/Daemons
+Provides:      apache(mod_auth_anon) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_auth_anon
 This package contains mod_auth_anon module. It allows "anonymous" user
 access to authenticated areas. It does access control in a manner
-similar to anonymous-ftp sites; i.e. have a 'magic' user id
+similar to anonymous FTP sites; i.e. have a 'magic' user id
 'anonymous' and the email address as a password. These email addresses
 can be logged. Combined with other (database) access control methods,
 this allows for effective user tracking and customization according to
@@ -299,19 +346,22 @@ adresu pocztowego u
 Summary:       Apache module with LDAP user access authentication
 Summary(pl):   Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
 Group:         Networking/Daemons
+Provides:      apache(mod_auth_ldap) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-mod_ldap = %{version}-%{release}
 
 %description mod_auth_ldap
 Apache module with LDAP user access authentication.
 
 %description mod_auth_ldap -l pl
-Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
+Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP.
 
 %package mod_auth_dbm
 Summary:       Apache module with user authentication which uses DBM files
 Summary(pl):   Modu³ Apache'a z mechanizmem identyfikacji korzystaj±cym z plików DBM
 Group:         Networking/Daemons
 Obsoletes:     apache-mod_auth_db
+Provides:      apache(mod_auth_dbm) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_auth_dbm
@@ -328,6 +378,7 @@ Summary:    Apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Modu³ Apache'a do autoryzacji MD5
 Group:         Networking/Daemons
 Obsoletes:     apache-mod_digest
+Provides:      apache(mod_auth_digest) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_auth_digest
@@ -338,10 +389,25 @@ authentication using MD5 Digest Authentication.
 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
 Authentication.
 
+%package mod_autoindex
+Summary:       Apache module - display index of files
+Summary(pl):   Modu³ apache do wy¶wietlania indeksu plików
+Group:         Networking/Daemons
+Provides:      apache(mod_autoindex) = %{version}-%{release}
+Requires:      %{name} = %{version}-%{release}
+
+%description mod_autoindex
+This package contains mod_autoindex module. It provides
+generation index of files.
+
+%description mod_autoindex -l pl
+Ten pakiet dostarcza modu³ autoindex, który generuje indeks plików.
+
 %package mod_cache
 Summary:       Content cache keyed to URIs
 Summary(pl):   Pamiêæ podrêczna wg klucza URI
 Group:         Networking/Daemons
+Provides:      apache(mod_cache) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_cache
@@ -356,13 +422,14 @@ storage manager (primarily useful for caching local content).
 Implementacja zgodnej z RFC 2616 pamiêci podrêcznej, która mo¿e byæ
 u¿ywana do zapamiêtywania zawarto¶ci lokalnej lub dostêpnej przez
 proxy. Do³±czono dwa modu³y pozwalaj±ce magazynowaæ dane w pamiêci
-(g³ównie u¿yteczne przy cacheowaniu lokalnej zawarto¶ci) oraz na dysku
-(u¿ywane do cacheowania proxy).
+(g³ównie u¿yteczne przy cache'owaniu lokalnej zawarto¶ci) oraz na
+dysku (u¿ywane do cache'owania proxy).
 
 %package mod_cgid
 Summary:       Execution of CGI scripts using an external CGI daemon
 Summary(pl):   Uruchamianie zewnêtrznych skryptów CGI za pomoc± daemona CGI
 Group:         Networking/Daemons
+Provides:      apache(mod_cgid) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_cgid
@@ -375,6 +442,7 @@ Uruchamianie zewn
 Summary:       Specify character set translation or recoding
 Summary(pl):   Translacja lub przekodowywanie znaków
 Group:         Networking/Daemons
+Provides:      apache(mod_charset_lite) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_charset_lite
@@ -387,6 +455,7 @@ Translacja lub przekodowywanie znak
 Summary:       Apache module - Distributed Authoring and Versioning
 Summary(pl):   Modu³ Apache'a - rozproszone autorstwo i wersjonowanie
 Group:         Networking/Daemons
+Provides:      apache(mod_dav) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_dav
@@ -405,7 +474,9 @@ zdalnym serwerze WWW.
 Summary:       Apache module: Compress content before it is delivered to the client
 Summary(pl):   Modu³ Apache'a kompresuj±cy dane przed przes³aniem ich do klienta
 Group:         Networking/Daemons
+Provides:      apache(mod_deflate) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-mod_headers = %{version}-%{release}
 
 %description mod_deflate
 Compress content before it is delivered to the client.
@@ -417,6 +488,7 @@ Modu
 Summary:       Apache module for "trailing slash" redirects and serving directory index files
 Summary(pl):   Modu³ Apache'a oferuj±cy przekierowania i udostêpnianie informacji o zawarto¶ci katalogu
 Group:         Networking/Daemons
+Provides:      apache(mod_dir) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_dir
@@ -431,6 +503,7 @@ katalogu.
 Summary:       Apache module allows for the customization of HTTP response headers
 Summary(pl):   Modu³ Apache'a pozwalaj±cy na modyfikacjê nag³ówków HTTP
 Group:         Networking/Daemons
+Provides:      apache(mod_headers) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_headers
@@ -439,13 +512,14 @@ customization of HTTP response headers. Headers can be merged,
 replaced or removed.
 
 %description mod_headers -l pl
-Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
+Modu³ pozwalaj±cy na ³±czenie, usuwanie oraz zamianê nag³ówków HTTP
 wysy³anych do przegl±darki.
 
 %package mod_imap
 Summary:       Apache module with imap-file handler
 Summary(pl):   Modu³ Apache'a z obs³ug± imap-file
 Group:         Networking/Daemons
+Provides:      apache(mod_imap) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_imap
@@ -460,6 +534,7 @@ Modu
 Summary:       Apache module with comprehensive overview of the server configuration
 Summary(pl):   Modu³ Apache'a udostêpniaj±cy informacje o serwerze
 Group:         Networking/Daemons
+Provides:      apache(mod_info) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_info
@@ -475,6 +550,7 @@ zainstalowanych modu
 Summary:       Apache module to use LDAP connections
 Summary(pl):   Modu³ Apache'a umo¿liwiaj±cy korzystanie z po³±czeñ LDAP
 Group:         Networking/Daemons
+Provides:      apache(mod_ldap) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_ldap
@@ -487,6 +563,7 @@ Modu
 Summary:       Apache module with Web proxy
 Summary(pl):   Modu³ Apache'a dodaj±cy obs³ugê serwera proxy
 Group:         Networking/Daemons
+Provides:      apache(mod_proxy) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_proxy
@@ -504,6 +581,7 @@ HTTP/1.0 i HTTP/1.1.
 Summary:       Apache module with rule-based engine for rewrite requested URLs on the fly
 Summary(pl):   Modu³ Apache'a do "przepisywania" adresów URL w locie
 Group:         Networking/Daemons
+Provides:      apache(mod_rewrite) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_rewrite
@@ -519,6 +597,7 @@ Summary(pl):        Modu
 Summary(ru):   íÏÄÕÌØ SSL/TLS ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
 Group:         Networking/Daemons
 Epoch:         1
+Provides:      apache(mod_ssl) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_ssl
@@ -539,6 +618,7 @@ Security).
 Summary:       Server status report module for Apache
 Summary(pl):   Modu³ udostêpniaj±cy informacje statystyczne z serwera Apache
 Group:         Networking/Daemons
+Provides:      apache(mod_status) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_status
@@ -550,12 +630,13 @@ browser).
 
 %description mod_status -l pl
 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
-pracy serwera apache (w postaci strony HTML).
+pracy serwera Apache (w postaci strony HTML).
 
 %package mod_usertrack
 Summary:       Apache module for user tracking using cookies
 Summary(pl):   Modu³ Apache'a s³u¿±cy do ¶ledzenia "ciasteczek"
 Group:         Networking/Daemons
+Provides:      apache(mod_usertrack) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_usertrack
@@ -570,6 +651,7 @@ Modu
 Summary:       Apache module for dynamically configured mass virtual hosting
 Summary(pl):   Modu³ Apache'a dodaj±cy obs³ugê hostów wirtualnych
 Group:         Networking/Daemons
+Provides:      apache(mod_vhost_alias) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_vhost_alias
@@ -584,6 +666,7 @@ wirtualnych.
 Summary:       Apache module which provides a magic token for each request
 Summary(pl):   Modu³ Apache'a nadaj±cy ka¿demu zapytaniu unikalny token
 Group:         Networking/Daemons
+Provides:      apache(mod_unique_id) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_unique_id
@@ -605,6 +688,7 @@ UNIQUE_ID.
 Summary:       Apache module which generates Expires HTTP headers
 Summary(pl):   Modu³ Apache'a generuj±cy nag³ówki HTTP Expires
 Group:         Networking/Daemons
+Provides:      apache(mod_expires) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_expires
@@ -623,6 +707,7 @@ Summary:    Apache module: caches a static list of files in memory
 Summary(pl):   Modu³ Apache'a cache'uj±cy statyczn± listê plików w pamiêci
 Group:         Networking/Daemons
 Obsoletes:     apache-mmap_static
+Provides:      apache(mod_file_cache) = %{version}-%{release}
 Requires:      %{name} = %{version}-%{release}
 
 %description mod_file_cache
@@ -631,6 +716,38 @@ Caches a static list of files in memory.
 %description mod_file_cache -l pl
 Modu³ cache'uj±cy statyczn± listê plików w pamiêci.
 
+%package -n htpasswd-%{name}
+Summary:       Apache 2 htpasswd utility: manage user files for basic authentication
+Summary(pl):   Narzêdzie htpasswd z Apache'a 2 do zarz±dzania plikami uwierzytelnienia basic
+Group:         Networking/Utilities
+Provides:      htpasswd
+Obsoletes:     htpasswd
+
+%description -n htpasswd-%{name}
+htpasswd is used to create and update the flat-files used to store
+usernames and password for basic authentication of HTTP users. This
+package contains htpasswd from Apache 2; this version supports
+plaintext passwords and CRYPT (default), MD5 and SHA1 encryptions.
+
+%description -n htpasswd-%{name} -l pl
+htpasswd s³u¿y do tworzenia i uaktualniania plików tekstowych
+s³u¿±cych do przechowywania nazw u¿ytkowników i hase³ do podstawowego
+uwierzytelnienia u¿ytkowników HTTP. Ten pakiet zawiera htpasswd z
+Apache'a 2; ta wersja obs³uguje has³a zapisane czystym tekstem oraz
+zakodowane algorytmami CRYPT (domy¶lnym), MD5 i SHA1.
+
+%package cgi_test
+Summary:       cgi test/demo programs
+Summary(pl):   Programy testowe/przyk³adowe cgi
+Group:         Networking/Utilities
+Requires:      %{name} = %{version}-%{release}
+
+%description cgi_test
+Two cgi test/demo programs: test-cgi and print-env.
+
+%description cgi_test -l pl
+Dwa programy testowe/przyk³adowe cgi: test-cgi and print-env.
+
 %prep
 %setup -q -n httpd-%{version}
 %patch0 -p1
@@ -638,23 +755,29 @@ Modu
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%{?with_metuxmpm:%patch5 -p1}
+%patch5 -p1
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
-#%patch12 -p1
+%patch12 -p1
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
 %patch18 -p1
-#%patch19 -p1
+%patch19 -p1
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%{?with_external_pcre:%patch24 -p2}
+
+%{__perl} -pi -e "s@/usr/local/bin/perl@%{__perl}@" $(grep -rl "/usr/local/bin/perl" *)
+%{__perl} -pi -e "s@BUILD_SUBDIRS.*@BUILD_SUBDIRS =@g" srclib/Makefile.in
+%{__perl} -pi -e "s@CLEAN_SUBDIRS.*@CLEAN_SUBDIRS =@g" srclib/Makefile.in
 
 %build
 # sanity check
@@ -664,12 +787,15 @@ if [ "$MODULES_API" != "%_apache_modules_api" ]; then
        exit 1
 fi
 ./buildconf
+rm -rf srclib/apr*
 # Before configure; fix location of build dir in generated apxs
 %{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/apache/build:g" \
        support/apxs.in
+%{__perl} -pi -e "s:apr-config:apr-1-config:g" support/apxs.in
+%{__perl} -pi -e "s:apu-config:apu-1-config:g" support/apxs.in
 install /usr/share/automake/config.* build/
 CPPFLAGS="-DMAX_SERVER_LIMIT=200000 -DBIG_SECURITY_HOLE=1"
-for mpm in %{?with_metuxmpm:metuxmpm} perchild prefork worker; do
+for mpm in metuxmpm peruser perchild prefork worker; do
 install -d "buildmpm-${mpm}"; cd "buildmpm-${mpm}"
 ../%configure \
        --prefix=%{_sysconfdir} \
@@ -733,8 +859,10 @@ install -d "buildmpm-${mpm}"; cd "buildmpm-${mpm}"
        --with-suexec-uidmin=500 \
        --with-suexec-gidmin=500 \
        --with-suexec-umask=077 \
-       --with-apr=%{_bindir} \
-       --with-apr-util=%{_bindir}
+       --with-apr=%{_bindir}/apr-1-config \
+       --with-apr-util=%{_bindir}/apu-1-config \
+       %{?with_external_pcre:--with-external-pcre}
+
 %{__make}
 ./httpd.${mpm} -l | grep -v "${mpm}" > modules-inside
 
@@ -743,7 +871,7 @@ find include -name '*.h' | xargs perl -pi -e "s#/httpd\.(.*?)\.conf#/etc/httpd/h
 cd ..
 done
 
-for mpm in %{?with_metuxmpm:metuxmpm} perchild worker; do
+for mpm in metuxmpm peruser perchild worker; do
        if ! cmp -s buildmpm-prefork/modules-inside buildmpm-${mpm}/modules-inside; then
                echo "List of compiled modules is different between prefork-MPM and ${mpm}-MPM!"
                echo "Build failed."
@@ -753,8 +881,9 @@ done
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
-       $RPM_BUILD_ROOT%{_var}/{log/{httpd,archiv/httpd},{run,cache}/apache}
+install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
+       $RPM_BUILD_ROOT%{_var}/{log/{httpd,archiv/httpd},{run,cache}/apache,lock/mod_dav} \
+       $RPM_BUILD_ROOT%{_datadir}/cgi-bin
 
 # prefork is default one
 %{__make} -C buildmpm-prefork install \
@@ -766,12 +895,12 @@ install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
        errordir=%{_datadir}/error \
        htdocsdir=%{_datadir}/html \
        manualdir=%{_datadir}/manual \
-       cgidir=%{_datadir}/cgi-bin \
+       cgidir=%{_cgibindir} \
        runtimedir=%{_var}/run \
        logdir=%{_var}/log/httpd \
        proxycachedir=%{_var}/cache/httpd
 
-for mpm in %{?with_metuxmpm:metuxmpm} perchild worker; do
+for mpm in metuxmpm peruser perchild worker; do
        install buildmpm-${mpm}/httpd.${mpm} $RPM_BUILD_ROOT%{_sbindir}/httpd.${mpm}
        ln -s httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.${mpm}.conf
 done
@@ -788,16 +917,17 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/build \
        $RPM_BUILD_ROOT%{_libexecdir}/build
 
-perl -pi -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
-perl -pi -e "s#$RPM_BUILD_DIR#%{_usrsrc}#g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
-perl -pi -e "s#-pthread#-lpthread#g" $RPM_BUILD_ROOT%{_libdir}/lib*.la
-perl -pi -e 's#/etc/httpd/build#%{_libexecdir}/build#g' $RPM_BUILD_ROOT%{_libexecdir}/build/*
+%{__perl} -pi -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
+%{__perl} -pi -e "s#$RPM_BUILD_DIR#%{_usrsrc}#g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
+%{__perl} -pi -e "s#-pthread#-lpthread#g" $RPM_BUILD_ROOT%{_libdir}/lib*.la
+%{__perl} -pi -e 's#/etc/httpd/build#%{_libexecdir}/build#g' $RPM_BUILD_ROOT%{_libexecdir}/build/*
 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_libexecdir}/build/libtool
 ln -sf %{_libexecdir}/build $RPM_BUILD_ROOT%{_sysconfdir}/build
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/httpd
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/monit
 
 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer,suexec}_log
 
@@ -819,6 +949,7 @@ install %{SOURCE13} $CFG/45_mod_dav.conf
 install %{SOURCE14} $CFG/59_mod_dir.conf
 install %{SOURCE15} $CFG/13_mod_suexec.conf
 install %{SOURCE16} $CFG/58_mod_deflate.conf
+install %{SOURCE17} $CFG/57_mod_autoindex.conf
 
 echo "LoadModule ldap_module   %{_libexecdir}/mod_ldap.so" > $CFG/49_mod_ldap.conf
 echo "LoadModule actions_module        %{_libexecdir}/mod_actions.so" > $CFG/50_mod_actions.conf
@@ -841,37 +972,36 @@ echo "LoadModule usertrack_module %{_libexecdir}/mod_usertrack.so" > $CFG/65_mod
 echo "LoadModule unique_id_module      %{_libexecdir}/mod_unique_id.so" > $CFG/66_mod_unique_id.conf
 
 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
+# let's remove trash (yes, *.html without lang suffix also contain trash)
+find $RPM_BUILD_ROOT%{_datadir}/manual -type f \
+       -name '*.xml' -o -name '*.xml.*' -o -name '*.html' \
+       | xargs rm -f
+
+# htpasswd goes to %{_bindir}
+mv $RPM_BUILD_ROOT%{_sbindir}/htpasswd $RPM_BUILD_ROOT%{_bindir}/
+ln -sf %{_bindir}/htpasswd $RPM_BUILD_ROOT%{_sbindir}/
+
+# cgi_test: create config file with ScriptAlias
+cat << EOF > $CFG/09_cgi_test.conf
+ScriptAlias /cgi-bin/printenv %{_cgibindir}/printenv
+ScriptAlias /cgi-bin/test-cgi %{_cgibindir}/test-cgi
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-if [ -n "`getgid http`" ]; then
-       if [ "`getgid http`" != "51" ]; then
-               echo "Error: group http doesn't have gid=51. Correct this before installing apache." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 51 -r -f http
-fi
-if [ -n "`id -u http 2>/dev/null`" ]; then
-       if [ "`id -u http`" != "51" ]; then
-               echo "Error: user http doesn't have uid=51. Correct this before installing apache." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
-fi
+%groupadd -g 51 http
+%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http
 
 %post
-/sbin/ldconfig
 /sbin/chkconfig --add httpd
 umask 137
 touch /var/log/httpd/{access,error,agent,referer}_log
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun
@@ -879,21 +1009,44 @@ if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd stop 1>&2
        fi
-       /sbin/chkconfig --del httpd
+       # see http://thread.gmane.org/gmane.linux.pld.devel.english/712
+       [ ! -x /sbin/chkconfig ] || /sbin/chkconfig --del httpd
 fi
 
 %postun
-/sbin/ldconfig
 if [ "$1" = "0" ]; then
-       /usr/sbin/userdel http
-       /usr/sbin/groupdel http
+       %userremove http
+       %groupremove http
+fi
+
+%triggerpostun -- %{name} <= 2.0.50-6
+%banner %{name}-2.0.50-6 << EOF
+WARNING!!!
+Since apache-2.0.50-6 autoindex module has been separated to package
+%{name}-mod_autoindex If you want to have the same functionality do:
+poldek -Uv %{name}-mod_autoindex
+EOF
+
+%triggerpostun -- %{name} < 2.0.54-4
+%banner %{name}-2.0.54-2 << EOF
+WARNING!!!
+CGI demo/test programs - printenv and test-cgi, have been released
+from package apache into separate subpackage apache-cgi_test. If you
+need printenv and/or test-cgi, please install apache-cgi_test package,
+e.g. by running poldek -Uv apache-cgi_test
+EOF
+
+# update /etc/sysconfig/apache -> httpd rename
+if [ -f /etc/sysconfig/apache.rpmsave ]; then
+       cp -f /etc/sysconfig/httpd{,.rpmnew}
+       mv -f /etc/sysconfig/{apache.rpmsave,httpd}
 fi
 
 %post mod_actions
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_actions
@@ -907,7 +1060,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth
@@ -921,7 +1074,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth_anon
@@ -935,7 +1088,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth_dbm
@@ -945,11 +1098,25 @@ if [ "$1" = "0" ]; then
        fi
 fi
 
+%post mod_autoindex
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
+fi
+
+%preun mod_autoindex
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
 %post mod_cache
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_cache
@@ -963,7 +1130,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_cgid
@@ -977,7 +1144,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_charset_lite
@@ -991,7 +1158,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_dav
@@ -1005,7 +1172,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth_digest
@@ -1019,7 +1186,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_deflate
@@ -1033,7 +1200,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_dir
@@ -1047,7 +1214,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_expires
@@ -1061,7 +1228,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_file_cache
@@ -1075,7 +1242,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_headers
@@ -1089,7 +1256,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_imap
@@ -1103,7 +1270,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_info
@@ -1117,7 +1284,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_proxy
@@ -1131,7 +1298,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_rewrite
@@ -1145,7 +1312,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_ssl
@@ -1159,7 +1326,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_status
@@ -1173,7 +1340,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_usertrack
@@ -1187,7 +1354,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_unique_id
@@ -1201,7 +1368,7 @@ fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun mod_vhost_alias
@@ -1211,6 +1378,20 @@ if [ "$1" = "0" ]; then
        fi
 fi
 
+%post cgi_test
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
+fi
+
+%preun cgi_test
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ABOUT_APACHE CHANGES README
@@ -1218,20 +1399,18 @@ fi
 
 %attr(754,root,root) /etc/rc.d/init.d/httpd
 
-%attr(750,root,root) %dir %{_sysconfdir}
 %attr(750,root,root) %dir %{_sysconfdir}/httpd.conf
 %attr(750,root,root) %dir %{_sysconfdir}/modules
 %attr(750,root,root) %dir %{_sysconfdir}/run
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_httpd.conf
 %attr(640,root,root) %{_sysconfdir}/magic
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
-%attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/httpd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
+%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/*.monitrc
 
-%dir %{_libexecdir}
 %attr(755,root,root) %{_libexecdir}/mod_access.so
 %attr(755,root,root) %{_libexecdir}/mod_alias.so
 %attr(755,root,root) %{_libexecdir}/mod_asis.so
-%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
 %attr(755,root,root) %{_libexecdir}/mod_env.so
 
 %attr(755,root,root) %{_sbindir}/ab
 %attr(755,root,root) %{_sbindir}/apachectl
-%attr(755,root,root) %{_sbindir}/apxs
 %attr(755,root,root) %{_sbindir}/checkgid
 %attr(755,root,root) %{_sbindir}/httpd
 %attr(755,root,root) %{_sbindir}/httpd.*
 %attr(755,root,root) %{_sbindir}/logresolve
 %attr(755,root,root) %{_sbindir}/rotatelogs
-%attr(755,root,root) %{_sbindir}/envvars*
 
 %dir %attr(770,root,http) /var/run/apache
+%dir %attr(770,root,http) /var/cache/apache
 
 %{_mandir}/man1/htdigest.1*
-%{_mandir}/man8/*
+%{_mandir}/man8/ab.8*
+%{_mandir}/man8/apachectl.8*
+%{_mandir}/man8/httpd.8*
+%{_mandir}/man8/logresolve.8*
+%{_mandir}/man8/rotatelogs.8*
 
-%attr(750,root,root) %dir /var/log/httpd
-%attr(750,root,root) %dir /var/log/archiv/httpd
-%attr(640,root,root) %ghost /var/log/httpd/*
+%attr(2750,root,logs) %dir /var/log/httpd
+%attr(2750,root,logs) %dir /var/log/archiv/httpd
+%attr(640,root,logs) %ghost /var/log/httpd/*
 
 %dir %{_datadir}
 
-%attr(755,root,root) %dir %{_datadir}/html
+%dir %{_datadir}/cgi-bin
+%dir %{_datadir}/html
 %{_datadir}/icons
-%attr(755,root,root) %{_datadir}/cgi-bin
-
 %{_datadir}/error
 
 %files doc
 %defattr(644,root,root,755)
 %dir %{_datadir}/manual
 %{_datadir}/manual/LICENSE
-%{_datadir}/manual/*.xml
 %{_datadir}/manual/*.html.en
-%lang(ja) %{_datadir}/manual/*.html.ja.jis
-%lang(ja) %{_datadir}/manual/*.xml.ja
-%lang(ko) %{_datadir}/manual/*.html.ko.euc-kr
 %lang(de) %{_datadir}/manual/*.html.de
+%lang(es) %{_datadir}/manual/*.html.es
 %lang(fr) %{_datadir}/manual/*.html.fr
-%{_datadir}/manual/developer
-%{_datadir}/manual/faq
+%lang(ja) %{_datadir}/manual/*.html.ja*
+%lang(ko) %{_datadir}/manual/*.html.ko.euc-kr
+%lang(ru) %{_datadir}/manual/*.html.ru.koi8-r
+%dir %{_datadir}/manual/developer
+%{_datadir}/manual/developer/*.html.en
+%lang(ja) %{_datadir}/manual/developer/*.html.ja*
+%dir %{_datadir}/manual/faq
+%{_datadir}/manual/faq/*.html.en
+%lang(ko) %{_datadir}/manual/faq/*.html.ko.euc-kr
 %dir %{_datadir}/manual/howto
-%doc %{_datadir}/manual/howto/*.en
-%lang(ja) %{_datadir}/manual/howto/*.ja.jis
+%{_datadir}/manual/howto/*.html.en
+%lang(ja) %{_datadir}/manual/howto/*.html.ja*
+%lang(ko) %{_datadir}/manual/howto/*.html.ko.euc-kr
 %dir %{_datadir}/manual/images
-%{_datadir}/manual/images/[achips]*
-%{_datadir}/manual/misc
+%{_datadir}/manual/images/[!m]*
+%dir %{_datadir}/manual/misc
+%{_datadir}/manual/misc/*.html.en
+%lang(ko) %{_datadir}/manual/misc/*.html.ko.euc-kr
 %dir %{_datadir}/manual/mod
-%{_datadir}/manual/mod/[cdfhipw]*.html.en
-%{_datadir}/manual/mod/[acd]*.xml
-%lang(ja) %{_datadir}/manual/mod/[ad]*.xml.ja*
-%lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
-%lang(ja) %{_datadir}/manual/mod/index.xml.ja
-%{_datadir}/manual/mod/index.xml
-%{_datadir}/manual/mod/mpm*.html.en
+%{_datadir}/manual/mod/[cdfhilpqtw]*.html.en
+%lang(de) %{_datadir}/manual/mod/[cdfhilpqtw]*.html.de
+%lang(es) %{_datadir}/manual/mod/[cdfhilpqtw]*.html.es
+%lang(ja) %{_datadir}/manual/mod/[cdfhilpqtw]*.html.ja*
+%lang(ko) %{_datadir}/manual/mod/[cdfhilpqtw]*.html.ko.euc-kr
+%lang(ru) %{_datadir}/manual/mod/[cdfhilpqtw]*.html.ru.koi8-r
+%{_datadir}/manual/mod/module-dict.html.en
+%lang(ja) %{_datadir}/manual/mod/module-dict.html.ja*
+%lang(ko) %{_datadir}/manual/mod/module-dict.html.ko.euc-kr
+%{_datadir}/manual/mod/mpm_common.html.en
+%lang(de) %{_datadir}/manual/mod/mpm_common.html.de
+%lang(es) %{_datadir}/manual/mod/mpm_common.html.es
+%lang(ja) %{_datadir}/manual/mod/mpm_common.html.ja*
 %{_datadir}/manual/mod/mod_access.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_access.html.ja*
 %{_datadir}/manual/mod/mod_alias.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_alias.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_alias.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_asis.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_asis.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_asis.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_autoindex.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_autoindex.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_autoindex.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_cern_meta.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_cern_meta.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_cgi.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_cgi.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_cgi.html.ko.euc-kr
+%{_datadir}/manual/mod/mod_echo.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_echo.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_echo.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_env.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_env.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_env.html.ko.euc-kr
+%{_datadir}/manual/mod/mod_ext_filter.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_ext_filter.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_include.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_include.html.ja*
 %{_datadir}/manual/mod/mod_log_config.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_log_config.html.ja.euc-jp
+%lang(ko) %{_datadir}/manual/mod/mod_log_config.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_log_forensic.html.en
 %{_datadir}/manual/mod/mod_mime*.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_mime*.html.ja*
 %{_datadir}/manual/mod/mod_negotiation.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_negotiation.html.ja*
 %{_datadir}/manual/mod/mod_setenvif.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_setenvif.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_setenvif.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_speling.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_speling.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_speling.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_userdir.html.en
-%{_datadir}/manual/platform
-%{_datadir}/manual/programs
-%{_datadir}/manual/style
+%lang(ja) %{_datadir}/manual/mod/mod_userdir.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_userdir.html.ko.euc-kr
+%dir %{_datadir}/manual/programs
+%{_datadir}/manual/programs/*.html.en
+%lang(es) %{_datadir}/manual/programs/*.html.es
+%lang(ko) %{_datadir}/manual/programs/*.html.ko.euc-kr
+%lang(ru) %{_datadir}/manual/programs/*.html.ru.koi8-r
+%dir %{_datadir}/manual/style
+%{_datadir}/manual/style/css
 
 %{_datadir}/manual/mod/mod_suexec.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_suexec.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_suexec.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_actions.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_actions.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_actions.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_auth.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_auth.html.ja*
 %{_datadir}/manual/mod/mod_auth_anon.html.en
 %{_datadir}/manual/mod/mod_auth_ldap.html.en
 %{_datadir}/manual/mod/mod_ldap.html.en
 %{_datadir}/manual/mod/mod_auth_dbm.html.en
 %{_datadir}/manual/mod/mod_auth_digest.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_auth_digest.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_cache.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_cache.html.ko.euc-kr
+%{_datadir}/manual/mod/mod_disk_cache.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_disk_cache.html.ko.euc-kr
+%{_datadir}/manual/mod/mod_mem_cache.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_mem_cache.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_cgid.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_cgid.html.ja.euc-jp
+%lang(ko) %{_datadir}/manual/mod/mod_cgid.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_charset_lite.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_charset_lite.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_dav*.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_dav*.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_dav*.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_deflate.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_deflate.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_deflate.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_dir.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_dir.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_dir.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_expires.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_expires.html.ja.euc-jp
+%lang(ko) %{_datadir}/manual/mod/mod_expires.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_file_cache.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_file_cache.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_headers.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_headers.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_imap.html.en
+%lang(ko) %{_datadir}/manual/mod/mod_imap.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_info.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_info.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_info.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_proxy*.html.en
 %{_datadir}/manual/mod/mod_rewrite.html.en
+%{_datadir}/manual/mod/mod_so.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_so.html.ja.euc-jp
+%lang(ko) %{_datadir}/manual/mod/mod_so.html.ko.euc-kr
 %{_datadir}/manual/images/mod_rewrite*
-%{_datadir}/manual/ssl
+%dir %{_datadir}/manual/rewrite
+%{_datadir}/manual/rewrite/index.html.en
+%{_datadir}/manual/rewrite/rewrite_guide.html.en
+%{_datadir}/manual/rewrite/rewrite_guide_advanced.html.en
+%{_datadir}/manual/rewrite/rewrite_intro.html.en
+%{_datadir}/manual/rewrite/rewrite_tech.html.en
+%dir %{_datadir}/manual/ssl
+%{_datadir}/manual/ssl/*.html.en
+%lang(ja) %{_datadir}/manual/ssl/*.html.ja*
 %{_datadir}/manual/mod/mod_ssl.html.en
 %{_datadir}/manual/mod/mod_status.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_status.html.ja.euc-jp
+%lang(ko) %{_datadir}/manual/mod/mod_status.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_usertrack.html.en
 %{_datadir}/manual/mod/mod_unique_id.html.en
+%lang(ja) %{_datadir}/manual/mod/mod_unique_id.html.ja*
+%lang(ko) %{_datadir}/manual/mod/mod_unique_id.html.ko.euc-kr
 %{_datadir}/manual/mod/mod_vhost_alias.html.en
-%{_datadir}/manual/vhosts
+%dir %{_datadir}/manual/vhosts
+%{_datadir}/manual/vhosts/*.html.en
+%lang(de) %{_datadir}/manual/vhosts/*.html.de
+%lang(es) %{_datadir}/manual/vhosts/*.html.es
+%lang(ja) %{_datadir}/manual/vhosts/*.html.ja*
+%lang(ko) %{_datadir}/manual/vhosts/*.html.ko.euc-kr
+%lang(ru) %{_datadir}/manual/vhosts/*.html.ru.koi8-r
 
 %files suexec
 %defattr(644,root,root,755)
 %attr(4755,root,root) %{_sbindir}/suexec
 %attr(755,root,root) %{_libexecdir}/mod_suexec.so
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_suexec.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_suexec.conf
+%{_mandir}/man8/suexec.8*
 
 %files index
 %defattr(644,root,root,755)
@@ -1372,50 +1647,57 @@ fi
 %{_datadir}/html/*.gif
 %{_datadir}/html/*.png
 
+%files apxs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/apxs
+%attr(755,root,root) %{_sbindir}/envvars*
+%attr(751,root,root) %dir %{_sysconfdir}
+%dir %{_libexecdir}
+%dir %{_libexecdir}/build
+%{_libexecdir}/build/config_vars.mk
+%{_mandir}/man8/apxs.8*
+
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}
 %{_libexecdir}/*.exp
 %attr(750,root,root) %dir %{_sysconfdir}/build
-%attr(755,root,root) %dir %{_libexecdir}/build
-%attr(644,root,root) %{_libexecdir}/build/*.mk
+%{_libexecdir}/build/[lprs]*.mk
 %attr(755,root,root) %{_libexecdir}/build/*.sh
 %attr(755,root,root) %{_libexecdir}/build/libtool
 
 %files mod_actions
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_actions.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_actions.conf
 %attr(755,root,root) %{_libexecdir}/mod_actions.so
 
 %files mod_auth
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth.so
-%attr(755,root,root) %{_sbindir}/htpasswd
-%{_mandir}/man1/htpasswd.1*
 
 %files mod_auth_anon
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_anon.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_auth_anon.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
 
 %if %{with ldap}
 %files mod_auth_ldap
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_ldap.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_auth_ldap.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so
 %endif
 
 %if %{with ldap}
 %files mod_ldap
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ldap.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_ldap.conf
 %attr(755,root,root) %{_libexecdir}/mod_ldap.so
 %endif
 
 %files mod_auth_dbm
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_dbm.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_auth_dbm.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
 %attr(755,root,root) %{_sbindir}/dbmmanage
 %attr(755,root,root) %{_sbindir}/htdbm
 
 %files mod_auth_digest
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_digest.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_auth_digest.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
 
+%files mod_autoindex
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_autoindex.conf
+%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
+
 %files mod_cache
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_cache.conf
 %attr(755,root,root) %{_libexecdir}/mod_cache.so
 %attr(755,root,root) %{_libexecdir}/mod_disk_cache.so
 %attr(755,root,root) %{_libexecdir}/mod_mem_cache.so
 
 %files mod_cgid
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cgid.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_cgid.conf
 %attr(755,root,root) %{_libexecdir}/mod_cgid.so
 
 %files mod_charset_lite
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_charset_lite.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_charset_lite.conf
 %attr(755,root,root) %{_libexecdir}/mod_charset_lite.so
 
 %files mod_dav
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dav.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_dav.conf
 %attr(755,root,root) %{_libexecdir}/mod_dav*.so
+%dir %attr(770,root,http) /var/lock/mod_dav
 
 %files mod_deflate
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_deflate.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_deflate.conf
 %attr(755,root,root) %{_libexecdir}/mod_deflate.so
 
 %files mod_dir
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dir.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_dir.conf
 %attr(755,root,root) %{_libexecdir}/mod_dir.so
 
 %files mod_expires
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_expires.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_expires.conf
 %attr(755,root,root) %{_libexecdir}/mod_expires.so
 
 %files mod_file_cache
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_file_cache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_file_cache.conf
 %attr(755,root,root) %{_libexecdir}/mod_file_cache.so
 
 %files mod_headers
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_headers.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_headers.conf
 %attr(755,root,root) %{_libexecdir}/mod_headers.so
 
 %files mod_imap
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_imap.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_imap.conf
 %attr(755,root,root) %{_libexecdir}/mod_imap.so
 
 %files mod_info
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_info.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_info.conf
 %attr(755,root,root) %{_libexecdir}/mod_info.so
 
 %files mod_proxy
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_proxy.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_proxy.conf
 %attr(755,root,root) %{_libexecdir}/mod_proxy*.so
-%attr(770,root,http) /var/cache/apache
 
 %files mod_rewrite
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_rewrite.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_rewrite.conf
 
 %if %{with ssl}
 %files mod_ssl
 %defattr(644,root,root,755)
 %attr(750,root,root) %dir %{_sysconfdir}/ssl
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssl/server.*
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ssl.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssl/server.*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_ssl.conf
 %attr(755,root,root) %{_libexecdir}/mod_ssl.so
 %endif
 
 %files mod_status
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_status.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_status.conf
 %attr(755,root,root) %{_libexecdir}/mod_status.so
 
 %files mod_usertrack
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_usertrack.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_usertrack.conf
 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
 
 %files mod_unique_id
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_unique_id.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_unique_id.conf
 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
 
 %files mod_vhost_alias
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
+
+%files -n htpasswd-%{name}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/htpasswd
+%{_sbindir}/htpasswd
+%{_mandir}/man1/htpasswd.1*
+
+%files cgi_test
+%defattr(644,root,root,755)
+%dir %{_cgibindir}
+%attr(755,root,root) %{_cgibindir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/09_cgi_test.conf
This page took 0.098536 seconds and 4 git commands to generate.