]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.spec
- rotate combined_log too!!
[packages/apache1.git] / apache1.spec
index 5f8b08977b787b082bf8613aa97b3142b2a150ca..acc25acdec97cad6bde7410bd0ccbd4750a8b0d9 100644 (file)
@@ -2,6 +2,8 @@
 # Conditional build:
 %bcond_with    rewrite_ldap    # enable ldap map support for mod_rewrite (alpha)
 %bcond_without ipv6            # disable IPv6 support
+%bcond_with    minimal         # minimal apache, without any modules
+%bcond_with    lingerd         # build with lingerd support
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       The most widely used Web server on the Internet
@@ -26,12 +28,12 @@ Summary(tr):        Lider WWW taray
 Summary(uk):   îÁÊÐÏÐÕÌÑÒΦÛÉÊ Web-Server
 Summary(zh_CN):        Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
 Name:          apache1
-Version:       1.3.31
-Release:       5.9
+Version:       1.3.36
+Release:       1.5
 License:       Apache Group
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: bd548a06ac48dda496b4e613572bb020
+# Source0-md5: d6c0709fc1f20d6d93d30435fcfc4843
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       apache-icons.tar.gz
@@ -39,42 +41,91 @@ Source3:    apache-icons.tar.gz
 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
-Source7:       %{name}.monitrc
-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
+Source25:      http://images.iagora.com/media/software/lingerd/lingerd-0.94.tar.gz
+# Source25-md5:        6401015bafad4f44fdf8a9a1795d9258
 Patch0:                %{name}-PLD.patch
 Patch1:                %{name}-suexec.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/
+# http://allafrica.com/tools/apache/mod_proxy/mod_proxy-khk_1.3.26-patch.diff with eapi duplicates removed
+Patch6:                %{name}-mod_proxy-khk.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}-less-libs.patch
+Patch24:       %{name}-rwrite-debug.patch
+Patch25:       %{name}-apxs-DESTDIR.patch
+# from debian apache_1.3.34-2.diff.gz
+Patch26:       %{name}-regex_must_conform_to_posix_for_LFS_to_work.patch
+Patch27:       %{name}-suexec_of_death.patch
+Patch28:       %{name}-suexec_reopenlog.patch
+Patch29:       %{name}-autoindex_studly.patch
+Patch30:       %{name}-autoindex_indexes.patch
+Patch31:       %{name}-autoindex_generator.patch
+Patch32:       %{name}-ab.8_formatting_error.patch
+Patch33:       %{name}-proxy_content_base.patch
+Patch34:       %{name}-inetdfix.patch
+Patch35:       %{name}-configure_hashbang.patch
+Patch36:       %{name}-log_files_permission.patch
+Patch37:       %{name}-htpasswd_do_not_trash_extra_fields.patch
+Patch38:       %{name}-GNU_xargs.patch
+Patch39:       %{name}-security_htdigest_local_buffer_overflow.patch
+Patch40:       %{name}-security_htpasswd_user_buffer_overflow.patch
+Patch41:       %{name}-security_check_forensic_tempfiles.patch
+URL:           http://httpd.apache.org/
 BuildRequires: db-devel >= 4.1
 BuildRequires: mm-devel >= 1.3.0
 %{?with_rewrite_ldap:BuildRequires:    openldap-devel}
-BuildRequires: rpmbuild(macros) >= 1.159
-PreReq:                mm
-PreReq:                perl-base
-PreReq:                rc-scripts
+BuildRequires: perl-base
+BuildRequires: rpm-build >= 4.4.0
+BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      rc-scripts
+%if %{without minimal}
+# essental modules (maybe remove these in future if all Requires in
+# place for other packages).
+Requires:      %{name}-mod_access = %{version}-%{release}
+Requires:      %{name}-mod_alias = %{version}-%{release}
+Requires:      %{name}-mod_log_config = %{version}-%{release}
+Requires:      %{name}-mod_mime = %{version}-%{release}
+%endif
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getent
 Requires(pre): /usr/bin/getgid
@@ -82,29 +133,29 @@ Requires(pre):     /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
 Requires(pre): /usr/sbin/usermod
 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}-%{release}
+%{?with_ipv6:Provides: apache1(ipv6)}
+%{?with_lingerd:Provides:      apache1(lingerd)}
 Provides:      group(http)
-Provides:      httpd
 Provides:      user(http)
 Provides:      webserver = apache
 Obsoletes:     apache < 2.0.0
 Obsoletes:     apache-extra
 Obsoletes:     apache6
+# for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
+Conflicts:     rpm < 4.4.2-0.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/apache
 %define                _includedir     %{_prefix}/include/apache1
 %define                _libexecdir     %{_prefix}/%{_lib}/apache1
+%define                _datadir        %{httpdir}
 %define                apxs            /usr/sbin/apxs1
 %define                httpdir         /home/services/apache
-%define                _datadir        %{httpdir}
 %define                manualdir       %{_prefix}/share/apache1-manual
 
 %description
@@ -112,6 +163,9 @@ Apache is a powerful, full-featured, efficient and freely-available
 Web server. Apache is also the most popular Web server on the
 Internet.
 
+%{?with_lingerd:This version of Apache includes lingerd support:}
+%{?with_lingerd:<http://www.iagora.com/about/software/lingerd/>.}
+
 %description -l cs
 Apache je výkonný plnì funkèní efektivní a volnì dostupný WWW server.
 Je to nejpopulárnìj¹í WWW server v Internetu.
@@ -201,10 +255,10 @@ 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
+Group:         Networking/Daemons
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Obsoletes:     apache-suexec < 2.0.0
 
@@ -289,6 +343,20 @@ Apache 1.3.x manual.
 %description doc -l pl
 Podrêcznik do Apache'a 1.3.x.
 
+%package errordocs
+Summary:       Apache 1.3.x HTTP error documents
+Summary(pl):   Dokumenty opisuj±ce b³êdy HTTP dla Apache'a 1.3.x
+Group:         Applications/WWW
+Requires:      %{name}-mod_include = %{version}-%{release}
+
+%description errordocs
+Apache 1.3.x HTTP error documents. Currently in English and Polish
+only.
+
+%description errordocs -l pl
+Dokumenty opisuj±ce b³êdy HTTP dla Apache'a 1.3.x. Aktualnie tylko po
+angielsku i polsku.
+
 %package devel
 Summary:       Module development tools for the Apache web server
 Summary(cs):   Hlavièkové soubory pro Apache Web server
@@ -301,7 +369,7 @@ Summary(is):        Hausaskr
 Summary(it):   File include per il web server Apache
 Summary(ja):   Apache Web ¥µ¡¼¥Ð¡¼ÍѤγ«È¯¥Ä¡¼¥ë
 Summary(nb):   Headerfiler for webtjeneren Apache
-Summary(pl):   Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www 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
@@ -314,6 +382,7 @@ Group:              Networking/Utilities
 Requires:      %{name}-apxs = %{version}-%{release}
 Provides:      %{name}(EAPI)-devel = %{version}-%{release}
 Provides:      apache(EAPI)-devel = %{version}-%{release}
+%{?with_ipv6:Provides: apache1(ipv6)-devel}
 Obsoletes:     apache-devel < 2.0.0
 
 %description devel
@@ -368,12 +437,42 @@ Paketet apache-devel inneh
 %description devel -l uk
 ðÁËÅÔ apache-devel Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÄÌÑ Web Server'Á.
 
+%package mod_access
+Summary:       Access control based on client hostname or IP address
+Summary(pl):   Kontrola dostêpu w oparciu o nazwê hosta lub adres IP klienta
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_access) = %{version}-%{release}
+Provides:      webserver(access)
+
+%description mod_access
+The directives provided by mod_access are used in <Directory>,
+<Files>, and <Location> sections as well as .htaccess files to control
+access to particular parts of the server. Access can be controlled
+based on the client hostname, IP address, or other characteristics of
+the client request, as captured in environment variables. The Allow
+and Deny directives are used to specify which clients are or are not
+allowed access to the server, while the Order directive sets the
+default access state, and configures how the Allow and Deny directives
+interact with each other.
+
+%description mod_access -l pl
+Dyrektyw dostarczanych przez mod_access mo¿na u¿ywaæ w sekcjach
+<Directory>, <Files> i <Location>, a tak¿e plikach .htaccess w celu
+kontrolowania dostêpu do poszczególnych czê¶ci serwera. Dostêp mo¿e
+byæ kontrolowany w oparciu o nazwê hosta lub adres IP klienta albo
+inn± charakterystykê ¿±dania klienta wychwycon± przez zmienne
+¶rodowiskowe. Dyrektywy Allow i Deny s± u¿ywane w celu okre¶lenia
+którzy klienci maj± dostêp do serwera, a którzy go nie maj±, natomiast
+dyrektywa Order ustawia stan domy¶lny i okre¶la sposób, w jaki
+dyrektywy Allow i Deny wp³ywaj± na siebie nawzajem.
+
 %package mod_actions
 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
