]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.spec
- allow from all, as default apache.conf is very restrictive now
[packages/apache1.git] / apache1.spec
index 260c475f42558d2858a5bddb86acd495094e5528..74bc0811a2355fd34d5dd7abbae01e3b372c4b2d 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
-# _with_rewrite_ldap   - enable ldap map support for mod_rewrite (alpha)
-# _without_ipv6                - disable IPv6 support
+%bcond_with    rewrite_ldap    # enable ldap map support for mod_rewrite (alpha)
+%bcond_without ipv6            # disable IPv6 support
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       The most widely used Web server on the Internet
@@ -14,7 +14,7 @@ Summary(id):  Web server yang paling banyak digunakan di Internet
 Summary(is):   Vinsælasti vefþjónninn á Netinu
 Summary(it):   Il web server più diffuso su Internet
 Summary(ja):   ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤ÇºÇ¤â°ìÈÌŪ¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë Web ¥µ¡¼¥Ð¡¼
-Summary(no):   Den mest utbredte web-tjeneren på Internett
+Summary(nb):   Den mest utbredte web-tjeneren på Internett
 Summary(pl):   Serwer WWW (World Wide Web)
 Summary(pt):   O servidor Web mais largamente utilizado em toda a Internet
 Summary(pt_BR):        Servidor HTTPD para prover serviços WWW
@@ -26,53 +26,68 @@ Summary(tr):        Lider WWW taray
 Summary(uk):   îÁÊÐÏÐÕÌÑÒΦÛÉÊ Web-Server
 Summary(zh_CN):        Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
 Name:          apache1
-Version:       1.3.28
-Release:       0.2
+Version:       1.3.33
+Release:       1.90
 License:       Apache Group
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: 2cdece7b4881d541e072de6a2b65db77
+# Source0-md5: 3dfd2c3778f37a2dfc22b97417a61407
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       apache-icons.tar.gz
-# Source3-md5: 2b085cbc19fd28536dc883f0b864cd83
+# Source3-md5: 2b085cbc19fd28536dc883f0b864cd83
 Source4:       %{name}.sysconfig
 Source5:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/apache-non-english-man-pages.tar.bz2
 # Source5-md5: 74ff6e8d8a7b365b48ed10a52fbeb84e
-Source6:       %{name}-httpd.conf
-Source8:       %{name}-mod_vhost_alias.conf
+Source6:       %{name}.monitrc
+Source7:       %{name}-httpd.conf
+Source8:       %{name}-common.conf
 Source9:       %{name}-mod_status.conf
 Source10:      %{name}-mod_proxy.conf
+Source11:      %{name}-mod_autoindex.conf
+Source12:      %{name}-mod_dir.conf
+Source13:      %{name}-mod_info.conf
+Source14:      %{name}-mod_log_config.conf
+Source15:      %{name}-mod_userdir.conf
+Source16:      %{name}-mod_mime_magic.conf
+Source17:      %{name}-mod_alias.conf
+Source18:      %{name}-mod_negotiation.conf
+Source19:      %{name}-mod_mime.conf
+Source20:      %{name}-mod_actions.conf
+Source21:      %{name}-mod_cern_meta.conf
+Source22:      %{name}-mod_setenvif.conf
+Source23:      %{name}-mod_vhost_alias.conf
+Source24:      %{name}-errordocs.conf
 Patch0:                %{name}-PLD.patch
 Patch1:                %{name}-suexec.patch
-Patch2:                %{name}-htdocs.patch
-Patch3:                %{name}-errordocs.patch
-Patch4:                %{name}-apxs.patch
-Patch5:                %{name}-mod_ssl-addon.patch
-Patch6:                %{name}-mod_ssl-eapi.patch
-Patch7:                %{name}-EAPI_MM_CORE_PATH-correction.patch
-Patch8:                %{name}-EAPI_MM=SYSTEM.patch
-Patch9:                %{name}-ipv6-PLD.patch
-Patch10:       %{name}-modules_symbols.patch
-Patch11:       %{name}-apxs_force_rm_cp.patch
-Patch12:       %{name}-db3.patch
-Patch13:       %{name}-lookup_map_ldap.patch
-Patch14:       %{name}-man.patch
-Patch15:       %{name}-fpic.patch
-Patch16:       %{name}-buff.patch
-Patch17:       %{name}-mkstemp.patch
-Patch18:       %{name}-EAPI-missing_files.patch
-Patch19:       %{name}-PLD-nov6.patch
-Patch20:       %{name}-configdir_skip_backups.patch
-Patch21:       %{name}-apxs-quiet.patch
-Patch22:       %{name}-db4.patch
-Patch23:       %{name}-security_htdigest_bufferoverflow.patch
+Patch2:                %{name}-errordocs.patch
+Patch3:                %{name}-apxs.patch
+Patch4:                %{name}-mod_ssl-addon.patch
+Patch5:                %{name}-mod_ssl-eapi.patch
+Patch6:                %{name}-EAPI_MM_CORE_PATH-correction.patch
+Patch7:                %{name}-EAPI_MM=SYSTEM.patch
+Patch8:                %{name}-ipv6-PLD.patch
+Patch9:                %{name}-modules_symbols.patch
+Patch10:       %{name}-apxs_force_rm_cp.patch
+Patch11:       %{name}-db3.patch
+Patch12:       %{name}-lookup_map_ldap.patch
+Patch13:       %{name}-man.patch
+Patch14:       %{name}-fpic.patch
+Patch15:       %{name}-buff.patch
+Patch16:       %{name}-mkstemp.patch
+Patch17:       %{name}-EAPI-missing_files.patch
+Patch18:       %{name}-PLD-nov6.patch
+Patch19:       %{name}-configdir_skip_backups.patch
+Patch20:       %{name}-apxs-quiet.patch
+Patch21:       %{name}-db4.patch
 URL:           http://www.apache.org/
 BuildRequires: db-devel >= 4.1
 BuildRequires: mm-devel >= 1.3.0
-%{?_with_rewrite_ldap:BuildRequires: openldap-devel}
+%{?with_rewrite_ldap:BuildRequires:    openldap-devel}
+BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpm-perlprov
 PreReq:                mm
-PreReq:                perl
+PreReq:                perl-base
 PreReq:                rc-scripts
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getent
@@ -84,30 +99,29 @@ Requires(pre):      textutils
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
+Requires(triggerpostun):       sed >= 4.0
 Requires:      /etc/mime.types
+Requires:      %{name}-apxs = %{version}-%{release}
 Requires:      mailcap
 Requires:      psmisc >= 20.1
-Provides:      %{name}(EAPI) = %{version}
-Provides:      apache(EAPI) = %{version}
-Provides:      apache = %{version}-%{release}
+Provides:      %{name}(EAPI) = %{version}-%{release}
+Provides:      group(http)
 Provides:      httpd
-Provides:      webserver
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes:     apache <= 1.3.27-3
+Provides:      user(http)
+Provides:      webserver = apache
+%{?with_ipv6:Provides: apache(ipv6)}
+Obsoletes:     apache < 2.0.0
 Obsoletes:     apache-extra
 Obsoletes:     apache6
-Obsoletes:     apache-doc
-Obsoletes:     httpd
-Obsoletes:     indexhtml
-Obsoletes:     webserver
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc/httpd
-%define                _includedir     %{_prefix}/include/apache
-%define                _libexecdir     %{_prefix}/lib/apache
-%define                apxs            /usr/sbin/apxs
-%define                httpdir         /home/services/httpd
+%define                _sysconfdir     /etc/apache
+%define                _includedir     %{_prefix}/include/apache1
+%define                _libexecdir     %{_prefix}/%{_lib}/apache1
 %define                _datadir        %{httpdir}
-%define                webappsdir      %{httpdir}/apps
+%define                apxs            /usr/sbin/apxs1
+%define                httpdir         /home/services/apache
+%define                manualdir       %{_prefix}/share/apache1-manual
 
 %description
 Apache is a powerful, full-featured, efficient and freely-available
@@ -158,7 +172,7 @@ Apache 
 ¤Ç¤¹¡£¤Þ¤¿¡¢apache ¤Ï¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤ÇºÇ¤â°ìÈÌŪ¤Ë»ÈÍÑ ¤µ¤ì¤Æ¤¤¤ë Web
 ¥µ¡¼¥Ð¡¼¤Ç¤¹¡£
 
-%description -l no
+%description -l nb
 Apache er en kraftig, funksjonsrik, effektiv og fritt tilgjengelig
 web-tjener. Apache er også den mest populære web-tjeneren på Internet.
 
@@ -203,13 +217,12 @@ Internet 
 
 %package suexec
 Summary:       Apache suexec wrapper
-Summary(pl):   Suexec wrapper do serwera www Apache
+Summary(pl):   Suexec wrapper do serwera WWW Apache
 Summary(ru):   Apache suEXEC CGI wrapper
 Summary(uk):   Apache suEXEC CGI wrapper
-Group:         Development/Tools
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-suexec = %{version}-%{release}
-Obsoletes:     apache-suexec <= 1.3.27-3
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-suexec < 2.0.0
 
 %description suexec
 The suEXEC feature provides Apache users the ability to run CGI and
@@ -245,6 +258,53 @@ wykonywane jako taki sam u
 ÓÉÓÔÅÍÎϧ ÂÅÚÐÅËÉ, ËÏÔÒ¦ ÐÏÒÏÄÖÅΦ ×ÉËÏÒÉÓÔÁÎÎÑÍ ÔÁËÉÈ ÐÒÏÇÒÁÍ,
 ÎÁÓÔ¦ÊÌÉ×Ï ÒÁÄÉÍÏ ÎÅ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÃØÏÇÏ ÐÁËÅÔÕ...
 
