+# TODO
+# - separate package for /errordocs
+# - documentroot and cgi-dir out of /home/services
#
# 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
#
%include /usr/lib/rpm/macros.perl
Summary: The most widely used Web server on the Internet
Summary(zh_CN): Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
Name: apache1
Version: 1.3.33
-Release: 2
+Release: 3.11
License: Apache Group
Group: Networking/Daemons
Source0: http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
BuildRequires: db-devel >= 4.1
BuildRequires: mm-devel >= 1.3.0
%{?with_rewrite_ldap:BuildRequires: openldap-devel}
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.177
BuildRequires: rpm-perlprov
PreReq: mm
PreReq: perl-base
PreReq: rc-scripts
Requires(pre): /bin/id
+%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}
+# for errordocs
+Requires: %{name}-mod_include = %{version}-%{release}
+%endif
Requires(pre): /usr/bin/getent
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Provides: httpd
Provides: user(http)
Provides: webserver = apache
-%{?with_ipv6:Provides: apache(ipv6)}
+Provides: apache = %{version}-%{release}
+%{?with_ipv6:Provides: apache1(ipv6)}
Obsoletes: apache < 2.0.0
Obsoletes: apache-extra
Obsoletes: apache6
Requires: %{name}-apxs = %{version}-%{release}
Provides: %{name}(EAPI)-devel = %{version}-%{release}
Provides: apache(EAPI)-devel = %{version}-%{release}
-%{?with_ipv6:Provides: apache(ipv6)-devel}
+%{?with_ipv6:Provides: apache1(ipv6)-devel}
Obsoletes: apache-devel < 2.0.0
%description devel
%description devel -l uk
ðÁËÅÔ apache-devel ͦÓÔÉÔØ ÈÅÄÅÒÉ ÄÌÑ Web Server'Á.
+%package mod_access
+Summary: Access control based on client hostname or IP address
+Group: Networking/Daemons
+Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_access) = %{version}-%{release}
+
+%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.
+
%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
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
Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
¿±danie pobrania pliku okre¶lonego typu.
+%package mod_alias
+Summary: Mapping different parts of the host filesystem in the document tree, and URL redirection
+Group: Networking/Daemons
+Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_alias) = %{version}-%{release}
+
+%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.
+
+%package mod_asis
+Summary: Sending files which contain their own HTTP headers
+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.
+
%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
Group: Networking/Daemons
-Requires(post,preun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Requires: htpasswd
+Provides: apache(mod_auth) = %{version}-%{release}
Obsoletes: apache-mod_auth < 2.0.0
%description mod_auth
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
Summary: Apache module with user authentication which uses Berkeley DB files
Summary(pl): Modu³ apache z mechanizmem autentykacji u¿ywaj±cym plików Berkeley DB
Group: Networking/Daemons
-Requires(post,preun): %{apxs}
+Requires(triggerpostun): %{apxs}
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
Summary: Apache user authentication module using MD5 Digest Authentication
Summary(pl): Modu³ apache do autoryzacji MD5
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
%description mod_auth_digest
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): %{apxs}
+Provides: apache(mod_autoindex) = %{version}-%{release}
Requires: %{name}(EAPI) = %{version}-%{release}
%description mod_autoindex
%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
+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.
+
+%package mod_cgi
+Summary: Invoking CGI scripts
+Group: Networking/Daemons
+Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_cgi) = %{version}-%{release}
+
+%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.
+
%package mod_define
Summary: Apache module - authentication variables for arbitrary directives
Summary(pl): Modu³ apache 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
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
Summary: Apache module for "trailing slash" redirects and serving directory index files
Summary(pl): Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
Group: Networking/Daemons
-Requires(post,preun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_dir) = %{version}-%{release}
Obsoletes: apache-mod_dir < 2.0.0
%description mod_dir
%description mod_dir -l pl
Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
+%package mod_env
+Summary: Passing of environments to CGI scripts
+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.
+
%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
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
Summary: Apache module with imap-file handler
Summary(pl): Modu³ 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
%description mod_imap -l pl
Modu³ umozliwiaj±cy obs³ugê plików .map (imap-file handler)
+%package mod_include
+Summary: Server-parsed documents
+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.
+
%package mod_info
Summary: Apache module with comprehensive overview of the server configuration
Summary(pl): Modu³ dostarczaj±cy informacji na temat serwera.
Group: Networking/Daemons
-Requires(post,preun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_info) = %{version}-%{release}
Obsoletes: apache-mod_info < 2.0.0
%description mod_info
Modu³ dostarczaj±cy informacji o konfiguracji serwera, zainstalowanych
modu³ach itp.
+%package mod_log_agent
+Summary: Logging of User Agents
+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.
+
+%package mod_log_config
+Summary: User-configurable logging replacement for 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.
+
%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
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
+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.
+
+%package mod_mime
+Summary: Determining document types using file extensions
+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.
+
+%package mod_mime_magic
+Summary: Determining document types using "magic numbers"
+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.
+
%package mod_mmap_static
Summary: Apache module for mmap()ing statically configured list files
Summary(pl): Modu³ s³u¿±cy do mmap()owania plików.
Group: Networking/Daemons
-Requires(post,preun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_mmap_static) = %{version}-%{release}
Obsoletes: apache-mod_mmap_static < 2.0.0
%description mod_mmap_static
Modu³ umo¿liwia mmap()owanie statycznie skonfigurowanych plików
(czêsto u¿ywanych ale nie ulegaj±cych zmianom).
+%package mod_negotiation
+Summary: Content negotiation
+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.
+
%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): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_proxy) = %{version}-%{release}
Obsoletes: apache-mod_proxy < 2.0.0
%description mod_proxy
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
%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
+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.
+
+%package mod_speling
+Summary: Automatically correct minor typos in URLs
+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.
+
%package mod_status
Summary: Server status report module for apache
Summary(pl): Modu³ dostarczaj±cy informacje statystyczne o serwerze.
Group: Networking/Daemons
-Requires(post,preun): %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun): %{apxs}
-Requires(post,preun): grep
-Requires(preun): fileutils
+Requires(triggerpostun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_status) = %{version}-%{release}
Obsoletes: apache-mod_status < 2.0.0
%description mod_status
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
maszyn. Modu³ ustawia przy ka¿dym ¿±daniu zmienn± ¶rodowiskow±
UNIQUE_ID.
+%package mod_userdir
+Summary: User home directories
+Group: Networking/Daemons
+Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_userdir) = %{version}-%{release}
+
+%description mod_userdir
+This module provides for user-specific directories.
+
%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
Summary: Apache module for dynamically configured mass virtual hosting
Summary(pl): Modu³ dodaj±cy obs³ugê hostów wirtualnych.
Group: Networking/Daemons
-Requires(post,preun): %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun): %{apxs}
-Requires(post,preun): grep
-Requires(preun): fileutils
+Requires(triggerpostun): %{apxs}
Requires: %{name}(EAPI) = %{version}-%{release}
+Provides: apache(mod_vhost_alias) = %{version}-%{release}
Obsoletes: apache-mod_vhost_alias < 2.0.0
%description mod_vhost_alias
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
%patch0 -p1
$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
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/"
+CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d"
echo "LoadModule access_module modules/mod_access.so" > $CFG/01_mod_access.conf
install %{SOURCE17} $CFG/02_mod_alias.conf
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}
+
%clean
rm -rf $RPM_BUILD_ROOT
fi
%triggerpostun -- %{name} <= 1.3.31-5
-echo "WARNING!!!"
-echo "Since that version autoindex module has been separated to package %{name}-mod_autoindex"
-echo "If you want to have the same functionality do:"
-echo "poldek --upgrade %{name}-mod_autoindex"
-echo
+%banner %{name} -e -a <<EOF
+WARNING!!!
+ Since that version autoindex module has been separated to package %{name}-mod_autoindex
+ If you want to have the same functionality do:
+poldek --upgrade %{name}-mod_autoindex
+
+EOF
+
+%triggerpostun -- %{name} < 1.3.33-3.4
+%banner %{name} -e -a <<EOF
+WARNING!!!
+ Since that version following modules have been separated to subpackages
+ If you want to have the same functionality do:
+ poldek --upgrade %{name}-MODULENAME
+ 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
+
+%post mod_access
+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_access
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
%post mod_actions
if [ -f /var/lock/subsys/apache ]; then
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_actions
+%postun mod_actions
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_alias
+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_alias
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_asis
+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_asis
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_auth
+%postun mod_auth
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_auth_anon
+%postun mod_auth_anon
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_auth_db
+%postun mod_auth_db
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
%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
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ else
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
+ fi
+fi
+
+%postun mod_auth_digest
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
%post mod_autoindex
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
-%preun mod_autoindex
+%postun mod_autoindex
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
' /etc/apache/apache.conf
-%post mod_auth_digest
+%post mod_cern_meta
+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_cern_meta
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
- else
- echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
fi
-%preun mod_auth_digest
+%post mod_cgi
+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
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_define
+%postun mod_define
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_digest
+%postun mod_digest
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_dir
+%postun mod_dir
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_env
+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
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_expires
+%postun mod_expires
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_headers
+%postun mod_headers
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_imap
+%postun mod_imap
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_include
+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_include
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_info
+%postun mod_info
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_log_agent
+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_log_agent
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_log_config
+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_log_config
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_log_forensic
+%postun mod_log_forensic
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_log_referer
+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_log_referer
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_mime
+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_mime
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_mime_magic
+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_mime_magic
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
fi
fi
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_mmap_static
+%postun mod_mmap_static
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_negotiation
+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
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_proxy
+%postun mod_proxy
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_rewrite
+%postun mod_rewrite
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_setenvif
+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
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_speling
+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_speling
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_status
+%postun mod_status
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_unique_id
+%postun mod_unique_id
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
+
+%post mod_userdir
+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
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_usertrack
+%postun mod_usertrack
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
-%preun mod_vhost_alias
+%postun mod_vhost_alias
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_common.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_errordocs.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_access.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_alias.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_asis.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cern_meta.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cgi.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_env.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_include.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_agent.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_config.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_referer.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime_magic.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_negotiation.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_setenvif.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_speling.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_userdir.conf
%attr(640,root,root) %{_sysconfdir}/magic
%attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/monit/*.monitrc
%dir %{_libexecdir}
-%attr(755,root,root) %{_libexecdir}/mod_access.so
-%attr(755,root,root) %{_libexecdir}/mod_alias.so
-%attr(755,root,root) %{_libexecdir}/mod_asis.so
-%attr(755,root,root) %{_libexecdir}/mod_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
%attr(755,root,root) %{_bindir}/checkgid
%attr(755,root,root) %{_bindir}/htdigest
%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
%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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth.conf
%attr(755,root,root) %{_libexecdir}/mod_auth.so
-# FIXME apache2 puts in sbin
-%attr(755,root,root) %{_bindir}/htpasswd
-%{_mandir}/man1/htpasswd.1*
%files mod_auth_anon
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_sysconfdir}/conf.d/*_mod_define.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_dir.conf
%attr(755,root,root) %{_libexecdir}/mod_dir.so
+%files mod_env
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_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 size mtime md5) %{_sysconfdir}/conf.d/*_mod_expires.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_imap.conf
%attr(755,root,root) %{_libexecdir}/mod_imap.so
+%files mod_include
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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) %config(noreplace) %verify(not size mtime md5) %{_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 size mtime md5) %{_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 size mtime md5) %{_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}/conf.d/*_mod_proxy.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_rewrite.conf
%attr(755,root,root) %{_libexecdir}/mod_rewrite.so
+%files mod_setenvif
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_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 size mtime md5) %{_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}/conf.d/*_mod_status.conf
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_unique_id.conf
%attr(755,root,root) %{_libexecdir}/mod_unique_id.so
+%files mod_userdir
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_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 size mtime md5) %{_sysconfdir}/conf.d/*_mod_usertrack.conf