+Summary(pl):   Modu³ dla Apache'a do uruchamiania skryptów cgi
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_actions) = %{version}-%{release}
 Obsoletes:     apache-mod_actions < 2.0.0
 
 %description mod_actions
@@ -382,15 +481,92 @@ scripts whenever a file of a certain type is requested. This makes it
 much easier to execute scripts that process files.
 
 %description mod_actions -l pl
-Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
-¿±danie pobrania pliku okre¶lonego typu.
+Ten modu³ pozwala na uruchamianie skryptów CGI w momencie gdy
+nadchodzi ¿±danie pobrania pliku okre¶lonego typu. Znacznie u³atwia to
+wykonywanie skryptów przetwarzaj±cych pliki.
+
+%package mod_alias
+Summary:       Mapping different parts of the host filesystem in the document tree, and URL redirection
+Summary(pl):   Odwzorowywanie czê¶ci systemu plików w drzewie dokumentów oraz przekierowywanie URL-i
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_alias) = %{version}-%{release}
+Provides:      webserver(alias)
+
+%description mod_alias
+This module provides for mapping different parts of the host
+filesystem in the document tree, and for URL redirection. The
+directives contained in this module allow for manipulation and control
+of URLs as requests arrive at the server. The Alias and ScriptAlias
+directives are used to map between URLs and filesystem paths. This
+allows for content which is not directly under the DocumentRoot to be
+served as part of the web document tree. The ScriptAlias directive has
+the additional effect of marking the target directory as containing
+only CGI scripts.
+
+The Redirect directives are used to instruct clients to make a new
+request with a different URL. They are often used when a resource has
+moved to a new location.
+
+A more powerful and flexible set of directives for manipulating URLs
+is contained in the mod_rewrite module.
+
+%description mod_alias -l pl
+Ten modu³ umo¿liwia odwzorowywanie ró¿nych czê¶ci systemu plików
+serwera w drzewie dokumentów oraz przekierowywanie URL-i. Dyrektywy
+obs³ugiwane przez ten modu³ umo¿liwiaj± manipulowanie i kontrolê URL-i
+podczas przychodzenia ¿±dañ do serwera. Dyrektywy Alias i ScriptAlias
+s³u¿± do odwzorowywania pomiêdzy URL-ami i ¶cie¿kami w systemie
+plików. Pozwala to na udostêpnianie tre¶ci nie umieszczonej
+bezpo¶rednio wewn±trz DocumentRoota jako czê¶ci drzewa dokumentów WWW.
+Dyrektywa ScriptAlias ponadto oznacza katalog docelowy jako
+zawieraj±cy wy³±cznie skrypty CGI.
+
+Dyrektywy Redirect s³u¿± do instruowania klientów o konieczno¶ci
+wys³ania nowego ¿±dania z innym URL-em. S± one zwykle u¿ywane w
+sytuacji, kiedy zasoby zosta³y przeniesione w nowe miejsce.
+
+Potê¿niejszy i bardziej elastyczny zbiór dyrektyw do manipulowania
+URL-ami znajduje siê w module mod_rewrite.
+
+%package mod_asis
+Summary:       Sending files which contain their own HTTP headers
+Summary(pl):   Wysy³anie plików zawieraj±cych w³asne nag³ówki HTTP
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_asis) = %{version}-%{release}
+
+%description mod_asis
+This module provides the handler send-as-is which causes Apache to
+send the document without adding most of the usual HTTP headers.
+
+This can be used to send any kind of data from the server, including
+redirects and other special HTTP responses, without requiring a
+cgi-script or an nph script.
+
+For historical reasons, this module will also process any file with
+the MIME type httpd/send-as-is.
+
+%description mod_asis -l pl
+Ten modu³ dostarcza funkcjê obs³ugi send-as-is powoduj±c±, ¿e Apache
+wysy³a dokument bez dodawania wiêkszo¶ci zwykle stosowanych nag³ówków
+HTTP.
+
+Mo¿e on s³u¿yæ do wysy³ania z serwera dowolnego rodzaju danych,
+w³±cznie z przekierowaniami i innymi specjalnymi odpowiedziami HTTP
+bez u¿ycia skryptu CGI czy nph.
+
+Ze wzglêdów historycznych ten modu³ przetwarza tak¿e wszelkie pliki o
+typie MIME httpd/send-as-is.
 
 %package mod_auth
 Summary:       Apache module with user authentication using textual files
-Summary(pl):   Modu³ autentykacji u¿ytkownika przy u¿yciu plików tekstowych dla Apache
+Summary(pl):   Modu³ uwierzytelniania u¿ytkownika przy u¿yciu plików tekstowych dla Apache
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Requires:      htpasswd
+Provides:      apache(mod_auth) = %{version}-%{release}
+Provides:      webserver(auth)
 Obsoletes:     apache-mod_auth < 2.0.0
 
 %description mod_auth
@@ -398,21 +574,21 @@ This package contains mod_auth module. It provides for user
 authentication using textual files.
 
 %description mod_auth -l pl
-Ten pakiet zawiera modu³ mod_auth. S³u¿y on do autentykacji przy
+Ten pakiet zawiera modu³ mod_auth. S³u¿y on do uwierzytelniania przy
 u¿yciu plików tekstowych.
 
 %package mod_auth_anon
 Summary:       Apache module with "anonymous" user access authentication
 Summary(pl):   Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_auth_anon) = %{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
@@ -423,66 +599,126 @@ 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
-postaci adresu pocztowego u¿ytkownika).
+anonimowych serwerów FTP (u¿ytkownik "anonymous" oraz has³o w postaci
+adresu pocztowego u¿ytkownika). Podawane adresy mog± byæ logowane. W
+po³±czeniu z innymi (opartymi o bazy danych) metodami kontroli dostêpu
+umo¿liwia efektywne ¶ledzenie u¿ytkowników i dostosowywanie w
+zale¿no¶ci od profilu u¿ytkownika, jednocze¶nie zachowuj±c stronê
+otwart± dla "niezarejestrowanych" u¿ytkowników. Jedn± z zalet u¿ywania
+¶ledzenia u¿ytkowników opartego o uwierzytelnienie nad ciasteczkami i
+¶miesznymi prze-/przyrostkami URL-i jest ca³kowita niezale¿no¶æ od
+przegl±darki i umo¿liwienie u¿ytkownikom wspó³dzielenia URL-i.
 
 %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
+Summary(pl):   Modu³ Apache'a z mechanizmem uwierzytelniania u¿ywaj±cym plików Berkeley DB
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
+Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
-Requires:      %{apxs}
+Provides:      apache(mod_auth_db) = %{version}-%{release}
 Obsoletes:     apache-mod_auth_db < 2.0.0
 
 %description mod_auth_db
 This package contains mod_auth_db module. It provides for user
-authentication using Berkeley DB files. It is an alternative to DBM
-files for those systems which support DB and not DBM. It is only
-available in Apache 1.1 and later.
+authentication using Berkeley DB files.
 
 %description mod_auth_db -l pl
-Ten pakiet zawiera modu³ mod_auth_db. Modu³ ten s³u¿y do autentykacji
-ale jako plików danych u¿ywa Berkeley DB.
+Ten pakiet zawiera modu³ mod_auth_db. Modu³ ten s³u¿y do
+uwierzytelniania, ale jako plików danych u¿ywa Berkeley DB.
 
 %package mod_auth_digest
 Summary:       Apache user authentication module using MD5 Digest Authentication
-Summary(pl):   Modu³ apache do autoryzacji MD5
+Summary(pl):   Modu³ Apache'a do uwierzytelniania metod± MD5 Digest Authentication
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
-Obsoletes:     %{name}-mod_digest
+Provides:      apache(mod_auth_digest) = %{version}-%{release}
 Obsoletes:     apache-mod_auth_digest < 2.0.0
+Obsoletes:     apache1-mod_digest
 
 %description mod_auth_digest
 This package contains mod_digest module. It provides user
 authentication using MD5 Digest Authentication.
 
 %description mod_auth_digest -l pl
-Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
+Modu³ ten dostarcza metodê uwierzytelniania przy u¿yciu 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(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
-Obsoletes:     Apache-Gallery
+Provides:      apache(mod_autoindex) = %{version}-%{release}
 
 %description mod_autoindex
-This package contains mod_autoindex module. It provides 
-generation index of files.
+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_cern_meta
+Summary:       Support for HTTP header metafiles
+Summary(pl):   Obs³uga metaplików nag³ówków HTTP
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_cern_meta) = %{version}-%{release}
+
+%description mod_cern_meta
+Emulate the CERN HTTPD Meta file semantics. Meta files are HTTP
+headers that can be output in addition to the normal range of headers
+for each file accessed. They appear rather like the Apache .asis
+files, and are able to provide a crude way of influencing the Expires:
+header, as well as providing other curiosities. There are many ways to
+manage meta information, this one was chosen because there is already
+a large number of CERN users who can exploit this module.
+
+%description mod_cern_meta -l pl
+Modu³ emuluj±cy semantykê metaplików CERN HTTPD. Metapliki to nag³ówki
+HTTP, które mog± byæ wysy³ane oprócz normalnego zestawu nag³ówków dla
+ka¿dego przetwarzanego pliku. Zachowuj± siê bardziej jak pliki .asis
+Apache'a i mog± dawaæ brutalny sposób wp³ywania na nag³ówek Expires:,
+a tak¿e dostarczaæ inne ciekawostki. Jest wiele sposobów zarz±dzania
+metainformacjami, ta zosta³a wybrana poniewa¿ istnieje ju¿ wielu
+u¿ytkowników CERN wykorzystuj±cych ten modu³.
+
+%package mod_cgi
+Summary:       Invoking CGI scripts
+Summary(pl):   Wywo³ywanie skryptów CGI
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_cgi) = %{version}-%{release}
+Provides:      webserver(cgi)
+
+%description mod_cgi
+Any file that has the MIME type application/x-httpd-cgi or handler
+cgi-script (Apache 1.1 or later) will be treated as a CGI script, and
+run by the server, with its output being returned to the client. Files
+acquire this type either by having a name containing an extension
+defined by the AddType directive, or by being in a ScriptAlias
+directory. Files that are not in a ScriptAlias directory, but which
+are of type application/x-httpd-cgi by virtue of an AddType directive,
+will still not be executed by the server unless Options ExecCGI is
+enabled. See the Options directive for more details.
+
+%description mod_cgi -l pl
+Ten modu³ powoduje, ¿e dowolny plik o typie MIME
+application/x-httpd-cgi albo procedurze obs³ugi cgi-script (w Apache'u
+1.1 lub nowszym) bêdzie traktowany jako skrypt CGI i uruchamiany przez
+serwer, a jego wyj¶cie bêdzie zwracane klientowi. Pliki uzyskuj± ten
+typ przez posiadanie nazwy zawieraj±cej rozszerzenie okre¶lone
+dyrektyw± AddType lub bêd±c w katalogu ScriptAlias. Pliki nie bêd±ce w
+katalogu ScriptAlias, ale maj±ce typ application/x-httpd-cgi dziêki
+dyrektywie AddType nie bêd± jednak wykonywane, chyba ¿e w³±czona
+zostanie opcja ExecCGI - wiêcej szczegó³ów w dyrektywie Options.
+
 %package mod_define
-Summary:       Apache module - authentication variables for arbitrary directives
-Summary(pl):   Modu³ apache do definiowania zmiennych
+Summary:       Apache module - definition variables for arbitrary directives
+Summary(pl):   Modu³ Apache'a do definiowania zmiennych
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_define) = %{version}-%{release}
 Obsoletes:     apache-mod_define < 2.0.0
 
 %description mod_define
@@ -490,14 +726,15 @@ It provides the definition variables for arbitrary directives, i.e.
 variables which can be expanded on any(!) directive line.
 
 %description mod_define -l pl
-Modu³ ten umo¿liwia definicjê zmiennych i dyrektyw.
+Modu³ ten umo¿liwia definicjê zmiennych dla dowolnych dyrektyw, tzn.
+zmiennych, które mog± byæ rozwijane w dowolnej linii dyrektywy.
 
 %package mod_digest
 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):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_digest) = %{version}-%{release}
 Obsoletes:     apache-mod_digest < 2.0.0
 
 %description mod_digest
@@ -511,16 +748,17 @@ standard.
 %description mod_digest -l pl
 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
 Authentication. Implementuje on jedynie starsz± wersjê specyfikacji
-autentykacji MD5, i mo¿e nie dzia³aæ z nowoczesnymi przegl±darkami.
-Sprawd¼ mod_auth_digest je¶li potrzebujesz implementacji najnowszej
-wersji standardu.
+uwierzytelniania MD5, i mo¿e nie dzia³aæ z nowoczesnymi
+przegl±darkami. Lepiej u¿yæ modu³u mod_auth_digest implementuj±cego
+najnowsz± wersjê standardu.
 
 %package mod_dir
 Summary:       Apache module for "trailing slash" redirects and serving directory index files
-Summary(pl):   Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
+Summary(pl):   Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_dir) = %{version}-%{release}
+Provides:      webserver(indexfile)
 Obsoletes:     apache-mod_dir < 2.0.0
 
 %description mod_dir
@@ -528,14 +766,35 @@ This package contains mod_dir which provides "trailing slash"
 redirects and serving directory index files.
 
 %description mod_dir -l pl
-Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
+Modu³ oferuj±cy przekierowania o "koñcowy slash" oraz przekierowania i
+udostêpnianie indeksu katalogu.
+
+%package mod_env
+Summary:       Passing of environments to CGI scripts
+Summary(pl):   Przekazywanie ¶rodowiska do skryptów CGI
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_env) = %{version}-%{release}
+
+%description mod_env
+This module allows for control of the environment that will be
+provided to CGI scripts and SSI pages. Environment variables may be
+passed from the shell which invoked the httpd process. Alternatively,
+environment variables may be set or unset within the configuration
+process.
+
+%description mod_env -l pl
+Ten modu³ pozwala na kontrolê ¶rodowiska udostêpnianego skryptom CGI i
+stronom SSI. Zmienne ¶rodowiskowe mog± byæ przekazywane z pow³oki w
+czasie uruchamiania procesu httpd, albo - alternatywnie - ustawiane i
+usuwane w procesie konfiguracji.
 
 %package mod_expires
 Summary:       Apache module which generates Expires HTTP headers
 Summary(pl):   Modu³ generuj±cy nag³ówki HTTP Expires
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_expires) = %{version}-%{release}
 Obsoletes:     apache-mod_expires < 2.0.0
 
 %description mod_expires
@@ -553,8 +812,8 @@ 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):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_headers) = %{version}-%{release}
 Obsoletes:     apache-mod_headers < 2.0.0
 
 %description mod_headers
@@ -564,14 +823,15 @@ replaced or removed.
 
 %description mod_headers -l pl
 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
-wysy³anych do przegl±darki.
+wysy³anych do przegl±darki. Nag³ówki mog± byæ ³±czone, zastêpowane lub
+usuwane.
 
 %package mod_imap
 Summary:       Apache module with imap-file handler
-Summary(pl):   Modu³ z obs³ug± imap-file
+Summary(pl):   Modu³ Apache'a z obs³ug± imap-file
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_imap) = %{version}-%{release}
 Obsoletes:     apache-mod_imap < 2.0.0
 
 %description mod_imap
@@ -580,14 +840,36 @@ replacing the functionality of the imagemap CGI program. Any directory
 or document type configured to use the handler imap-file.
 
 %description mod_imap -l pl
-Modu³ umozliwiaj±cy obs³ugê plików .map (imap-file handler)
+Modu³ umo¿liwiaj±cy obs³ugê plików .map, zastêpuj±cy funkcjonalno¶æ
+programu CGI imagemap.
+
+%package mod_include
+Summary:       Server-parsed documents
+Summary(pl):   Dokumenty przetwarzane po stronie serwera
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_include) = %{version}-%{release}
+
+%description mod_include
+This module provides a handler which will process files before they
+are sent to the client. The processing is controlled by specially
+formated SGML comments, referred to as elements. These elements allow
+conditional text, the inclusion other files or programs, as well as
+the setting and printing of environment variables.
+
+%description mod_include -l pl
+Ten modu³ dostarcza procedurê obs³ugi przetwarzaj±c± pliki przed
+wys³aniem ich do klienta. Przetwarzanie jest sterowane specjalnie
+sformatowanymi komentarzami SGML, nazywanymi elementami. Elementy te
+pozwalaj± na tekst warunkowy, do³±czanie innych plików lub programów,
+a tak¿e ustawianie i wypisywanie zmiennych ¶rodowiskowych.
 
 %package mod_info
 Summary:       Apache module with comprehensive overview of the server configuration