+%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 tools
+Summary:       Apache tools
+Summary(pl):   Narzêdzia Apache'a
+Group:         Development/Tools
+
+%description tools
+Apache tools.
+
+%description tools -l pl
+Narzêdzia Apache'a.
+
+%package index
+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*.
+
+%package doc
+Summary:       Apache 1.3.x manual
+Summary(pl):   Podrêcznik do Apache'a 1.3.x
+Group:         Documentation
+Requires:      %{name} = %{version}-%{release}
+
+%description doc
+Apache 1.3.x manual.
+
+%description doc -l pl
+Podrêcznik do Apache'a 1.3.x.
+
 %package devel
 Summary:       Module development tools for the Apache web server
 Summary(cs):   Hlavièkové soubory pro Apache Web server
@@ -256,8 +316,8 @@ Summary(id):        File header untuk Apache Web server
 Summary(is):   Hausaskrár með Apache vefþjóninum
 Summary(it):   File include per il web server Apache
 Summary(ja):   Apache Web ¥µ¡¼¥Ð¡¼ÍѤγ«È¯¥Ä¡¼¥ë
-Summary(no):   Headerfiler for webtjeneren Apache
-Summary(pl):   Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
+Summary(nb):   Headerfiler for webtjeneren Apache
+Summary(pl):   Pliki nag³ówkowe do tworzenia modu³ów rozszerzeñ do serwera WWW Apache
 Summary(pt):   Ficheiros de inclusão para o servidor Web Apache
 Summary(pt_BR):        Arquivos de inclusão do Apache para desenvolvimento de módulos
 Summary(ru):   æÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ web server'Á Apache
@@ -267,11 +327,11 @@ Summary(sv):      Huvudfiler f
 Summary(uk):   úÁÓÏÂÉ ÓÔ×ÏÒÅÎÎÑ ÍÏÄÕ̦נÄÌÑ web server'Õ Apache
 Summary(zh_CN):        ÓÃÓÚ Apache Web ·þÎñ³ÌÐòµÄ¿ª·¢¹¤¾ß¡£
 Group:         Networking/Utilities
-Requires:      %{name}(EAPI) = %{version}
-Provides:      %{name}(EAPI)-devel = %{version}
-Provides:      apache(EAPI)-devel = %{version}
-Provides:      apache-devel = %{version}-%{release}
-Obsoletes:     apache-devel <= 1.3.27-3
+Requires:      %{name}-apxs = %{version}-%{release}
+Provides:      %{name}(EAPI)-devel = %{version}-%{release}
+Provides:      apache(EAPI)-devel = %{version}-%{release}
+%{?with_ipv6:Provides: apache(ipv6)-devel}
+Obsoletes:     apache-devel < 2.0.0
 
 %description devel
 The apache-devel package contains header files for Apache.
@@ -301,7 +361,7 @@ Apache-devel pakkinn inniheldur frumk
 %description devel -l it
 Il pacchetto apache-devel contiene i file header per Apache.
 
-%description devel -l no
+%description devel -l nb
 Apache-devel pakken inneholder headerfiler for Apache.
 
 %description devel -l pl
@@ -329,10 +389,9 @@ Paketet apache-devel inneh
 Summary:       Apache module for run CGI whenever a file of a certain type is requested
 Summary(pl):   Modu³ dla apache do uruchamiania skryptów cgi
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_actions = %{version}-%{release}
-Obsoletes:     apache-mod_actions <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_actions < 2.0.0
 
 %description mod_actions
 This package contains mod_actions module. This module lets you run CGI
@@ -347,10 +406,9 @@ Ten modu
 Summary:       Apache module with user authentication using textual files
 Summary(pl):   Modu³ autentykacji u¿ytkownika przy u¿yciu plików tekstowych dla Apache
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_auth = %{version}-%{release}
-Obsoletes:     apache-mod_auth <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_auth < 2.0.0
 
 %description mod_auth
 This package contains mod_auth module. It provides for user
@@ -364,15 +422,14 @@ u
 Summary:       Apache module with "anonymous" user access authentication
 Summary(pl):   Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_auth_anon = %{version}-%{release}
-Obsoletes:     apache-mod_auth_anon <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_auth_anon < 2.0.0
 
 %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
@@ -383,18 +440,17 @@ independent and it allows users to share URLs.
 
 %description mod_auth_anon -l pl
 Ten modu³ oferuje anonimow± autoryzacjê u¿ytkownia podobnie do
-anonimowych serwerów ftp (u¿ytkownik ,,anonymous'' oraz has³o w
+anonimowych serwerów FTP (u¿ytkownik ,,anonymous'' oraz has³o w
 postaci adresu pocztowego u¿ytkownika).
 
 %package mod_auth_db
 Summary:       Apache module with user authentication which uses Berkeley DB files
 Summary(pl):   Modu³ apache z mechanizmem autentykacji u¿ywaj±cym plików Berkeley DB
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Requires:      %{_sbindir}/apxs
-Provides:      apache-mod_auth_db = %{version}-%{release}
-Obsoletes:     apache-mod_auth_db <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Requires:      %{apxs}
+Obsoletes:     apache-mod_auth_db < 2.0.0
 
 %description mod_auth_db
 This package contains mod_auth_db module. It provides for user
@@ -410,11 +466,10 @@ ale jako plik
 Summary:       Apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Modu³ apache do autoryzacji MD5
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_auth_digest = %{version}-%{release}
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
 Obsoletes:     %{name}-mod_digest
-Obsoletes:     apache-mod_auth_digest <= 1.3.27-3
+Obsoletes:     apache-mod_auth_digest < 2.0.0
 
 %description mod_auth_digest
 This package contains mod_digest module. It provides user
@@ -424,14 +479,27 @@ 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
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{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_define
 Summary:       Apache module - authentication variables for arbitrary directives
 Summary(pl):   Modu³ apache do definiowania zmiennych
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_define = %{version}-%{release}
-Obsoletes:     apache-mod_define <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_define < 2.0.0
 
 %description mod_define
 It provides the definition variables for arbitrary directives, i.e.
@@ -444,10 +512,9 @@ Modu
 Summary:       Older version of apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Starsza wersja modu³u apache do autoryzacji MD5
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_digest = %{version}-%{release}
-Obsoletes:     apache-mod_digest <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_digest < 2.0.0
 
 %description mod_digest
 This package contains mod_digest module. It provides user
@@ -468,10 +535,9 @@ wersji standardu.
 Summary:       Apache module for "trailing slash" redirects and serving directory index files
 Summary(pl):   Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_dir = %{version}-%{release}
-Obsoletes:     apache-mod_dir <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_dir < 2.0.0
 
 %description mod_dir
 This package contains mod_dir which provides "trailing slash"
@@ -484,10 +550,9 @@ Modu
 Summary:       Apache module which generates Expires HTTP headers
 Summary(pl):   Modu³ generuj±cy nag³ówki HTTP Expires
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_expires = %{version}-%{release}
-Obsoletes:     apache-mod_expires <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_expires < 2.0.0
 
 %description mod_expires
 This module controls the setting of the Expires HTTP header in server
@@ -504,10 +569,9 @@ wa
 Summary:       Apache module allows for the customization of HTTP response headers
 Summary(pl):   Modu³ pozwalaj±cy na modyfikacjê nag³ówków HTTP
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_headers = %{version}-%{release}
-Obsoletes:     apache-mod_headers <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_headers < 2.0.0
 
 %description mod_headers
 This package contains mod_headers module. The module allows for the
@@ -518,32 +582,13 @@ replaced or removed.
 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
 wysy³anych do przegl±darki.
 
-%package mod_mmap_static
-Summary:       Apache module for mmap()ing statically configured list files
-Summary(pl):   Modu³ s³u¿±cy do mmap()owania plików.
-Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_mmap_static = %{version}-%{release}
-Obsoletes:     apache-mod_mmap_static <= 1.3.27-3
-
-%description mod_mmap_static
-This package contains mod_mmap_static module. It provides mmap()ing of
-a statically configured list of frequently requested but not changed
-files.
-
-%description mod_mmap_static -l pl
-Modu³ umo¿liwia mmap()owanie statycznie skonfigurowanych plików
-(czêsto u¿ywanych ale nie ulegaj±cych zmianom).
-
 %package mod_imap
 Summary:       Apache module with imap-file handler
 Summary(pl):   Modu³ z obs³ug± imap-file
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_imap = %{version}-%{release}
-Obsoletes:     apache-mod_imap <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_imap < 2.0.0
 
 %description mod_imap
 This package contains mod_imap module. It provides for .map files,
@@ -557,10 +602,9 @@ Modu
 Summary:       Apache module with comprehensive overview of the server configuration
 Summary(pl):   Modu³ dostarczaj±cy informacji na temat serwera.
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_info = %{version}-%{release}
-Obsoletes:     apache-mod_info <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_info < 2.0.0
 
 %description mod_info
 This package contains mod_info module. It provides a comprehensive
@@ -571,17 +615,49 @@ and directives in the configuration files.
 Modu³ dostarczaj±cy informacji o konfiguracji serwera, zainstalowanych
 modu³ach itp.
 
+%package mod_log_forensic
+Summary:       Apache module for forensic logging of the requests
+Summary:       Modu³ Apache'a do logowania ¿±dañ w celu pó¼niejszej analizy
+Group:         Networking/Daemons
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_log_forensic < 2.0.0
+
+%description mod_log_forensic
+This module provides for forensic logging of client requests. Logging
+is done before and after processing a request.
+
+%description mod_log_forensic -l pl
+Ten modu³ pozwala na logowanie ¿±dañ w celu pó¼niejszej analizy.
+Logowanie jest wykonywane przed i po przetworzeniu ¿±dania.
+
+%package mod_mmap_static
+Summary:       Apache module for mmap()ing statically configured list files
+Summary(pl):   Modu³ s³u¿±cy do mmap()owania plików.
+Group:         Networking/Daemons
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_mmap_static < 2.0.0
+
+%description mod_mmap_static
+This package contains mod_mmap_static module. It provides mmap()ing of
+a statically configured list of frequently requested but not changed
+files.
+
+%description mod_mmap_static -l pl
+Modu³ umo¿liwia mmap()owanie statycznie skonfigurowanych plików
+(czêsto u¿ywanych ale nie ulegaj±cych zmianom).
+
 %package mod_proxy
 Summary:       Apache module with Web proxy
 Summary(pl):   Modu³ dodaj±cy obs³ugê serwera proxy
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}
-Requires(post,preun):  %{_sbindir}/apxs
+Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
+Requires(post,preun):  %{apxs}
 Requires(post,preun):  grep
 Requires(preun):       fileutils
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_proxy = %{version}-%{release}
-Obsoletes:     apache-mod_proxy <= 1.3.27-3
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_proxy < 2.0.0
 
 %description mod_proxy
 This package contains module with implementation a proxy/cache for
@@ -598,10 +674,9 @@ HTTP/1.0.
 Summary:       Apache module with rule-based engine for rewrite requested URLs on the fly
 Summary(pl):   Modu³ do ,,przepisywania'' adresów URL w locie
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_rewrite = %{version}-%{release}
-Obsoletes:     apache-mod_rewrite <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_rewrite < 2.0.0
 
 %description mod_rewrite
 This package contains It provides a rule-based rewriting engine to
@@ -614,13 +689,12 @@ Modu
 Summary:       Server status report module for apache
 Summary(pl):   Modu³ dostarczaj±cy informacje statystyczne o serwerze.
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}
-Requires(post,preun):  %{_sbindir}/apxs
+Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
+Requires(post,preun):  %{apxs}
 Requires(post,preun):  grep
 Requires(preun):       fileutils
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_status = %{version}-%{release}
-Obsoletes:     apache-mod_status <= 1.3.27-3
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_status < 2.0.0
 
 %description mod_status
 The Status module allows a server administrator to find out how well