-Summary(pl):   Modu³ dostarczaj±cy informacji na temat serwera.
+Summary(pl):   Modu³ dostarczaj±cy informacji na temat serwera
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_info) = %{version}-%{release}
 Obsoletes:     apache-mod_info < 2.0.0
 
 %description mod_info
@@ -596,15 +878,65 @@ overview of the server configuration including all installed modules
 and directives in the configuration files.
 
 %description mod_info -l pl
-Modu³ dostarczaj±cy informacji o konfiguracji serwera, zainstalowanych
-modu³ach itp.
+Modu³ dostarczaj±cy wyczerpuj±cych informacji o konfiguracji serwera,
+w tym zainstalowanych modu³ach oraz dyrektywach w plikach
+konfiguracyjnych.
+
+%package mod_log_agent
+Summary:       Logging of User Agents
+Summary(pl):   Logowanie nazw klientów (User Agent)
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_log_agent) = %{version}-%{release}
+
+%description mod_log_agent
+This module is provided strictly for compatibility with NCSA httpd,
+and is deprecated. We recommend you use mod_log_config instead.
+
+%description mod_log_agent -l pl
+Ten modu³ jest dostarczony wy³±cznie dla kompatybilno¶ci z NCSA httpd
+i jest niezalecany. Zamiast niego lepiej u¿ywaæ mod_log_config.
+
+%package mod_log_config
+Summary:       User-configurable logging replacement for mod_log_common
+Summary(pl):   Konfigurowalny loguj±cy zamiennik dla mod_log_common
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_log_config) = %{version}-%{release}
+
+%description mod_log_config
+This module provides for flexible logging of client requests. Logs are
+written in a customizable format, and may be written directly to a
+file, or to an external program. Conditional logging is provided so
+that individual requests may be included or excluded from the logs
+based on characteristics of the request.
+
+Three directives are provided by this module: TransferLog to create a
+log file, LogFormat to set a custom format, and CustomLog to define a
+log file and format in one step. The TransferLog and CustomLog
+directives can be used multiple times in each server to cause each
+request to be logged to multiple files.
+
+%description mod_log_config -l pl
+Ten modu³ umo¿liwia elastyczne logowanie ¿±dañ klientów. Logi s±
+zapisywane w konfigurowalnym formacie i mog± byæ zapisywane
+bezpo¶rednio do pliku lub przekazywane do zewnêtrznego programu.
+Dostêpne jest logowanie warunkowe polegaj±ce na w³±czeniu lub
+wy³±czeniu poszczególnych ¿±dañ z logowania na podstawie
+charakterystyki ¿±dania.
+
+Ten modu³ udostêpnia trzy dyrektywy: TransferLog tworz±cy plik logu,
+LogFormat ustawiaj±cy w³asny format logowania i CustomLog okre¶laj±cy
+plik logu i format jednocze¶nie. Dyrektywy TransferLog i CustomLog
+mog± byæ u¿ywane wielokrotnie w ka¿dym serwerze powoduj±c logowanie
+ka¿dego ¿±dania do wielu plików.
 
 %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}
+Provides:      apache(mod_log_forensic) = %{version}-%{release}
 Obsoletes:     apache-mod_log_forensic < 2.0.0
 
 %description mod_log_forensic
@@ -615,12 +947,82 @@ is done before and after processing a request.
 Ten modu³ pozwala na logowanie ¿±dañ w celu pó¼niejszej analizy.
 Logowanie jest wykonywane przed i po przetworzeniu ¿±dania.
 
+%package mod_log_referer
+Summary:       User-configurable logging replacement for mod_log_common
+Summary(pl):   Konfigurowalny loguj±cy zamiennik dla mod_log_common
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_log_referer) = %{version}-%{release}
+
+%description mod_log_referer
+This module is provided strictly for compatibility with NCSA httpd,
+and is deprecated. We recommend you use mod_log_config instead.
+
+%description mod_log_referer -l pl
+Ten modu³ jest dostarczony wy³±cznie dla kompatybilno¶ci z NCSA httpd
+i jest niezalecany. Zamiast niego lepiej u¿ywaæ mod_log_config.
+
+%package mod_mime
+Summary:       Determining document types using file extensions
+Summary(pl):   Okre¶lanie typów dokumentów przy u¿yciu rozszerzeñ plików
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_mime) = %{version}-%{release}
+
+%description mod_mime
+This module is used to determine various bits of "meta information"
+about documents. This information relates to the content of the
+document and is returned to the browser or used in content-negotiation
+within the server. In addition, a "handler" can be set for a document,
+which determines how the document will be processed within the server.
+
+%description mod_mime -l pl
+Ten modu³ s³u¿y do okre¶lania ró¿nych fragmentów metainformacji
+dotycz±cych dokumentów. Informacja ta odnoszi siê do zawarto¶ci
+dokumentu i jest zwracana przegl±darce albo u¿ywana przy negocjacji
+tre¶ci wewn±trz serwera. Ponadto dla dokumentu mo¿na ustawiæ procedurê
+obs³ugi, okre¶laj±c± w jaki sposób dokument bêdzie przetwarzany
+wewn±trz serwera.
+
+%package mod_mime_magic
+Summary:       Determining document types using "magic numbers"
+Summary(pl):   Okre¶lanie typów dokumentów przy u¿yciu "liczb magicznych"
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_mime_magic) = %{version}-%{release}
+
+%description mod_mime_magic
+This module determines the MIME type of files in the same way the Unix
+file(1) command works: it looks at the first few bytes of the file. It
+is intended as a "second line of defense" for cases that mod_mime
+can't resolve. To assure that mod_mime gets first try at determining a
+file's MIME type, be sure to list mod_mime_magic before mod_mime in
+the configuration.
+
+This module is derived from a free version of the file(1) command for
+Unix, which uses "magic numbers" and other hints from a file's
+contents to figure out what the contents are. This module is active
+only if the magic file is specified by the MimeMagicFile directive.
+
+%description mod_mime_magic -l pl
+Ten modu³ okre¶la typ MIME plików w ten sam sposób, co polecenie
+file(1): sprawdza pierwsze kilka bajtów pliku. Ma byæ "drug± lini±
+obrony" dla przypadków, których nie mo¿e rozwi±zaæ mod_mime. Aby mieæ
+pewno¶æ, ¿e mod_mime dostaje pierwsz± próbê okre¶lenia typu MIME,
+nale¿y upewniæ siê, ¿e mod_mime_magic jest umieszczony w konfiguracji
+przed mod_mime.
+
+Ten modu³ wywodzi siê z wolnodostêpnej wersji polecenia file(1) dla
+uniksów, u¿ywaj±cej "liczb magicznych" i innych podpowiedzi z
+zawarto¶ci plików w celu rozpoznania zawarto¶ci. Modu³ jest aktywny
+tylko je¶li plik magic zosta³ okre¶lony dyrektyw± MimeMagicFile.
+
 %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.
+Summary(pl):   Modu³ s³u¿±cy do mmap()owania plików
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_mmap_static) = %{version}-%{release}
 Obsoletes:     apache-mod_mmap_static < 2.0.0
 
 %description mod_mmap_static
@@ -630,36 +1032,64 @@ 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).
+(czêsto u¿ywanych, ale nie ulegaj±cych zmianom).
+
+%package mod_negotiation
+Summary:       Content negotiation
+Summary(pl):   Negocjacja tre¶ci
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_negotiation) = %{version}-%{release}
+
+%description mod_negotiation
+Content negotiation, or more accurately content selection, is the
+selection of the document that best matches the clients capabilities,
+from one of several available documents. There are two implementations
+of this.
+- A type map (a file with the handler type-map) which explicitly lists
+  the files containing the variants.
+- A MultiViews search (enabled by the MultiViews Option, where the
+  server does an implicit filename pattern match, and choose from
+  amongst the results.
+
+%description mod_negotiation -l pl
+Negocjacja tre¶ci, albo bardziej precyzyjnie wybór tre¶ci, to wybór
+dokumentu najbardziej pasuj±cego do mo¿liwo¶ci klienta spo¶ród ró¿nych
+dostêpnych dokumentów. S± dwie ró¿ne implementacje.
+- Odwzorowanie typów (plik z obs³ug± type-map) wypisuj±cy explicite
+  pliki zawieraj±ce warianty.
+- Wyszukiwanie MultiViews (w³±czane opcj± MultiViews, kiedy serwer
+  dopasowuje implicite wzorzec nazwy pliku i wybiera spo¶ród wyników).
 
 %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}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_proxy) = %{version}-%{release}
 Obsoletes:     apache-mod_proxy < 2.0.0
 
 %description mod_proxy
 This package contains module with implementation a proxy/cache for
 Apache. It implements proxying capability for FTP, CONNECT (for SSL),
 HTTP/0.9, and HTTP/1.0. The module can be configured to connect to
-other proxy modules for these and other protocols.
+other proxy modules for these and other protocols. Contains patch
+from: <http://allafrica.com/tools/apache/mod_proxy/>
 
 %description mod_proxy -l pl
 Modu³ zawiera implementacjê serwera proxy/cache dla Apache.
 Iplementacja zawiera obs³ugê FTP, CONNECT (dla SSL), HTTP/0.9 i
-HTTP/1.0.
+HTTP/1.0. Ten modu³ mo¿e byæ skonfigurowany tak, aby ³±czy³ siê z
+innymi modu³ami proxy dla tych i innych protoko³ów. Zawiera ³atê z
+<http://allafrica.com/tools/apache/mod_proxy/>.
 
 %package mod_rewrite
 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):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_rewrite) = %{version}-%{release}
 Obsoletes:     apache-mod_rewrite < 2.0.0
 
 %description mod_rewrite
@@ -669,15 +1099,61 @@ rewrite requested URLs on the fly.
 %description mod_rewrite -l pl
 Modu³ oferuj±cy mo¿liwo¶æ ,,przepisywania'' adresów URL w locie.
 
+%package mod_setenvif
+Summary:       Set environment variables based on client information
+Summary(pl):   Ustawianie zmiennych ¶rodowiskowych w oparciu o informacje o kliencie
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_setenvif) = %{version}-%{release}
+
+%description mod_setenvif
+The mod_setenvif module allows you to set environment variables
+according to whether different aspects of the request match regular
+expressions you specify. These environment variables can be used by
+other parts of the server to make decisions about actions to be taken.
+
+%description mod_setenvif -l pl
+Modu³ mod_setenvif pozwala na ustawianie zmiennych ¶rodowiskowych w
+zale¿no¶ci od ró¿nych aspektów ¿±dania pasuj±cych do podanych wyra¿eñ
+regularnych. Te zmienne ¶rodowiskowe mog± byæ u¿ywane przez inne
+czê¶ci serwera do podejmowania decyzji o podejmowanych akcjach.
+
+%package mod_speling
+Summary:       Automatically correct minor typos in URLs
+Summary(pl):   Automatyczne poprawianie pomniejszych literówek w URL-ach
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_speling) = %{version}-%{release}
+
+%description mod_speling
+Requests to documents sometimes cannot be served by the core Apache
+server because the request was misspelled or miscapitalized. This
+module addresses this problem by trying to find a matching document,
+even after all other modules gave up. It does its work by comparing
+each document name in the requested directory against the requested
+document name without regard to case, and allowing up to one
+misspelling (character insertion / omission / transposition or wrong
+character). A list is built with all document names which were matched
+using this strategy.
+
+%description mod_speling -l pl
+Czasami ¿±dania dokumentów nie mog± byæ wykonane przez sam serwer
+Apache, poniewa¿ ¿±danie zosta³o napisane z b³êdem w znakach lub
+wielko¶ci liter. Ten modu³ próbuje rozwi±zaæ ten problem próbuj±c
+znale¼æ pasuj±cy dokument, nawet je¶li inne modu³y siê podda³y. Dzia³a
+on poprzez porównywanie nazwy ka¿dego dokumentu w ¿±danym katalogu z
+¿±dan± nazw± dokumentu bez zwracania uwagi na wielko¶æ liter i
+pozwalaj±c na jeden b³±d (dodany, pominiêty, przestawiony lub z³y
+znak). Tworzona jest lista dla wszystkich nazw dokumentów pasuj±cych
+dla tej strategii.
+
 %package mod_status
 Summary:       Server status report module for apache
-Summary(pl):   Modu³ dostarczaj±cy informacje statystyczne o serwerze.
+Summary(pl):   Modu³ dostarczaj±cy informacje statystyczne o serwerze
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_status) = %{version}-%{release}
 Obsoletes:     apache-mod_status < 2.0.0
 
 %description mod_status
@@ -689,14 +1165,16 @@ browser).
 
 %description mod_status -l pl
 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
-pracy serwera apache (w postaci strony HTML).
+pracy serwera apache (w postaci strony HTML). Strona ta mo¿e siê
+automatycznie od¶wie¿aæ (o ile jest to obs³ugiwane przez
+przegl±darkê).
 
 %package mod_unique_id
 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):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_unique_id) = %{version}-%{release}
 Obsoletes:     apache-mod_unique_id < 2.0.0
 
 %description mod_unique_id
@@ -714,12 +1192,25 @@ Modu
 maszyn. Modu³ ustawia przy ka¿dym ¿±daniu zmienn± ¶rodowiskow±
 UNIQUE_ID.
 
+%package mod_userdir
+Summary:       User home directories
+Summary(pl):   Katalogi domowe u¿ytkowników
+Group:         Networking/Daemons
+Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_userdir) = %{version}-%{release}
+
+%description mod_userdir
+This module provides for user-specific directories.
+
+%description mod_userdir -l pl
+Ten modu³ dostarcza obs³ugê katalogów specyficznych dla uzytkownika.
+
 %package mod_usertrack
 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):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_usertrack) = %{version}-%{release}
 Obsoletes:     apache-mod_usertrack < 2.0.0
 
 %description mod_usertrack
@@ -734,13 +1225,11 @@ wiele plik
 
 %package mod_vhost_alias
 Summary:       Apache module for dynamically configured mass virtual hosting
-Summary(pl):   Modu³ dodaj±cy obs³ugê hostów wirtualnych.
+Summary(pl):   Modu³ dodaj±cy obs³ugê hostów wirtualnych
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache(mod_vhost_alias) = %{version}-%{release}
 Obsoletes:     apache-mod_vhost_alias < 2.0.0
 
 %description mod_vhost_alias
@@ -751,8 +1240,28 @@ dynamically configured mass virtual hosting.
 Modu³ umo¿liwia na dynamiczne konfigurowanie masowej ilo¶ci serwerów
 wirtualnych.
 
+%package -n htpasswd-%{name}
+Summary:       Apache 1.x htpasswd utility
+Summary(pl):   Narzêdzie htpasswd z Apache'a 1.x
+Group:         Networking/Utilities
+Provides:      htpasswd
+Obsoletes:     htpasswd
+
+%description -n htpasswd-%{name}
+htpasswd is used to create and update the flat-files used to store
+usernames and password for basic authentication of HTTP users. This
+package contains htpasswd from Apache 1.x; this version supports
+plaintext passwords and CRYPT (default), MD5 and SHA1 encryptions.
+
+%description -n htpasswd-%{name} -l pl
+htpasswd s³u¿y do tworzenia i uaktualniania p³askich plików s³u¿±cych
+do przechowywania nazw u¿ytkowników i hase³ do uwierzytelnienia basic
+u¿ytkowników HTTP. Ten pakiet zawiera htpasswd z Apache'a 1.x; ta
+wersja obs³uguje has³a zapisane czystym tekstem oraz zakodowane
+algorytmami CRYPT (domy¶lnym), MD5 i SHA1.
+
 %prep
-%setup -q -n apache_%{version} -a3
+%setup -q -n apache_%{version} -a3 %{?with_lingerd:-a25}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -761,32 +1270,64 @@ wirtualnych.
 %patch5 -p0
 %patch6 -p1
 %patch7 -p1
-%{?with_ipv6:%patch8 -p1}
-%patch9 -p1
+%patch8 -p1
+%{?with_ipv6:%patch9 -p1}
 %patch10 -p1
 %patch11 -p1
-%{?with_rewrite_ldap:%patch12 -p1}
-%patch13 -p1
+%patch12 -p1
+%{?with_rewrite_ldap:%patch13 -p1}
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
-%{!?with_ipv6:%patch18 -p1}
-%patch19 -p1
+%patch18 -p1
+%{!?with_ipv6:%patch19 -p1}
 %patch20 -p1
 %patch21 -p1
+%patch22 -p1
+%patch23 -p1
+%patch24 -p1
+%patch25 -p1
+
+%patch26 -p2
+%patch27 -p2
+%patch28 -p2
+%patch29 -p2
+%patch30 -p2
+%patch31 -p2
+%patch32 -p2
+%patch33 -p2
+%patch34 -p2
+%patch35 -p2
+%patch36 -p2
+%patch37 -p2
+%patch38 -p2
+%patch39 -p2
+%patch40 -p2
+%patch41 -p2
+
+%if %{with lingerd}
+mv lingerd-* _lingerd
+mkdir -p lingerd
+cp -a _lingerd/{README,TUNING,LICENSE,TODO,ChangeLog} lingerd
+cp -a _lingerd/{apache-1.3/ap_lingerd.c,li_config.h} src/main
+patch -p0 -d src < _lingerd/apache-1.3/aplinger-ssl.diff
+%endif
 
 %build
 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=%{manualdir} \