@@ -637,10 +711,9 @@ pracy serwera apache (w postaci strony HTML).
 Summary:       Apache module which provides a magic token for each request
 Summary(pl):   Modu³ nadaj±cy ka¿demu ¿±daniu unikalny token
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_unique_id = %{version}-%{release}
-Obsoletes:     apache-mod_unique_id <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_unique_id < 2.0.0
 
 %description mod_unique_id
 This package contains the mod_unique_id. This module provides a magic
@@ -661,10 +734,9 @@ UNIQUE_ID.
 Summary:       Apache module for user tracking using cookies
 Summary(pl):   Modu³ s³u¿±cy do ¶ledzenia u¿ytkowników przy u¿yciu ciasteczek
 Group:         Networking/Daemons
-Requires(post,preun):  %{_sbindir}/apxs
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_usertrack = %{version}-%{release}
-Obsoletes:     apache-mod_usertrack <= 1.3.27-3
+Requires(post,preun):  %{apxs}
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_usertrack < 2.0.0
 
 %description mod_usertrack
 This package contains the user tracking module which did its own
@@ -680,13 +752,12 @@ wiele plik
 Summary:       Apache module for dynamically configured mass virtual hosting
 Summary(pl):   Modu³ dodaj±cy obs³ugê hostów wirtualnych.
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}
-Requires(post,preun):  %{_sbindir}/apxs
+Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
+Requires(post,preun):  %{apxs}
 Requires(post,preun):  grep
 Requires(preun):       fileutils
-Requires:      %{name}(EAPI) = %{version}
-Provides:      apache-mod_vhost_alias = %{version}-%{release}
-Obsoletes:     apache-mod_vhost_alias <= 1.3.27-3
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Obsoletes:     apache-mod_vhost_alias < 2.0.0
 
 %description mod_vhost_alias
 This package contains the mod_vhost_alias. It provides support for
@@ -702,40 +773,41 @@ wirtualnych.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
+%patch4 -p0
 %patch5 -p0
-%patch6 -p0
+%patch6 -p1
 %patch7 -p1
-%patch8 -p1
-#%{!?_without_ipv6:%patch9 -p1}
+%{?with_ipv6:%patch8 -p1}
+%patch9 -p1
 %patch10 -p1
 %patch11 -p1
-%patch12 -p1
-%{?_with_rewrite_ldap:%patch13 -p1}
+%{?with_rewrite_ldap:%patch12 -p1}
+%patch13 -p1
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
-%patch18 -p1
-%{?_without_ipv6:%patch19 -p1}
+%{!?with_ipv6:%patch18 -p1}
+%patch19 -p1
 %patch20 -p1
 %patch21 -p1
-%patch22 -p1
-#%patch23 -p1
 
 %build
-OPTIM="%{rpmcflags}" \
+OPTIM="%{rpmcflags} -DHARD_SERVER_LIMIT=2048" \
 ./configure \
-       --prefix=%{_prefix} \
-       --sysconfdir=%{_sysconfdir} \
-       --includedir=%{_includedir} \
+       --prefix=%{_sysconfdir} \
+       --exec-prefix=%{_libexecdir} \
+       --bindir=%{_bindir} \
        --sbindir=%{_sbindir} \
-       --libexecdir=%{_libexecdir} \
+       --sysconfdir=%{_sysconfdir} \
        --datadir=%{_datadir} \
-       --manualdir=%{_datadir}/html/manual \
+       --includedir=%{_includedir} \
+       --libexecdir=%{_sysconfdir}/modules \
        --localstatedir=/var \
+       --mandir=%{_mandir} \
+       --manualdir=%{manualdir} \
        --runtimedir=/var/run \
-       --logfiledir=/var/log/httpd \
+       --logfiledir=/var/log/apache \
        --with-layout=PLD \
        --without-confadjust \
        --enable-module=all \
@@ -750,9 +822,11 @@ OPTIM="%{rpmcflags}" \
        --suexec-docroot=%{_datadir} \
        --disable-rule=WANTHSREGEX \
        --enable-rule=EAPI \
-       %{!?_without_ipv6:--enable-rule=INET6}
+       --target=apache \
+       %{?with_ipv6:--enable-rule=INET6}
 
-%{__make} LIBS1="-lm -lcrypt -lmm -ldl"
+%{__make} \
+       LIBS1="-lm -lcrypt -lmm -ldl"
 
 rm -f src/modules/standard/mod_auth_db.so
 %{__make} -C src/modules/standard mod_auth_db.so \
@@ -760,122 +834,142 @@ rm -f src/modules/standard/mod_auth_db.so
 
 rm -f src/modules/standard/mod_rewrite.so
 %{__make} -C src/modules/standard mod_rewrite.so \
-       LIBS_SHLIB="-ldb %{?_with_rewrite_ldap:-lldap -llber}"
+       LIBS_SHLIB="-ldb %{?with_rewrite_ldap:-lldap -llber}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
-       $RPM_BUILD_ROOT{%{_datadir}/errordocs,%{webappsdir}} \
-       $RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},run/apache}
+install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
+       $RPM_BUILD_ROOT%{_datadir}/errordocs \
+       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d \
+       $RPM_BUILD_ROOT%{_libexecdir} \
+       $RPM_BUILD_ROOT/var/{log/{apache,archiv/apache},run/apache}
 
 %{__make} install-quiet \
        root=$RPM_BUILD_ROOT
 
-mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
+#mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
 
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache1
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apache
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache1
 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
-touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
+touch $RPM_BUILD_ROOT/var/log/apache/{access,error,agent,referer}_log
 
 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
 
-install %{SOURCE6}  $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
-install %{SOURCE8}  $RPM_BUILD_ROOT%{_sysconfdir}/mod_vhost_alias.conf
-install %{SOURCE9}  $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
-install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
+mv $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf conf/apache.conf.dist
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+
+CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d/"
+
+echo "LoadModule access_module      modules/mod_access.so" > $CFG/01_mod_access.conf
+install %{SOURCE17}    $CFG/02_mod_alias.conf
+echo "LoadModule asis_module        modules/mod_asis.so" > $CFG/03_mod_asis.conf
+install %{SOURCE21} $CFG/04_mod_cern_meta.conf
+echo "LoadModule cgi_module         modules/mod_cgi.so" > $CFG/05_mod_cgi.conf
+echo "LoadModule env_module         modules/mod_env.so" > $CFG/06_mod_env.conf
+echo "LoadModule include_module     modules/mod_include.so" > $CFG/07_mod_include.conf
+echo "LoadModule log_agent_module   modules/mod_log_agent.so" > $CFG/08_mod_log_agent.conf
+install %{SOURCE14} $CFG/09_mod_log_config.conf
+echo "LoadModule log_referer_module modules/mod_log_referer.so" > $CFG/10_mod_log_referer.conf
+install %{SOURCE16}    $CFG/11_mod_mime_magic.conf
+install %{SOURCE19}    $CFG/12_mod_mime.conf
+install %{SOURCE18} $CFG/13_mod_negotiation.conf
+install %{SOURCE22}    $CFG/14_mod_setenvif.conf
+echo "LoadModule speling_module     modules/mod_speling.so" > $CFG/15_mod_speling.conf
+install %{SOURCE15}    $CFG/16_mod_userdir.conf
+
+install %{SOURCE8}     $CFG/20_common.conf
+
+install %{SOURCE23}    $CFG/20_mod_vhost_alias.conf
+install %{SOURCE9}     $CFG/25_mod_status.conf
+install %{SOURCE10}    $CFG/30_mod_proxy.conf
+install %{SOURCE20}    $CFG/50_mod_actions.conf
+echo "LoadModule auth_module   modules/mod_auth.so" > $CFG/51_mod_auth.conf
+echo "LoadModule auth_anon_module      modules/mod_auth_anon.so" > $CFG/52_mod_auth_anon.conf
+echo "LoadModule auth_db_module        modules/mod_auth_db.so" > $CFG/53_mod_auth_db.conf
+echo "LoadModule auth_digest_module    modules/mod_auth_digest.so" > $CFG/54_mod_auth_digest.conf
+install %{SOURCE11}    $CFG/57_mod_autoindex.conf
+install %{SOURCE12}    $CFG/59_mod_dir.conf
+echo "LoadModule expires_module        modules/mod_expires.so" > $CFG/67_mod_expires.conf
+echo "LoadModule headers_module        modules/mod_headers.so" > $CFG/68_mod_headers.conf
+echo "LoadModule imap_module   modules/mod_imap.so" > $CFG/69_mod_imap.conf
+echo "LoadModule rewrite_module        modules/mod_rewrite.so" > $CFG/70_mod_rewrite.conf
+echo "LoadModule usertrack_module      modules/mod_usertrack.so" > $CFG/71_mod_usertrack.conf
+echo "LoadModule unique_id_module      modules/mod_unique_id.so" > $CFG/72_mod_unique_id.conf
+echo "LoadModule define_module modules/mod_define.so" > $CFG/73_mod_define.conf
+echo "LoadModule digest_module modules/mod_digest.so" > $CFG/74_mod_digest.conf
+echo "LoadModule log_forensic_module   modules/mod_log_forensic.so" > $CFG/75_mod_log_forensic.conf
+echo "LoadModule mmap_static_module    modules/mod_mmap_static.so" > $CFG/76_mod_mmap_static.conf
+install %{SOURCE13} $CFG/77_mod_info.conf
+install %{SOURCE24}    $CFG/80_errordocs.conf
+
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/monit
 
 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
 