+       --includedir=%{_includedir} \
+       --libexecdir=%{_sysconfdir}/modules \
        --localstatedir=/var \
+       --mandir=%{_mandir} \
+       --manualdir=%{manualdir} \
        --runtimedir=/var/run \
        --logfiledir=/var/log/apache \
        --with-layout=PLD \
@@ -817,32 +1358,82 @@ rm -f src/modules/standard/mod_rewrite.so
 %{__make} -C src/modules/standard mod_rewrite.so \
        LIBS_SHLIB="-ldb %{?with_rewrite_ldap:-lldap -llber}"
 
+%if %{with lingerd}
+%{__make} -C _lingerd lingerd \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}"
+       LDFLAGS="%{rpmldflags}"
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
        $RPM_BUILD_ROOT%{_datadir}/errordocs \
+       $RPM_BUILD_ROOT%{_sysconfdir}/{webapps.d,conf.d} \
+       $RPM_BUILD_ROOT%{_libexecdir} \
        $RPM_BUILD_ROOT/var/{log/{apache,archiv/apache},run/apache}
 
-%{__make} install-quiet \
+%{__make} -j1 install-quiet \
        root=$RPM_BUILD_ROOT
 
-#mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
-
 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
+sed -e '%{?with_lingerd:s,/usr/lib,%{_libdir},g}' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/apache
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 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}/apache.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
-install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/mod_autoindex.conf
-install %{SOURCE7} $RPM_BUILD_ROOT/etc/monit
+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
+echo "LoadModule alias_module       modules/mod_alias.so" > $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 %{SOURCE17}    $CFG/80_mod_alias.conf
+
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/monit/apache.monitrc
 
 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
 