+mv $RPM_BUILD_ROOT%{_sbindir}/apxs $RPM_BUILD_ROOT%{apxs}
+mv $RPM_BUILD_ROOT%{_mandir}/man8/apxs.8 $RPM_BUILD_ROOT%{_mandir}/man8/apxs1.8
+
+perl -p -i -e 's/^if ...O ne "MSWin32"./if (0)/' $RPM_BUILD_ROOT%{apxs}
+
+mv $RPM_BUILD_ROOT%{_sysconfdir}/modules/* $RPM_BUILD_ROOT%{_libexecdir}
+rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/modules
+ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
+ln -s /var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
+
 %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
+       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
-       echo "Adding group http GID=51."
-       /usr/sbin/groupadd -g 51 -r -f http
+       echo "Adding group http GID=51."
+       /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
-       if [ "`getent passwd http | cut -d: -f6`" = "/home/httpd" ]; then
-               /usr/sbin/usermod -d %{httpdir} http
-       fi
+       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
+       if [ "`getent passwd http | cut -d: -f6`" = "/home/httpd" ]; then
+               /usr/sbin/usermod -d %{httpdir} http
+       fi
 else
-       echo "Adding user http UID=51."
-       /usr/sbin/useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http 1>&2
+       echo "Adding user http UID=51."
+       /usr/sbin/useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http 1>&2
 fi
 
 %post
-/sbin/chkconfig --add httpd
-%{apxs} -e -a -n access %{_libexecdir}/mod_access.so 1>&2
-%{apxs} -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
-%{apxs} -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
-%{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
-%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
-%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
-%{apxs} -e -a -n include %{_libexecdir}/mod_include.so 1>&2
-%{apxs} -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
-%{apxs} -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
-%{apxs} -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
-%{apxs} -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
-%{apxs} -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
-%{apxs} -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
-%{apxs} -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
-%{apxs} -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
-%{apxs} -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
+/sbin/chkconfig --add apache
 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
+touch /var/log/apache/{access,error,agent,referer}_log
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n access %{_libexecdir}/mod_access.so 1>&2
-       %{apxs} -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
-       %{apxs} -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
-       %{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-       %{apxs} -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
-       %{apxs} -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
-       %{apxs} -e -A -n env %{_libexecdir}/mod_env.so 1>&2
-       %{apxs} -e -A -n include %{_libexecdir}/mod_include.so 1>&2
-       %{apxs} -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
-       %{apxs} -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
-       %{apxs} -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
-       %{apxs} -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
-       %{apxs} -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
-       %{apxs} -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
-       %{apxs} -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
-       %{apxs} -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
-       %{apxs} -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd stop 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache stop 1>&2
        fi
-       /sbin/chkconfig --del httpd
+       /sbin/chkconfig --del apache
 fi
 
 %postun
 if [ "$1" = "0" ]; then
-       echo "Removing user http."
-       /usr/sbin/userdel http
-       echo "Removing group http."
-       /usr/sbin/groupdel http
+       %userremove http
+       %groupremove http
 fi
 
-%triggerpostun -- apache <= 1.3.27-3
+%triggerpostun -- apache < 2.0.0
 if [ -z "`getgid http`" ]; then
        echo "Adding group http GID=51."
        /usr/sbin/groupadd -g 51 -r -f http
@@ -884,438 +978,389 @@ if [ -z "`id -u http 2>/dev/null`" ]; then
        echo "Adding user http UID=51."
        /usr/sbin/useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http 1>&2
 fi
-/sbin/chkconfig --add httpd
-%{apxs} -e -a -n access %{_libexecdir}/mod_access.so 1>&2
-%{apxs} -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
-%{apxs} -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
-%{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
-%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
-%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
-%{apxs} -e -a -n include %{_libexecdir}/mod_include.so 1>&2
-%{apxs} -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
-%{apxs} -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
-%{apxs} -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
-%{apxs} -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
-%{apxs} -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
-%{apxs} -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
-%{apxs} -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
-%{apxs} -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
-%{apxs} -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
+/sbin/chkconfig --add apache
+
+%triggerpostun -- apache1 < 1.3.33-1.85
+# upgrading from older version
+if [ "$1" = "2" ]; then
+       sed -i -e '
+               # get apxs over confusion of changed ServerRoot
+               s,^\(LoadModule .*\) lib/apache1/,\1 modules/,
+
+               # update ServerRoot
+               s,^ServerRoot.*,ServerRoot "/etc/apache",
+       ' /etc/apache/apache.conf
+fi
+
+%triggerpostun -- %{name} <= 1.3.31-5
+echo "WARNING!!!"
+echo "Since that version autoindex module has been separated to package %{name}-mod_autoindex"
+echo "If you want to have the same functionality do:"
+echo "poldek --upgrade %{name}-mod_autoindex"
+echo
 
 %post mod_actions
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_actions
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n actions %{_libexecdir}/mod_actions.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_actions -- apache-mod_actions <= 1.3.27-3
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
-
 %post mod_auth
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_auth -- apache-mod_auth <= 1.3.27-3
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
-
 %post mod_auth_anon
-%{apxs} -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth_anon
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_auth_anon -- apache-mod_auth_anon <= 1.3.27-3
-%{apxs} -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
-
 %post mod_auth_db
-%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_auth_db
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
 %triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
 %{apxs} -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
 
-%triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.27-3
-%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
+%post mod_autoindex
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
+fi
+
+%preun mod_autoindex
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
+fi
+
+%triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
+%{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+sed -i -e '
+       s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
+' /etc/apache/apache.conf
 
 %post mod_auth_digest
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
-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."
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       else
+               echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
+       fi
 fi
 
 %preun mod_auth_digest
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_auth_digest -- apache-mod_auth_digest <= 1.3.27-3
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
-
 %post mod_define
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_define
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n define %{_libexecdir}/mod_define.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_define -- apache-mod_define <= 1.3.27-3
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
-
 %post mod_digest
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_digest
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n digest %{_libexecdir}/mod_digest.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_digest -- apache-mod_digest <= 1.3.27-3
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
-
 %post mod_dir
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_dir
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_dir -- apache-mod_dir <= 1.3.27-3
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
-
 %post mod_expires
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_expires
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_expires -- apache-mod_expires <= 1.3.27-3
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
-
 %post mod_headers
-%{apxs} -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_headers
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_headers -- apache-mod_headers <= 1.3.27-3
-%{apxs} -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
-
-%post mod_mmap_static
-%{apxs} -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+%post mod_imap
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_mmap_static
+%preun mod_imap
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_mmap_static -- apache-mod_mmap_static <= 1.3.27-3
-%{apxs} -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
-
-%post mod_imap
-%{apxs} -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+%post mod_info
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_imap
+%preun mod_info
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_imap -- apache-mod_imap <= 1.3.27-3
-%{apxs} -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
-
-%post mod_info
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+%post mod_log_forensic
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_info
+%preun mod_log_forensic
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n info %{_libexecdir}/mod_info.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
 fi
 
-%triggerpostun mod_info -- apache-mod_info <= 1.3.27-3
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 1>&2
+%post mod_mmap_static
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
+fi
 
-%post mod_proxy
-%{apxs} -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_proxy.conf" >> /etc/httpd/httpd.conf
+%preun mod_mmap_static
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
 fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+
+%post mod_proxy
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_proxy
 if [ "$1" = "0" ]; then
-       umask 027
-       %{apxs} -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
-       grep -v "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf > \
-               /etc/httpd/httpd.conf.tmp
-       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_proxy -- apache-mod_proxy <= 1.3.27-3
-%{apxs} -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_proxy.conf" >> /etc/httpd/httpd.conf
-fi
+%triggerpostun mod_proxy -- apache1-mod_proxy < 1.3.33-1.85
+%{apxs} -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
+sed -i -e '
+       s,^Include.*mod_proxy.conf,Include %{_sysconfdir}/conf.d/*_mod_proxy.conf,
+' /etc/apache/apache.conf
 
 %post mod_rewrite
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_rewrite
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_rewrite -- apache-mod_rewrite <= 1.3.27-3
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
-
 %post mod_status
-%{apxs} -e -a -n status %{_libexecdir}/mod_status.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_status.conf" >> /etc/httpd/httpd.conf
-fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_status
 if [ "$1" = "0" ]; then
-       umask 027
-       %{apxs} -e -A -n status %{_libexecdir}/mod_status.so 1>&2
-       grep -v "^Include.*mod_status.conf" /etc/httpd/httpd.conf > \
-               /etc/httpd/httpd.conf.tmp
-       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_status -- apache-mod_status <= 1.3.27-3
-%{apxs} -e -a -n status %{_libexecdir}/mod_status.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_status.conf" >> /etc/httpd/httpd.conf
-fi
+%triggerpostun mod_status -- apache1-mod_status < 1.3.33-1.85
+%{apxs} -e -A -n status %{_libexecdir}/mod_status.so 1>&2
+sed -i -e '
+       s,^Include.*mod_status.conf,Include %{_sysconfdir}/conf.d/*_mod_status.conf,
+' /etc/apache/apache.conf
 
 %post mod_unique_id
-%{apxs} -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_unique_id
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_unique_id -- apache-mod_unique_id <= 1.3.27-3
-%{apxs} -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
-
 %post mod_usertrack
-%{apxs} -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_usertrack
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_usertrack -- apache-mod_usertrack <= 1.3.27-3
-%{apxs} -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
-
 %post mod_vhost_alias
-%{apxs} -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_vhost_alias.conf" >> /etc/httpd/httpd.conf
-fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache 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/apache start\" to start apache HTTP daemon."
 fi
 
 %preun mod_vhost_alias
 if [ "$1" = "0" ]; then
-       umask 027
-       %{apxs} -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-       grep -v "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf > \
-               /etc/httpd/httpd.conf.tmp
-       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
-%triggerpostun mod_vhost_alias -- apache-mod_vhost_alias <= 1.3.27-3
-%{apxs} -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_vhost_alias.conf" >> /etc/httpd/httpd.conf
-fi
+%triggerpostun mod_vhost_alias -- apache1-mod_vhost_alias < 1.3.33-1.85
+%{apxs} -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
+sed -i -e '
+       s,^Include.*mod_vhost_alias.conf,Include %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf,
+' /etc/apache/apache.conf
 
 %files
 %defattr(644,root,root,755)
 %doc ABOUT_APACHE src/CHANGES README
-%doc conf/mime.types
+%doc conf/mime.types conf/apache.conf.dist
 
-%attr(754,root,root) /etc/rc.d/init.d/httpd
+%attr(754,root,root) /etc/rc.d/init.d/apache
 
 %attr(750,root,root) %dir %{_sysconfdir}
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf
+%{_sysconfdir}/modules
+%{_sysconfdir}/logs
+%attr(750,root,root) %dir %{_sysconfdir}/conf.d
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_common.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_errordocs.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_access.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_alias.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_asis.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cern_meta.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cgi.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_env.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_include.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_agent.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_config.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_referer.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime_magic.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_negotiation.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_setenvif.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_speling.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_userdir.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 size mtime md5) /etc/logrotate.d/*
+%attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /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) %{_bindir}/checkgid
 %attr(755,root,root) %{_bindir}/htdigest
 
+%attr(755,root,root) %{_sbindir}/apache
+
+%dir %attr(1773,root,http) /var/run/apache
+
+%{_mandir}/man8/apache.8*
+
+%attr(750,root,logs) %dir /var/log/apache
+%attr(750,root,logs) %dir /var/log/archiv/apache
+%attr(640,root,logs) %ghost /var/log/apache/*
+
+%dir %{_datadir}
+%attr(755,root,root) %dir %{_datadir}/html
+
+%{_datadir}/errordocs
+%dir %{_datadir}/icons
+%{_datadir}/icons/*.gif
+%{_datadir}/icons/*.png
+%dir %{_datadir}/icons/small
+%{_datadir}/icons/small/*.gif
+%{_datadir}/icons/small/*.png
+%attr(755,root,root) %{_datadir}/cgi-bin
+
+%files apxs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{apxs}
+%{_mandir}/man8/apxs1.8*
+
+%files tools
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/ab
 %attr(755,root,root) %{_sbindir}/apachectl
-%attr(755,root,root) %{_sbindir}/apxs
-%attr(755,root,root) %{_sbindir}/httpd
 %attr(755,root,root) %{_sbindir}/logresolve
 %attr(755,root,root) %{_sbindir}/rotatelogs
-
-%dir %attr(1773,root,http) /var/run/apache
-
 %{_mandir}/man1/htdigest.1*
-%{_mandir}/man8/*
+%{_mandir}/man8/ab*
+%{_mandir}/man8/apachectl*
+%{_mandir}/man8/[l-z]*
 %lang(hu) %{_mandir}/hu/man8/*
 %lang(ko) %{_mandir}/ko/man8/*
 %lang(pl) %{_mandir}/pl/man8/*
 
-%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/*
-
-%dir %{_datadir}
-%dir %{_datadir}/manual
-%dir %{_datadir}/manual/images/
-%{_datadir}/manual/images/apache_header.gif
-%{_datadir}/manual/images/custom_errordocs.gif
-%{_datadir}/manual/images/home.gif
-%{_datadir}/manual/images/index.gif
-%{_datadir}/manual/images/pixel.gif
-%{_datadir}/manual/images/sub.gif
-%{_datadir}/manual/misc
-%dir %{_datadir}/manual/search
-%attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
-%{_datadir}/manual/LICENSE
-%{_datadir}/manual/bind.html.html
-%{_datadir}/manual/bind.html.en
-%lang(fr) %{_datadir}/manual/bind.html.fr
-%lang(ja) %{_datadir}/manual/bind.html.ja.jis
-%{_datadir}/manual/cgi_path.html.html
-%{_datadir}/manual/cgi_path.html.en
-%lang(fr) %{_datadir}/manual/cgi_path.html.fr
-%lang(ja) %{_datadir}/manual/cgi_path.html.ja.jis
-%{_datadir}/manual/configuring.html.html
-%{_datadir}/manual/configuring.html.en
-%lang(fr) %{_datadir}/manual/configuring.html.fr
-%lang(ja) %{_datadir}/manual/configuring.html.ja.jis
-%{_datadir}/manual/content-negotiation.html
-%{_datadir}/manual/custom-error.html.html
-%{_datadir}/manual/custom-error.html.en
-%lang(fr) %{_datadir}/manual/custom-error.html.fr
-%lang(ja) %{_datadir}/manual/custom-error.html.ja.jis
-%{_datadir}/manual/dns-caveats.html.html
-%{_datadir}/manual/dns-caveats.html.en
-%lang(fr) %{_datadir}/manual/dns-caveats.html.fr
-%{_datadir}/manual/dso.html
-%{_datadir}/manual/env.html.html
-%{_datadir}/manual/env.html.en
-%lang(ja) %{_datadir}/manual/env.html.ja.jis
-%{_datadir}/manual/footer.html
-%{_datadir}/manual/handler.html.html
-%{_datadir}/manual/handler.html.en
-%lang(ja) %{_datadir}/manual/handler.html.ja.jis
-%{_datadir}/manual/header.html
-%{_datadir}/manual/index.html.html
-%{_datadir}/manual/index.html.en
-%lang(fr) %{_datadir}/manual/index.html.fr
-%lang(ja) %{_datadir}/manual/index.html.ja.jis
-%{_datadir}/manual/install.html.html
-%{_datadir}/manual/install.html.en
-%lang(es) %{_datadir}/manual/install.html.es
-%lang(fr) %{_datadir}/manual/install.html.fr
-%lang(ja) %{_datadir}/manual/install.html.ja.jis
-%{_datadir}/manual/invoking.html.html
-%{_datadir}/manual/invoking.html.en
-%lang(fr) %{_datadir}/manual/invoking.html.fr
-%{_datadir}/manual/keepalive.html.html
-%{_datadir}/manual/keepalive.html.en
-%lang(ja) %{_datadir}/manual/keepalive.html.ja.jis
-%{_datadir}/manual/location.html
-%{_datadir}/manual/logs.html
-%{_datadir}/manual/multilogs.html
-%{_datadir}/manual/new_features_1_3.html.html
-%{_datadir}/manual/new_features_1_3.html.en
-%lang(ja) %{_datadir}/manual/new_features_1_3.html.ja.jis
-%{_datadir}/manual/process-model.html.html
-%{_datadir}/manual/process-model.html.en
-%lang(ja) %{_datadir}/manual/process-model.html.ja.jis
-%{_datadir}/manual/sections.html.html
-%{_datadir}/manual/sections.html.en
-%lang(ja) %{_datadir}/manual/sections.html.ja.jis
-%{_datadir}/manual/server-wide.html.html
-%{_datadir}/manual/server-wide.html.en
-%lang(fr) %{_datadir}/manual/server-wide.html.fr
-%lang(ja) %{_datadir}/manual/server-wide.html.ja.jis
-%{_datadir}/manual/sitemap.html
-%{_datadir}/manual/sourcereorg.html
-%{_datadir}/manual/stopping.html.html
-%{_datadir}/manual/stopping.html.en
-%lang(fr) %{_datadir}/manual/stopping.html.fr
-%{_datadir}/manual/upgrading_to_1_3.html
-%{_datadir}/manual/urlmapping.html
-%dir %{_datadir}/manual/howto
-%{_datadir}/manual/howto/cgi.html.html
-%{_datadir}/manual/howto/cgi.html.en
-%lang(ja) %{_datadir}/manual/howto/cgi.html.ja.jis
-%{_datadir}/manual/howto/footer.html
-%{_datadir}/manual/howto/header.html
-%{_datadir}/manual/howto/htaccess.html
-%{_datadir}/manual/howto/ssi.html.html
-%{_datadir}/manual/howto/ssi.html.en
-%lang(ja) %{_datadir}/manual/howto/ssi.html.ja.jis
-%dir %{_datadir}/manual/mod
-%{_datadir}/manual/mod/core.html.html
-%{_datadir}/manual/mod/core.html.en
-%lang(fr) %{_datadir}/manual/mod/core.html.fr
-%{_datadir}/manual/mod/directive-dict.html.html
-%{_datadir}/manual/mod/directive-dict.html.en
-%lang(fr) %{_datadir}/manual/mod/directive-dict.html.fr
-%lang(ja) %{_datadir}/manual/mod/directive-dict.html.ja.jis
-%{_datadir}/manual/mod/directives.html.html
-%lang(de) %{_datadir}/manual/mod/directives.html.de
-%{_datadir}/manual/mod/directives.html.en
-%lang(fr) %{_datadir}/manual/mod/directives.html.fr
-%lang(ja) %{_datadir}/manual/mod/directives.html.ja.jis
-%{_datadir}/manual/mod/footer.html
-%{_datadir}/manual/mod/header.html
-%{_datadir}/manual/mod/index-bytype.html.html
-%{_datadir}/manual/mod/index-bytype.html.en
-%lang(fr) %{_datadir}/manual/mod/index-bytype.html.fr
-%lang(ja) %{_datadir}/manual/mod/index-bytype.html.ja.jis
-%{_datadir}/manual/mod/index.html.html
-%{_datadir}/manual/mod/index.html.en
-%lang(fr) %{_datadir}/manual/mod/index.html.fr
-%lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
-%{_datadir}/manual/mod/mod_access.html.html
-%{_datadir}/manual/mod/mod_access.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_access.html.ja.jis
-%{_datadir}/manual/mod/mod_alias.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_alias.html.ja.jis
-%{_datadir}/manual/mod/mod_asis.html.html
-%{_datadir}/manual/mod/mod_asis.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_asis.html.ja.jis
-%{_datadir}/manual/mod/mod_autoindex.html
-%{_datadir}/manual/mod/mod_cern_meta.html
-%{_datadir}/manual/mod/mod_cgi.html.html
-%{_datadir}/manual/mod/mod_cgi.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_cgi.html.ja.jis
-%{_datadir}/manual/mod/mod_env.html.html
-%{_datadir}/manual/mod/mod_env.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_env.html.ja.jis
-%{_datadir}/manual/mod/mod_include.html
-%{_datadir}/manual/mod/mod_log_agent.html
-%{_datadir}/manual/mod/mod_log_config.html
-%{_datadir}/manual/mod/mod_log_referer.html
-%{_datadir}/manual/mod/mod_mime.html.html
-%{_datadir}/manual/mod/mod_mime.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_mime.html.ja.jis
-%{_datadir}/manual/mod/mod_mime_magic.html
-%{_datadir}/manual/mod/mod_negotiation.html.html
-%{_datadir}/manual/mod/mod_negotiation.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_negotiation.html.ja.jis
-%{_datadir}/manual/mod/mod_setenvif.html.html
-%{_datadir}/manual/mod/mod_setenvif.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_setenvif.html.ja.jis
-%{_datadir}/manual/mod/mod_so.html.html
-%{_datadir}/manual/mod/mod_so.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_so.html.ja.jis
-%{_datadir}/manual/mod/mod_speling.html.html
-%{_datadir}/manual/mod/mod_speling.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_speling.html.ja.jis
-%{_datadir}/manual/mod/mod_userdir.html.html
-%{_datadir}/manual/mod/mod_userdir.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_userdir.html.ja.jis
-%{_datadir}/manual/mod/module-dict.html.html
-%{_datadir}/manual/mod/module-dict.html.en
-%lang(ja) %{_datadir}/manual/mod/module-dict.html.ja.jis
-%dir %{_datadir}/manual/programs
-%{_datadir}/manual/programs/ab.html
-%{_datadir}/manual/programs/apachectl.html.html
-%{_datadir}/manual/programs/apachectl.html.en
-%lang(ja) %{_datadir}/manual/programs/apachectl.html.ja.jis
-%{_datadir}/manual/programs/apxs.html
-%{_datadir}/manual/programs/dbmmanage.html
-%{_datadir}/manual/programs/footer.html
-%{_datadir}/manual/programs/header.html
-%{_datadir}/manual/programs/htdigest.html
-%{_datadir}/manual/programs/htpasswd.html.html
-%{_datadir}/manual/programs/htpasswd.html.en
-%lang(ja) %{_datadir}/manual/programs/htpasswd.html.ja.jis
-%{_datadir}/manual/programs/httpd.html.html
-%{_datadir}/manual/programs/httpd.html.en
-%lang(ja) %{_datadir}/manual/programs/httpd.html.ja.jis
-%{_datadir}/manual/programs/index.html.html
-%{_datadir}/manual/programs/index.html.en
-%lang(ja) %{_datadir}/manual/programs/index.html.ja.jis
-%{_datadir}/manual/programs/logresolve.html
-%{_datadir}/manual/programs/other.html
-%{_datadir}/manual/programs/rotatelogs.html
-%dir %{_datadir}/manual/vhosts
-%{_datadir}/manual/vhosts/details.html
-%{_datadir}/manual/vhosts/examples.html
-%{_datadir}/manual/vhosts/fd-limits.html.html
-%{_datadir}/manual/vhosts/fd-limits.html.en
-%lang(ja) %{_datadir}/manual/vhosts/fd-limits.html.ja.jis
-%{_datadir}/manual/vhosts/footer.html
-%{_datadir}/manual/vhosts/header.html
-%{_datadir}/manual/vhosts/host.html
-%{_datadir}/manual/vhosts/index.html.html
-%{_datadir}/manual/vhosts/index.html.en
-%lang(ja) %{_datadir}/manual/vhosts/index.html.ja.jis
-%{_datadir}/manual/vhosts/ip-based.html
-%{_datadir}/manual/vhosts/mass.html
-%{_datadir}/manual/vhosts/name-based.html.html
-%{_datadir}/manual/vhosts/name-based.html.en
-%lang(ja) %{_datadir}/manual/vhosts/name-based.html.ja.jis
-%{_datadir}/manual/vhosts/vhosts-in-depth.html
-%{_datadir}/manual/vhosts/virtual-host.html
-
-%attr(755,root,root) %dir %{_datadir}/html
+%files index
+%defattr(644,root,root,755)
 %config(noreplace,missingok) %{_datadir}/html/index.html
 # note: html extensions are not the same as (g)libc locale names
 %lang(ca) %{_datadir}/html/index.html.ca
@@ -1562,13 +1433,14 @@ fi
 %lang(es) %{_datadir}/html/index.html.es
 %lang(fr) %{_datadir}/html/index.html.fr
 %lang(he) %{_datadir}/html/index.html.he.iso8859-8
+%lang(hu) %{_datadir}/html/index.html.hu
 %lang(it) %{_datadir}/html/index.html.it
 %lang(ja) %{_datadir}/html/index.html.ja.jis
 %lang(ko) %{_datadir}/html/index.html.kr.iso-kr
 %lang(de_LU) %{_datadir}/html/index.html.lb.utf8
 %lang(nl) %{_datadir}/html/index.html.nl
 %lang(nn) %{_datadir}/html/index.html.nn
-%lang(no) %{_datadir}/html/index.html.no
+%lang(nb) %{_datadir}/html/index.html.no
 %lang(pl) %{_datadir}/html/index.html.po.iso-pl
 %lang(pt) %{_datadir}/html/index.html.pt
 %lang(pt_BR) %{_datadir}/html/index.html.pt-br
 %lang(ru) %{_datadir}/html/index.html.ru.ucs4
 %lang(ru) %{_datadir}/html/index.html.ru.utf8
 %lang(sv) %{_datadir}/html/index.html.se
-%lang(zh_TW) %{_datadir}/html/index.html.zh
-
+%lang(zh_TW) %{_datadir}/html/index.html.zh-tw.big5
 %{_datadir}/html/*.gif
-%{_datadir}/errordocs
-%dir %{_datadir}/icons
-%{_datadir}/icons/*.gif
-%{_datadir}/icons/*.png
-%dir %{_datadir}/icons/small
-%{_datadir}/icons/small/*.gif
-%{_datadir}/icons/small/*.png
-%attr(755,root,root) %{_datadir}/cgi-bin
-%dir %{webappsdir}
+
+%files doc
+%defattr(644,root,root,755)
+%dir %{manualdir}
+%dir %{manualdir}/images
+%{manualdir}/images/apache_header.gif
+%{manualdir}/images/custom_errordocs.gif
+%{manualdir}/images/home.gif
+%{manualdir}/images/index.gif
+%{manualdir}/images/pixel.gif
+%{manualdir}/images/sub.gif
+%{manualdir}/misc
+%{manualdir}/LICENSE
+%{manualdir}/bind.html.html
+%{manualdir}/bind.html.en
+%lang(fr) %{manualdir}/bind.html.fr
+%lang(ja) %{manualdir}/bind.html.ja.jis
+%{manualdir}/configuring.html.html
+%{manualdir}/configuring.html.en
+%lang(fr) %{manualdir}/configuring.html.fr
+%lang(ja) %{manualdir}/configuring.html.ja.jis
+%{manualdir}/content-negotiation.html.html
+%{manualdir}/content-negotiation.html.en
+%lang(ja) %{manualdir}/content-negotiation.html.ja.jis
+%{manualdir}/custom-error.html.html
+%{manualdir}/custom-error.html.en
+%lang(fr) %{manualdir}/custom-error.html.fr
+%lang(ja) %{manualdir}/custom-error.html.ja.jis
+%{manualdir}/dns-caveats.html.html
+%{manualdir}/dns-caveats.html.en
+%lang(fr) %{manualdir}/dns-caveats.html.fr
+%lang(ja) %{manualdir}/dns-caveats.html.ja.jis
+%{manualdir}/dso.html
+%{manualdir}/env.html.html
+%{manualdir}/env.html.en
+%lang(ja) %{manualdir}/env.html.ja.jis
+%{manualdir}/footer.html
+%{manualdir}/handler.html.html
+%{manualdir}/handler.html.en
+%lang(ja) %{manualdir}/handler.html.ja.jis
+%{manualdir}/header.html
+%{manualdir}/index.html.html
+%{manualdir}/index.html.en
+%lang(fr) %{manualdir}/index.html.fr
+%lang(ja) %{manualdir}/index.html.ja.jis
+%{manualdir}/install.html.html
+%{manualdir}/install.html.en
+%lang(es) %{manualdir}/install.html.es
+%lang(fr) %{manualdir}/install.html.fr
+%lang(ja) %{manualdir}/install.html.ja.jis
+%{manualdir}/invoking.html.html
+%{manualdir}/invoking.html.en
+%lang(fr) %{manualdir}/invoking.html.fr
+%lang(ja) %{manualdir}/invoking.html.ja.jis
+%{manualdir}/keepalive.html.html
+%{manualdir}/keepalive.html.en
+%lang(ja) %{manualdir}/keepalive.html.ja.jis
+%{manualdir}/location.html.html
+%{manualdir}/location.html.en
+%lang(ja) %{manualdir}/location.html.ja.jis
+%{manualdir}/logs.html
+%{manualdir}/multilogs.html
+%{manualdir}/new_features_1_3.html.html
+%{manualdir}/new_features_1_3.html.en
+%lang(ja) %{manualdir}/new_features_1_3.html.ja.jis
+%{manualdir}/process-model.html.html
+%{manualdir}/process-model.html.en
+%lang(ja) %{manualdir}/process-model.html.ja.jis
+%{manualdir}/sections.html.html
+%{manualdir}/sections.html.en
+%lang(ja) %{manualdir}/sections.html.ja.jis
+%{manualdir}/server-wide.html.html
+%{manualdir}/server-wide.html.en
+%lang(fr) %{manualdir}/server-wide.html.fr
+%lang(ja) %{manualdir}/server-wide.html.ja.jis
+%{manualdir}/sitemap.html
+%{manualdir}/sourcereorg.html
+%{manualdir}/stopping.html.html
+%{manualdir}/stopping.html.en
+%lang(fr) %{manualdir}/stopping.html.fr
+%{manualdir}/upgrading_to_1_3.html
+%{manualdir}/urlmapping.html
+%dir %{manualdir}/howto
+%{manualdir}/howto/cgi.html.html
+%{manualdir}/howto/cgi.html.en
+%lang(ja) %{manualdir}/howto/cgi.html.ja.jis
+%{manualdir}/howto/footer.html
+%{manualdir}/howto/header.html
+%{manualdir}/howto/htaccess.html
+%{manualdir}/howto/ssi.html.html
+%{manualdir}/howto/ssi.html.en
+%lang(ja) %{manualdir}/howto/ssi.html.ja.jis
+%dir %{manualdir}/mod
+%{manualdir}/mod/core.html.html
+%{manualdir}/mod/core.html.en
+%lang(fr) %{manualdir}/mod/core.html.fr
+%lang(ja) %{manualdir}/mod/core.html.ja.jis
+%{manualdir}/mod/directive-dict.html.html
+%{manualdir}/mod/directive-dict.html.en
+%lang(fr) %{manualdir}/mod/directive-dict.html.fr
+%lang(ja) %{manualdir}/mod/directive-dict.html.ja.jis
+%{manualdir}/mod/directives.html.html
+%lang(de) %{manualdir}/mod/directives.html.de
+%{manualdir}/mod/directives.html.en
+%lang(fr) %{manualdir}/mod/directives.html.fr
+%lang(ja) %{manualdir}/mod/directives.html.ja.jis
+%{manualdir}/mod/footer.html
+%{manualdir}/mod/header.html
+%{manualdir}/mod/index-bytype.html.html
+%{manualdir}/mod/index-bytype.html.en
+%lang(fr) %{manualdir}/mod/index-bytype.html.fr
+%lang(ja) %{manualdir}/mod/index-bytype.html.ja.jis
+%{manualdir}/mod/index.html.html
+%{manualdir}/mod/index.html.en
+%lang(fr) %{manualdir}/mod/index.html.fr
+%lang(ja) %{manualdir}/mod/index.html.ja.jis
+%{manualdir}/mod/mod_access.html.html
+%{manualdir}/mod/mod_access.html.en
+%lang(ja) %{manualdir}/mod/mod_access.html.ja.jis
+%{manualdir}/mod/mod_alias.html.html
+%{manualdir}/mod/mod_alias.html.en
+%lang(ja) %{manualdir}/mod/mod_alias.html.ja.jis
+%{manualdir}/mod/mod_asis.html.html
+%{manualdir}/mod/mod_asis.html.en
+%lang(ja) %{manualdir}/mod/mod_asis.html.ja.jis
+%{manualdir}/mod/mod_autoindex.html.html
+%{manualdir}/mod/mod_autoindex.html.en
+%lang(ja) %{manualdir}/mod/mod_autoindex.html.ja.jis
+%{manualdir}/mod/mod_cern_meta.html
+%{manualdir}/mod/mod_cgi.html.html
+%{manualdir}/mod/mod_cgi.html.en
+%lang(ja) %{manualdir}/mod/mod_cgi.html.ja.jis
+%{manualdir}/mod/mod_env.html.html
+%{manualdir}/mod/mod_env.html.en
+%lang(ja) %{manualdir}/mod/mod_env.html.ja.jis
+%{manualdir}/mod/mod_include.html
+%{manualdir}/mod/mod_log_agent.html
+%{manualdir}/mod/mod_log_config.html.html
+%{manualdir}/mod/mod_log_config.html.en
+%lang(ja) %{manualdir}/mod/mod_log_config.html.ja.jis
+%{manualdir}/mod/mod_log_referer.html
+%{manualdir}/mod/mod_mime.html.html
+%{manualdir}/mod/mod_mime.html.en
+%lang(ja) %{manualdir}/mod/mod_mime.html.ja.jis
+%{manualdir}/mod/mod_mime_magic.html
+%{manualdir}/mod/mod_negotiation.html.html
+%{manualdir}/mod/mod_negotiation.html.en
+%lang(ja) %{manualdir}/mod/mod_negotiation.html.ja.jis
+%{manualdir}/mod/mod_setenvif.html.html
+%{manualdir}/mod/mod_setenvif.html.en
+%lang(ja) %{manualdir}/mod/mod_setenvif.html.ja.jis
+%{manualdir}/mod/mod_so.html.html
+%{manualdir}/mod/mod_so.html.en
+%lang(ja) %{manualdir}/mod/mod_so.html.ja.jis
+%{manualdir}/mod/mod_speling.html.html
+%{manualdir}/mod/mod_speling.html.en
+%lang(ja) %{manualdir}/mod/mod_speling.html.ja.jis
+%{manualdir}/mod/mod_userdir.html.html
+%{manualdir}/mod/mod_userdir.html.en
+%lang(ja) %{manualdir}/mod/mod_userdir.html.ja.jis
+%{manualdir}/mod/module-dict.html.html
+%{manualdir}/mod/module-dict.html.en
+%lang(ja) %{manualdir}/mod/module-dict.html.ja.jis
+%dir %{manualdir}/programs
+%{manualdir}/programs/ab.html
+%{manualdir}/programs/apachectl.html.html
+%{manualdir}/programs/apachectl.html.en
+%lang(ja) %{manualdir}/programs/apachectl.html.ja.jis
+%{manualdir}/programs/apxs.html
+%{manualdir}/programs/dbmmanage.html
+%{manualdir}/programs/footer.html
+%{manualdir}/programs/header.html
+%{manualdir}/programs/htdigest.html
+%{manualdir}/programs/htpasswd.html.html
+%{manualdir}/programs/htpasswd.html.en
+%lang(ja) %{manualdir}/programs/htpasswd.html.ja.jis
+%{manualdir}/programs/httpd.html.html
+%{manualdir}/programs/httpd.html.en
+%lang(ja) %{manualdir}/programs/httpd.html.ja.jis
+%{manualdir}/programs/index.html.html
+%{manualdir}/programs/index.html.en
+%lang(ja) %{manualdir}/programs/index.html.ja.jis
+%{manualdir}/programs/logresolve.html
+%{manualdir}/programs/other.html
+%{manualdir}/programs/rotatelogs.html
+%dir %{manualdir}/vhosts
+%{manualdir}/vhosts/details.html
+%{manualdir}/vhosts/examples.html
+%{manualdir}/vhosts/fd-limits.html.html
+%{manualdir}/vhosts/fd-limits.html.en
+%lang(ja) %{manualdir}/vhosts/fd-limits.html.ja.jis
+%{manualdir}/vhosts/footer.html
+%{manualdir}/vhosts/header.html
+%{manualdir}/vhosts/host.html
+%{manualdir}/vhosts/index.html.html
+%{manualdir}/vhosts/index.html.en
+%lang(ja) %{manualdir}/vhosts/index.html.ja.jis
+%{manualdir}/vhosts/ip-based.html
+%{manualdir}/vhosts/mass.html
+%{manualdir}/vhosts/name-based.html.html
+%{manualdir}/vhosts/name-based.html.en
+%lang(ja) %{manualdir}/vhosts/name-based.html.ja.jis
+%{manualdir}/vhosts/vhosts-in-depth.html
+%{manualdir}/vhosts/virtual-host.html
+# suexec
+%{manualdir}/suexec.html.html
+%{manualdir}/suexec.html.en
+%lang(ja) %{manualdir}/suexec.html.ja.jis
+%{manualdir}/programs/suexec.html.html
+%{manualdir}/programs/suexec.html.en
+%lang(ja) %{manualdir}/programs/suexec.html.ja.jis
+# mod_actions
+%{manualdir}/mod/mod_actions.html.html
+%{manualdir}/mod/mod_actions.html.en
+%lang(ja) %{manualdir}/mod/mod_actions.html.ja.jis
+# mod_auth
+%{manualdir}/howto/auth.html
+%{manualdir}/mod/mod_auth.html.html
+%{manualdir}/mod/mod_auth.html.en
+%lang(ja) %{manualdir}/mod/mod_auth.html.ja.jis
+# mod_anon
+%{manualdir}/mod/mod_auth_anon.html
+# mod_auth_db
+%{manualdir}/mod/mod_auth_db.html
+# mod_auth_digest
+%{manualdir}/mod/mod_auth_digest.html
+# mod_define
+%{manualdir}/mod/mod_define.html
+# mod_digest
+%{manualdir}/mod/mod_digest.html
+# mod_dir
+%{manualdir}/mod/mod_dir.html.html
+%{manualdir}/mod/mod_dir.html.en
+%lang(ja) %{manualdir}/mod/mod_dir.html.ja.jis
+# mod_expires
+%{manualdir}/mod/mod_expires.html
+# mod_headers
+%{manualdir}/mod/mod_headers.html
+# mod_imap
+%{manualdir}/mod/mod_imap.html
+# mod_info
+%{manualdir}/mod/mod_info.html.html
+%{manualdir}/mod/mod_info.html.en
+%lang(ja) %{manualdir}/mod/mod_info.html.ja.jis
+# mod_log_forensic
+%{manualdir}/mod/mod_log_forensic.html.html
+%{manualdir}/mod/mod_log_forensic.html.en
+# mod_mmap_static
+%{manualdir}/mod/mod_mmap_static.html
+# mod_proxy
+%{manualdir}/mod/mod_proxy.html
+# mod_rewrite
+%{manualdir}/mod/mod_rewrite.html.html
+%{manualdir}/mod/mod_rewrite.html.en
+%lang(ja) %{manualdir}/mod/mod_rewrite.html.ja.jis
+%{manualdir}/images/mod_rewrite*
+# mod_status
+%{manualdir}/mod/mod_status.html
+# mod_unique_id
+%{manualdir}/mod/mod_unique_id.html.html
+%{manualdir}/mod/mod_unique_id.html.en
+%lang(ja) %{manualdir}/mod/mod_unique_id.html.ja.jis
+# mod_usertrack
+%{manualdir}/mod/mod_cookies.html
+%{manualdir}/mod/mod_usertrack.html
+# mod_vhost_alias
+%{manualdir}/mod/mod_vhost_alias.html
 
 %files suexec
 %defattr(644,root,root,755)
 %attr(4755,root,root) %{_sbindir}/suexec
-%{_datadir}/manual/suexec.html.html
-%{_datadir}/manual/suexec.html.en
-%lang(ja) %{_datadir}/manual/suexec.html.ja.jis
-%{_datadir}/manual/programs/suexec.html.html
-%{_datadir}/manual/programs/suexec.html.en
-%lang(ja) %{_datadir}/manual/programs/suexec.html.ja.jis
 
 %files devel
 %defattr(644,root,root,755)
 
 %files mod_actions
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_actions.conf
 %attr(755,root,root) %{_libexecdir}/mod_actions.so
-%{_datadir}/manual/mod/mod_actions.html.html
-%{_datadir}/manual/mod/mod_actions.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_actions.html.ja.jis
 
 %files mod_auth
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth.so
+# FIXME apache2 puts in sbin
 %attr(755,root,root) %{_bindir}/htpasswd
-%{_datadir}/manual/howto/auth.html
-%{_datadir}/manual/mod/mod_auth.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_auth.html.ja.jis
+%{_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}/conf.d/*_mod_auth_anon.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
-%{_datadir}/manual/mod/mod_auth_anon.html
 
 %files mod_auth_db
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth_db.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
 %attr(755,root,root) %{_bindir}/dbmmanage
-%{_datadir}/manual/mod/mod_auth_db.html
 %{_mandir}/man1/dbmmanage.1*
-%{_mandir}/man1/htpasswd.1*
 
 %files mod_auth_digest
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth_digest.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
-%{_datadir}/manual/mod/mod_auth_digest.html
+
+%files mod_autoindex
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_autoindex.conf
+%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
 
 %files mod_define
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_define.conf
 %attr(755,root,root) %{_libexecdir}/mod_define.so
-%{_datadir}/manual/mod/mod_define.html
 
 %files mod_digest
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_digest.conf
 %attr(755,root,root) %{_libexecdir}/mod_digest.so
-%{_datadir}/manual/mod/mod_digest.html
 
 %files mod_dir
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_dir.conf
 %attr(755,root,root) %{_libexecdir}/mod_dir.so
-%{_datadir}/manual/mod/mod_dir.html.html
-%{_datadir}/manual/mod/mod_dir.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_dir.html.ja.jis
 
 %files mod_expires
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_expires.conf
 %attr(755,root,root) %{_libexecdir}/mod_expires.so
-%{_datadir}/manual/mod/mod_expires.html
 
 %files mod_headers
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_headers.conf
 %attr(755,root,root) %{_libexecdir}/mod_headers.so
-%{_datadir}/manual/mod/mod_headers.html
-
-%files mod_mmap_static
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
-%{_datadir}/manual/mod/mod_mmap_static.html
 
 %files mod_imap
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_imap.conf
 %attr(755,root,root) %{_libexecdir}/mod_imap.so
-%{_datadir}/manual/mod/mod_imap.html
 
 %files mod_info
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_info.conf
 %attr(755,root,root) %{_libexecdir}/mod_info.so
-%{_datadir}/manual/mod/mod_info.html.html
-%{_datadir}/manual/mod/mod_info.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_info.html.ja.jis
+
+%files mod_log_forensic
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_forensic.conf
+%attr(755,root,root) %{_libexecdir}/mod_log_forensic.so
+
+%files mod_mmap_static
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mmap_static.conf
+%attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
 
 %files mod_proxy
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_proxy.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_proxy.conf
 %attr(755,root,root) %{_libexecdir}/libproxy.so
-%{_datadir}/manual/mod/mod_proxy.html
 %dir %attr(770,root,http) /var/cache/apache
 
 %files mod_rewrite
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_rewrite.conf
 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
-%{_datadir}/manual/mod/mod_rewrite.html
-%{_datadir}/manual/images/mod_rewrite*
 
 %files mod_status
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_status.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_status.conf
 %attr(755,root,root) %{_libexecdir}/mod_status.so
-%{_datadir}/manual/mod/mod_status.html
 
 %files mod_unique_id
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_unique_id.conf
 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
-%{_datadir}/manual/mod/mod_unique_id.html.html
-%{_datadir}/manual/mod/mod_unique_id.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_unique_id.html.ja.jis
 
 %files mod_usertrack
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_usertrack.conf
 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
-%{_datadir}/manual/mod/mod_cookies.html
-%{_datadir}/manual/mod/mod_usertrack.html
 
 %files mod_vhost_alias
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf
 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
-%{_datadir}/manual/mod/mod_vhost_alias.html
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf
This page took 0.241892 seconds and 4 git commands to generate.