@@ -851,79 +1442,52 @@ 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
+
+ln -sf %{_bindir}/htpasswd $RPM_BUILD_ROOT%{_sbindir}
+
+# Not packaged.
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.default
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/{access,srm}.conf
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
+rm -f $RPM_BUILD_ROOT%{_libexecdir}/*.exp
+rm -f $RPM_BUILD_ROOT%{_libexecdir}/mod_{auth_dbm,example}.so
+rm -f $RPM_BUILD_ROOT%{_datadir}/icons{,/small}/README*
+rm -f $RPM_BUILD_ROOT%{_mandir}/README*
+
+# Not for our os or for older apache
+rm $RPM_BUILD_ROOT%{_prefix}/share/apache1-manual/{cygwin,ebcdic,install-{z,}tpf,man-template}.html
+rm $RPM_BUILD_ROOT%{_prefix}/share/apache1-manual/mod/mod_{auth_dbm,browser,dld,example,isapi,log_common}.html
+rm $RPM_BUILD_ROOT%{_prefix}/share/apache1-manual/{mpeix,netware,new_features_1_[0-2],readme-tpf,suexec_1_2,unixware,vhosts/details_1_2}.html
+rm $RPM_BUILD_ROOT%{_prefix}/share/apache1-manual/{win_{compiling,service}.html*,windows.html*}
+
+%if %{with lingerd}
+install _lingerd/lingerd $RPM_BUILD_ROOT%{_libexecdir}
+install -d $RPM_BUILD_ROOT%{_localstatedir}/run/lingerd
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-if [ -n "`getgid http`" ]; then
-       if [ "`getgid http`" != "51" ]; then
-               echo "Error: group http doesn't have gid=51. Correct this before installing apache." 1>&2
-               exit 1
-       fi
-else
-       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
-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
+%groupadd -g 51 -r -f http
+%useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http
+
+if [ "`getent passwd http | cut -d: -f6`" = "/home/httpd" ]; then
+       /usr/sbin/usermod -d %{httpdir} http
 fi
 
 %post
 /sbin/chkconfig --add apache
-%{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 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
 umask 137
 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/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 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/apache ]; then
-               /etc/rc.d/init.d/apache stop 1>&2
-       fi
+       %service apache stop
        /sbin/chkconfig --del apache
 fi
 
@@ -934,528 +1498,395 @@ if [ "$1" = "0" ]; then
 fi
 
 %triggerpostun -- apache < 2.0.0
-if [ -z "`getgid http`" ]; then
-       echo "Adding group http GID=51."
-       /usr/sbin/groupadd -g 51 -r -f http
-fi
-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
+%groupadd -g 51 -r -f http
+%useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http
 /sbin/chkconfig --add apache
-%{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 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
-
-%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
 
+%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/,
 
-%post mod_actions
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 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/apache start\" to start apache http daemon."
+               # update ServerRoot
+               s,^ServerRoot.*,ServerRoot "/etc/apache",
+       ' /etc/apache/apache.conf
 fi
 
-%preun mod_actions
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n actions %{_libexecdir}/mod_actions.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+%triggerpostun -- %{name} <= 1.3.31-5
+%banner %{name} -e -a <<EOF
+WARNING!!!
+ Since 1.3.31-5 version autoindex module has been separated to package %{name}-mod_autoindex
+ If you need previous functionality please run:
+poldek -Uv %{name}-mod_autoindex
+
+EOF
+
+%triggerpostun -- %{name} < 1.3.33-3.4
+%banner %{name} -e -a <<EOF
+WARNING!!!
+ Since 1.3.33-3.4 version following modules have been separated to subpackages
+ If you need previous functionality please run:
+ poldek -Uv %{name}-MODULENAME
+ where MODULENAME is one (or all) of:
+       mod_asis
+       mod_cern_meta
+       mod_cgi
+       mod_env
+       mod_include
+       mod_log_agent
+       mod_log_config
+       mod_log_referer
+       mod_mime
+       mod_mime_magic
+       mod_negotiation
+       mod_setenvif
+       mod_speling
+       mod_userdir
+EOF
+
+%triggerpostun -- %{name} < 1.3.33-6.7
+# update /etc/sysconfig/apache1 -> apache rename
+if [ -f /etc/sysconfig/apache1.rpmsave ]; then
+       cp -f /etc/sysconfig/apache{,.rpmnew}
+       mv -f /etc/sysconfig/apache{1.rpmsave,}
 fi
 
-%triggerpostun mod_actions -- apache-mod_actions < 2.0.0
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
+%triggerpostun -- %{name} < 1.3.34-5.9
+if ! grep -q 'Include webapps.d/' /etc/apache/apache.conf; then
+# make sure webapps.d is included
+cp -f /etc/apache/apache.conf{,.rpmsave}
+sed -i -e '
+       /^Include conf.d/{
+               a
+               a# Include webapps config
+               aInclude webapps.d/*.conf
+       }
+' /etc/apache/apache.conf
+fi
 
-%post mod_auth
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 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/apache start\" to start apache http daemon."
+# rename monitrc to be service name like other files
+if [ -f /etc/monit/apache1.monitrc.rpmsave ]; then
+       mv -f /etc/monit/apache.monitrc{,.rpmnew}
+       mv -f /etc/monit/{apache1.monitrc.rpmsave,apache.monitrc}
 fi
 
-%preun mod_auth
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+%triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
+sed -i -e '/^\(Add\|Load\)Module.*mod_auth_dbm\.\(so\|c\)/d' /etc/apache/apache.conf
+
+%triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
+sed -i -e '
+       /^\(Add\|Load\)Module.*mod_autoindex\.\(so\|c\)/d
+       s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
+' /etc/apache/apache.conf
+
+%triggerpostun mod_proxy -- apache1-mod_proxy < 1.3.33-1.85
+sed -i -e '
+       /^LoadModule.*libproxy\.so/d
+       /^AddModule.*mod_proxy\.c/d
+       s,^Include.*mod_proxy.conf,Include %{_sysconfdir}/conf.d/*_mod_proxy.conf,
+' /etc/apache/apache.conf
+
+%triggerpostun mod_status -- apache1-mod_status < 1.3.33-1.85
+sed -i -e '
+       /^\(Add\|Load\)Module.*mod_status\.\(so\|c\)/d
+       s,^Include.*mod_status.conf,Include %{_sysconfdir}/conf.d/*_mod_status.conf,
+' /etc/apache/apache.conf
+
+%triggerpostun mod_vhost_alias -- apache1-mod_vhost_alias < 1.3.33-1.85
+sed -i -e '
+       /^\(Add\|Load\)Module.*mod_vhost_alias\.\(so\|c\)/d
+       s,^Include.*mod_vhost_alias.conf,Include %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf,
+' /etc/apache/apache.conf
+
+%posttrans
+# minimizing apache restarts logics. we restart webserver:
+#
+# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
+# 2. first install of module (post: $1 = 1)
+# 2. uninstall of module (postun: $1 == 0)
+#
+# the strict internal deps between apache modules and
+# main package are very important for all this to work.
+
+# restart webserver at the end of transaction
+%service apache restart "Apache HTTP daemon"
+
+# macro called at module post scriptlet
+%define        module_post \
+if [ "$1" = "1" ]; then \
+       %service -q apache restart \
 fi
 
-%triggerpostun mod_auth -- apache-mod_auth < 2.0.0
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
+# macro called at module postun scriptlet
+%define        module_postun \
+if [ "$1" = "0" ]; then \
+       %service -q apache restart \
+fi
 
-%post mod_auth_anon
-%{apxs} -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 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/apache start\" to start apache http daemon."
+%post errordocs
+if [ "$1" = "1" ]; then
+       %service -q apache reload
 fi
 
-%preun mod_auth_anon
+%postun errordocs
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache reload
 fi
 
-%triggerpostun mod_auth_anon -- apache-mod_auth_anon < 2.0.0
-%{apxs} -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
+%post mod_access
+%module_post
+
+%postun mod_access
+%module_postun
+
+%post mod_actions
+%module_post
+
+%postun mod_actions
+%module_postun
+
+%post mod_alias
+%module_post
+
+%postun mod_alias
+%module_postun
+
+%post mod_asis
+%module_post
+
+%postun mod_asis
+%module_postun
+
+%post mod_auth
+%module_post
+
+%postun mod_auth
+%module_postun
+
+%post mod_auth_anon
+%module_post
+
+%postun mod_auth_anon
+%module_postun
 
 %post mod_auth_db
-%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%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/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_auth_db
+%module_postun
 
-%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
+%post mod_auth_digest
+%module_post
 
-%triggerpostun mod_auth_db -- apache-mod_auth_db < 2.0.0
-%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
+%postun mod_auth_digest
+%module_postun
 
 %post mod_autoindex
-if [ "$1" = "0" ]; then
-       if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_autoindex.conf" /etc/apache/apache.conf; then
-               echo "Include /etc/apache/mod_autoindex.conf" >> /etc/apache/apache.conf
-       fi
-       %{apxs} -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%module_post
 
-%preun mod_autoindex
-if [ "$1" = "0" ]; then
-       umask 027
-       %{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-       grep -v "^Include.*mod_autoindex.conf" /etc/apache/apache.conf > \
-               /etc/apache/apache.conf.tmp
-       mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_autoindex
+%module_postun
 
-%post 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/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
+%post mod_cern_meta
+%module_post
 
-%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/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_cern_meta
+%module_postun
 
-%triggerpostun mod_auth_digest -- apache-mod_auth_digest < 2.0.0
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
+%post mod_cgi
+%module_post
 
-%post mod_define
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 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/apache start\" to start apache http daemon."
-fi
+%postun mod_cgi
+%module_postun
 
-%preun mod_define
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n define %{_libexecdir}/mod_define.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%post mod_define
+%module_post
 
-%triggerpostun mod_define -- apache-mod_define < 2.0.0
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
+%postun mod_define
+%module_postun
 
 %post mod_digest
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 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/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/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%module_post
 
-%triggerpostun mod_digest -- apache-mod_digest < 2.0.0
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
+%postun mod_digest
+%module_postun
 
 %post mod_dir
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_dir
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_dir
+%module_postun
 
-%triggerpostun mod_dir -- apache-mod_dir < 2.0.0
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
+%post mod_env
+%module_post
 
-%post mod_expires
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 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/apache start\" to start apache http daemon."
-fi
+%postun mod_env
+%module_postun
 
-%preun mod_expires
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%post mod_expires
+%module_post
 
-%triggerpostun mod_expires -- apache-mod_expires < 2.0.0
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
+%postun mod_expires
+%module_postun
 
 %post mod_headers
-%{apxs} -e -a -n headers %{_libexecdir}/mod_headers.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_headers
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n headers %{_libexecdir}/mod_headers.so 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 < 2.0.0
-%{apxs} -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
+%postun mod_headers
+%module_postun
 
 %post mod_imap
-%{apxs} -e -a -n imap %{_libexecdir}/mod_imap.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_imap
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_imap
+%module_postun
+
+%post mod_include
+%module_post
 
-%triggerpostun mod_imap -- apache-mod_imap < 2.0.0
-%{apxs} -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
+%postun mod_include
+%module_postun
 
 %post mod_info
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_info
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n info %{_libexecdir}/mod_info.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_info
+%module_postun
+
+%post mod_log_agent
+%module_post
+
+%postun mod_log_agent
+%module_postun
 
-%triggerpostun mod_info -- apache-mod_info < 2.0.0
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 1>&2
+%post mod_log_config
+%module_post
+
+%postun mod_log_config
+%module_postun
 
 %post mod_log_forensic
-%{apxs} -e -a -n log_forensic %{_libexecdir}/mod_log_forensic.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."
-fi
+%module_post
 
-%preun mod_log_forensic
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n log_forensic %{_libexecdir}/mod_log_forensic.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
-fi
+%postun mod_log_forensic
+%module_postun
+
+%post mod_log_referer
+%module_post
+
+%postun mod_log_referer
+%module_postun
 
-%triggerpostun mod_log_forensic -- apache-mod_log_forensic < 2.0.0
-%{apxs} -e -a -n log_forensic %{_libexecdir}/mod_log_forensic.so 1>&2
+%post mod_mime
+%module_post
+
+%postun mod_mime
+%module_postun
+
+%post mod_mime_magic
+%module_post
+
+%postun mod_mime_magic
+%module_postun
 
 %post mod_mmap_static
-%{apxs} -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_mmap_static
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_mmap_static
+%module_postun
 
-%triggerpostun mod_mmap_static -- apache-mod_mmap_static < 2.0.0
-%{apxs} -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
+%post mod_negotiation
+%module_post
 
-%post mod_proxy
-%{apxs} -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_proxy.conf" >> /etc/apache/apache.conf
-fi
-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
+%postun mod_negotiation
+%module_postun
 
-%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/apache/apache.conf > \
-               /etc/apache/apache.conf.tmp
-       mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%post mod_proxy
+%module_post
 
-%triggerpostun mod_proxy -- apache-mod_proxy < 2.0.0
-%{apxs} -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_proxy.conf" >> /etc/apache/apache.conf
-fi
+%postun mod_proxy
+%module_postun
 
 %post mod_rewrite
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%preun mod_rewrite
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_rewrite
+%module_postun
 
-%triggerpostun mod_rewrite -- apache-mod_rewrite < 2.0.0
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
+%post mod_setenvif
+%module_post
 
-%post mod_status
-%{apxs} -e -a -n status %{_libexecdir}/mod_status.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_status.conf" >> /etc/apache/apache.conf
-fi
-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
+%postun mod_setenvif
+%module_postun
 
-%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/apache/apache.conf > \
-               /etc/apache/apache.conf.tmp
-       mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%post mod_speling
+%module_post
 
-%triggerpostun mod_status -- apache-mod_status < 2.0.0
-%{apxs} -e -a -n status %{_libexecdir}/mod_status.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_status.conf" >> /etc/apache/apache.conf
-fi
+%postun mod_speling
+%module_postun
+
+%post mod_status
+%module_post
+
+%postun mod_status
+%module_postun
 
 %post mod_unique_id
-%{apxs} -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 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/apache start\" to start apache http daemon."
-fi
+%module_post
 
-%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/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%postun mod_unique_id
+%module_postun
 
-%triggerpostun mod_unique_id -- apache-mod_unique_id < 2.0.0
-%{apxs} -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
+%post mod_userdir
+%module_post
 
-%post mod_usertrack
-%{apxs} -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 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/apache start\" to start apache http daemon."
-fi
+%postun mod_userdir
+%module_postun
 
-%preun mod_usertrack
-if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
-fi
+%post mod_usertrack
+%module_post
 
-%triggerpostun mod_usertrack -- apache-mod_usertrack < 2.0.0
-%{apxs} -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
+%postun mod_usertrack
+%module_postun
 
 %post mod_vhost_alias
-%{apxs} -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_vhost_alias.conf" >> /etc/apache/apache.conf
-fi
-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
+%module_post
 
-%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/apache/apache.conf > \
-               /etc/apache/apache.conf.tmp
-       mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
-       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 < 2.0.0
-%{apxs} -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-if [ -f /etc/apache/apache.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/apache/apache.conf; then
-       echo "Include /etc/apache/mod_vhost_alias.conf" >> /etc/apache/apache.conf
-fi
+%postun mod_vhost_alias
+%module_postun
 
 %files
 %defattr(644,root,root,755)
 %doc ABOUT_APACHE src/CHANGES README
-%doc conf/mime.types
-
+%doc conf/mime.types conf/apache.conf.dist
+%{?with_lingerd:%doc lingerd}
 %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}/apache.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(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/monit/*.monitrc
-
+%{_sysconfdir}/modules
+%{_sysconfdir}/logs
+%attr(750,root,root) %dir %{_sysconfdir}/conf.d
+%attr(750,root,root) %dir %{_sysconfdir}/webapps.d
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_common.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apache
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/*.monitrc
 %dir %{_libexecdir}
-%attr(755,root,root) %{_libexecdir}/mod_access.so
-%attr(755,root,root) %{_libexecdir}/mod_alias.so
-%attr(755,root,root) %{_libexecdir}/mod_asis.so
-%attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
-%attr(755,root,root) %{_libexecdir}/mod_cgi.so
-%attr(755,root,root) %{_libexecdir}/mod_env.so
-%attr(755,root,root) %{_libexecdir}/mod_include.so
-%attr(755,root,root) %{_libexecdir}/mod_log_agent.so
-%attr(755,root,root) %{_libexecdir}/mod_log_config.so
-%attr(755,root,root) %{_libexecdir}/mod_log_referer.so
-%attr(755,root,root) %{_libexecdir}/mod_mime.so
-%attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
-%attr(755,root,root) %{_libexecdir}/mod_negotiation.so
-%attr(755,root,root) %{_libexecdir}/mod_setenvif.so
-%attr(755,root,root) %{_libexecdir}/mod_speling.so
-%attr(755,root,root) %{_libexecdir}/mod_userdir.so
-
+%if %{with lingerd}
+%attr(755,root,root) %{_libexecdir}/lingerd
+%attr(770,root,http) %dir %{_localstatedir}/run/lingerd
+%endif
 %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,root) %dir /var/log/apache
-%attr(750,root,root) %dir /var/log/archiv/apache
-%attr(640,root,root) %ghost /var/log/apache/*
-
+%attr(2750,root,logs) %dir /var/log/apache
+%attr(2750,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
@@ -1473,6 +1904,7 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/ab
 %attr(755,root,root) %{_sbindir}/apachectl
+%attr(755,root,root) %{_bindir}/htdigest
 %attr(755,root,root) %{_sbindir}/logresolve
 %attr(755,root,root) %{_sbindir}/rotatelogs
 %{_mandir}/man1/htdigest.1*
@@ -1486,7 +1918,7 @@ fi
 %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
+# NOTE: html extensions are not the same as (g)libc locale names
 %lang(ca) %{_datadir}/html/index.html.ca
 %lang(cs) %{_datadir}/html/index.html.cz
 %lang(de) %{_datadir}/html/index.html.de
@@ -1497,6 +1929,7 @@ 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
@@ -1534,10 +1967,6 @@ fi
 %{manualdir}/bind.html.en
 %lang(fr) %{manualdir}/bind.html.fr
 %lang(ja) %{manualdir}/bind.html.ja.jis
-%{manualdir}/cgi_path.html.html
-%{manualdir}/cgi_path.html.en
-%lang(fr) %{manualdir}/cgi_path.html.fr
-%lang(ja) %{manualdir}/cgi_path.html.ja.jis
 %{manualdir}/configuring.html.html
 %{manualdir}/configuring.html.en
 %lang(fr) %{manualdir}/configuring.html.fr
@@ -1552,6 +1981,7 @@ fi
 %{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
@@ -1573,6 +2003,7 @@ fi
 %{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
@@ -1787,6 +2218,11 @@ fi
 # mod_vhost_alias
 %{manualdir}/mod/mod_vhost_alias.html
 
+%files errordocs
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_errordocs.conf
+%{_datadir}/errordocs
+
 %files suexec
 %defattr(644,root,root,755)
 %attr(4755,root,root) %{_sbindir}/suexec
 %defattr(644,root,root,755)
 %{_includedir}
 
+%files -n htpasswd-%{name}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/htpasswd
+%{_sbindir}/htpasswd
+%{_mandir}/man1/htpasswd.1*
+
+%files mod_access
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_access.conf
+%attr(755,root,root) %{_libexecdir}/mod_access.so
+
 %files mod_actions
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_actions.conf
 %attr(755,root,root) %{_libexecdir}/mod_actions.so
 
+%files mod_alias
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_alias.conf
+%attr(755,root,root) %{_libexecdir}/mod_alias.so
+
+%files mod_asis
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_asis.conf
+%attr(755,root,root) %{_libexecdir}/mod_asis.so
+
 %files mod_auth
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_auth.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth.so
-%attr(755,root,root) %{_bindir}/htpasswd
 
 %files mod_auth_anon
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_auth_anon.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
 
 %files mod_auth_db
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_auth_db.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
 %attr(755,root,root) %{_bindir}/dbmmanage
 %{_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 md5 mtime size) %{_sysconfdir}/conf.d/*_mod_auth_digest.conf
 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
 
 %files mod_autoindex
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_autoindex.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_autoindex.conf
 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
 
+%files mod_cern_meta
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_cern_meta.conf
+%attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
+
+%files mod_cgi
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_cgi.conf
+%attr(755,root,root) %{_libexecdir}/mod_cgi.so
+
 %files mod_define
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_define.conf
 %attr(755,root,root) %{_libexecdir}/mod_define.so
 
 %files mod_digest
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_digest.conf
 %attr(755,root,root) %{_libexecdir}/mod_digest.so
 
 %files mod_dir
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_dir.conf
 %attr(755,root,root) %{_libexecdir}/mod_dir.so
 
+%files mod_env
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_env.conf
+%attr(755,root,root) %{_libexecdir}/mod_env.so
+
 %files mod_expires
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_expires.conf
 %attr(755,root,root) %{_libexecdir}/mod_expires.so
 
 %files mod_headers
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_headers.conf
 %attr(755,root,root) %{_libexecdir}/mod_headers.so
 
 %files mod_imap
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_imap.conf
 %attr(755,root,root) %{_libexecdir}/mod_imap.so
 
+%files mod_include
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_include.conf
+%attr(755,root,root) %{_libexecdir}/mod_include.so
+
 %files mod_info
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_info.conf
 %attr(755,root,root) %{_libexecdir}/mod_info.so
 
+%files mod_log_agent
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_log_agent.conf
+%attr(755,root,root) %{_libexecdir}/mod_log_agent.so
+
+%files mod_log_config
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_log_config.conf
+%attr(755,root,root) %{_libexecdir}/mod_log_config.so
+
 %files mod_log_forensic
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_log_forensic.conf
 %attr(755,root,root) %{_libexecdir}/mod_log_forensic.so
 
+%files mod_log_referer
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_log_referer.conf
+%attr(755,root,root) %{_libexecdir}/mod_log_referer.so
+
+%files mod_mime
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_mime.conf
+%attr(755,root,root) %{_libexecdir}/mod_mime.so
+
+%files mod_mime_magic
+%defattr(644,root,root,755)
+%attr(640,root,root) %{_sysconfdir}/magic
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_mime_magic.conf
+%attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
+
 %files mod_mmap_static
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_mmap_static.conf
 %attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
 
+%files mod_negotiation
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_negotiation.conf
+%attr(755,root,root) %{_libexecdir}/mod_negotiation.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 md5 mtime size) %{_sysconfdir}/conf.d/*_mod_proxy.conf
 %attr(755,root,root) %{_libexecdir}/libproxy.so
 %dir %attr(770,root,http) /var/cache/apache
 
 %files mod_rewrite
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_rewrite.conf
 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
 
+%files mod_setenvif
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_setenvif.conf
+%attr(755,root,root) %{_libexecdir}/mod_setenvif.so
+
+%files mod_speling
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_speling.conf
+%attr(755,root,root) %{_libexecdir}/mod_speling.so
+
 %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 md5 mtime size) %{_sysconfdir}/conf.d/*_mod_status.conf
 %attr(755,root,root) %{_libexecdir}/mod_status.so
 
 %files mod_unique_id
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_unique_id.conf
 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
 
+%files mod_userdir
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_userdir.conf
+%attr(755,root,root) %{_libexecdir}/mod_userdir.so
+
 %files mod_usertrack
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_usertrack.conf
 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
 
 %files mod_vhost_alias
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf
 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
This page took 0.115996 seconds and 4 git commands to generate.