Summary(uk): îÁÊÐÏÐÕÌÑÒΦÛÉÊ Web-Server
Summary(zh_CN): Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
Name: apache1
-Version: 1.3.31
-Release: 1
+Version: 1.3.33
+Release: 1.90
License: Apache Group
Group: Networking/Daemons
Source0: http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: bd548a06ac48dda496b4e613572bb020
+# Source0-md5: 3dfd2c3778f37a2dfc22b97417a61407
Source1: %{name}.init
Source2: %{name}.logrotate
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
-Source8: %{name}-mod_vhost_alias.conf
+Source6: %{name}.monitrc
+Source7: %{name}-httpd.conf
+Source8: %{name}-common.conf
Source9: %{name}-mod_status.conf
Source10: %{name}-mod_proxy.conf
+Source11: %{name}-mod_autoindex.conf
+Source12: %{name}-mod_dir.conf
+Source13: %{name}-mod_info.conf
+Source14: %{name}-mod_log_config.conf
+Source15: %{name}-mod_userdir.conf
+Source16: %{name}-mod_mime_magic.conf
+Source17: %{name}-mod_alias.conf
+Source18: %{name}-mod_negotiation.conf
+Source19: %{name}-mod_mime.conf
+Source20: %{name}-mod_actions.conf
+Source21: %{name}-mod_cern_meta.conf
+Source22: %{name}-mod_setenvif.conf
+Source23: %{name}-mod_vhost_alias.conf
+Source24: %{name}-errordocs.conf
Patch0: %{name}-PLD.patch
Patch1: %{name}-suexec.patch
Patch2: %{name}-errordocs.patch
BuildRequires: db-devel >= 4.1
BuildRequires: mm-devel >= 1.3.0
%{?with_rewrite_ldap:BuildRequires: openldap-devel}
+BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpm-perlprov
PreReq: mm
PreReq: perl-base
PreReq: rc-scripts
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
-Requires: %{name}-apxs = %{version}
-Provides: %{name}(EAPI) = %{version}
-Provides: apache(EAPI) = %{version}
-Provides: apache = %{version}-%{release}
+Provides: %{name}(EAPI) = %{version}-%{release}
+Provides: group(http)
Provides: httpd
-Provides: webserver
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Provides: user(http)
+Provides: webserver = apache
+%{?with_ipv6:Provides: apache(ipv6)}
Obsoletes: apache < 2.0.0
Obsoletes: apache-extra
Obsoletes: apache6
-Obsoletes: apache-doc
-Obsoletes: indexhtml
-Obsoletes: webserver
+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 webappsdir %{httpdir}/apps
+%define manualdir %{_prefix}/share/apache1-manual
%description
Apache is a powerful, full-featured, efficient and freely-available
%package suexec
Summary: Apache suexec wrapper
-Summary(pl): Suexec wrapper do serwera www Apache
+Summary(pl): Suexec wrapper do serwera WWW Apache
Summary(ru): Apache suEXEC CGI wrapper
Summary(uk): Apache suEXEC CGI wrapper
-Group: Development/Tools
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-suexec = %{version}-%{release}
+Group: Networking/Daemons
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-suexec < 2.0.0
%description suexec
Summary: Apache index.html* files
Summary(pl): Pliki Apache index.html*
Group: Documentation
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
+Obsoletes: indexhtml
%description index
Apache index.html* files.
%description index -l pl
Pliki Apache index.html*.
+%package doc
+Summary: Apache 1.3.x manual
+Summary(pl): Podrêcznik do Apache'a 1.3.x
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Apache 1.3.x manual.
+
+%description doc -l pl
+Podrêcznik do Apache'a 1.3.x.
+
%package devel
Summary: Module development tools for the Apache web server
Summary(cs): Hlavièkové soubory pro Apache Web server
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
Summary(uk): úÁÓÏÂÉ ÓÔ×ÏÒÅÎÎÑ ÍÏÄÕÌ¦× ÄÌÑ web server'Õ Apache
Summary(zh_CN): ÓÃÓÚ Apache Web ·þÎñ³ÌÐòµÄ¿ª·¢¹¤¾ß¡£
Group: Networking/Utilities
-Requires: %{name}-apxs = %{version}
-Provides: %{name}(EAPI)-devel = %{version}
-Provides: apache(EAPI)-devel = %{version}
-Provides: apache-devel = %{version}-%{release}
+Requires: %{name}-apxs = %{version}-%{release}
+Provides: %{name}(EAPI)-devel = %{version}-%{release}
+Provides: apache(EAPI)-devel = %{version}-%{release}
+%{?with_ipv6:Provides: apache(ipv6)-devel}
Obsoletes: apache-devel < 2.0.0
%description devel
Summary(pl): Modu³ dla apache do uruchamiania skryptów cgi
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_actions = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_actions < 2.0.0
%description mod_actions
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}
-Provides: apache-mod_auth = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_auth < 2.0.0
%description mod_auth
Summary(pl): Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_auth_anon = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_auth_anon < 2.0.0
%description mod_auth_anon
This package contains mod_auth_anon module. It allows "anonymous" user
access to authenticated areas. It does access control in a manner
-similar to anonymous-ftp sites; i.e. have a 'magic' user id
+similar to anonymous FTP sites; i.e. have a 'magic' user id
'anonymous' and the email address as a password. These email addresses
can be logged. Combined with other (database) access control methods,
this allows for effective user tracking and customization according to
%description mod_auth_anon -l pl
Ten modu³ oferuje anonimow± autoryzacjê u¿ytkownia podobnie do
-anonimowych serwerów ftp (u¿ytkownik ,,anonymous'' oraz has³o w
+anonimowych serwerów FTP (u¿ytkownik ,,anonymous'' oraz has³o w
postaci adresu pocztowego u¿ytkownika).
%package mod_auth_db
Summary(pl): Modu³ apache z mechanizmem autentykacji u¿ywaj±cym plików Berkeley DB
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
+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(pl): Modu³ apache do autoryzacji MD5
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_auth_digest = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: %{name}-mod_digest
Obsoletes: apache-mod_auth_digest < 2.0.0
Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
Authentication.
+%package mod_autoindex
+Summary: Apache module - display index of files
+Summary(pl): Modu³ apache do wy¶wietlania indeksu plików
+Group: Networking/Daemons
+Requires(post,preun): %{apxs}
+Requires: %{name}(EAPI) = %{version}-%{release}
+
+%description mod_autoindex
+This package contains mod_autoindex module. It provides
+generation index of files.
+
+%description mod_autoindex -l pl
+Ten pakiet dostarcza modu³ autoindex, który generuje indeks plików.
+
%package mod_define
Summary: Apache module - authentication variables for arbitrary directives
Summary(pl): Modu³ apache do definiowania zmiennych
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_define = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_define < 2.0.0
%description mod_define
Summary(pl): Starsza wersja modu³u apache do autoryzacji MD5
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_digest = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_digest < 2.0.0
%description mod_digest
Summary(pl): Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_dir = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_dir < 2.0.0
%description mod_dir
Summary(pl): Modu³ generuj±cy nag³ówki HTTP Expires
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_expires = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_expires < 2.0.0
%description mod_expires
Summary(pl): Modu³ pozwalaj±cy na modyfikacjê nag³ówków HTTP
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_headers = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_headers < 2.0.0
%description mod_headers
Summary(pl): Modu³ z obs³ug± imap-file
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_imap = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_imap < 2.0.0
%description mod_imap
Summary(pl): Modu³ dostarczaj±cy informacji na temat serwera.
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_info = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_info < 2.0.0
%description mod_info
Summary: Modu³ Apache'a do logowania ¿±dañ w celu pó¼niejszej analizy
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_log_forensic = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_log_forensic < 2.0.0
%description mod_log_forensic
Summary(pl): Modu³ s³u¿±cy do mmap()owania plików.
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_mmap_static = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_mmap_static < 2.0.0
%description mod_mmap_static
Summary: Apache module with Web proxy
Summary(pl): Modu³ dodaj±cy obs³ugê serwera proxy
Group: Networking/Daemons
-Requires(post,preun): %{name}(EAPI) = %{version}
+Requires(post,preun): %{name}(EAPI) = %{version}-%{release}
Requires(post,preun): %{apxs}
Requires(post,preun): grep
Requires(preun): fileutils
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_proxy = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_proxy < 2.0.0
%description mod_proxy
Summary(pl): Modu³ do ,,przepisywania'' adresów URL w locie
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_rewrite = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_rewrite < 2.0.0
%description mod_rewrite
Summary: Server status report module for apache
Summary(pl): Modu³ dostarczaj±cy informacje statystyczne o serwerze.
Group: Networking/Daemons
-Requires(post,preun): %{name}(EAPI) = %{version}
+Requires(post,preun): %{name}(EAPI) = %{version}-%{release}
Requires(post,preun): %{apxs}
Requires(post,preun): grep
Requires(preun): fileutils
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_status = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_status < 2.0.0
%description mod_status
Summary(pl): Modu³ nadaj±cy ka¿demu ¿±daniu unikalny token
Group: Networking/Daemons
Requires(post,preun): %{apxs}
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_unique_id = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_unique_id < 2.0.0
%description mod_unique_id
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}
-Provides: apache-mod_usertrack = %{version}-%{release}
+Requires: %{name}(EAPI) = %{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}
+Requires(post,preun): %{name}(EAPI) = %{version}-%{release}
Requires(post,preun): %{apxs}
Requires(post,preun): grep
Requires(preun): fileutils
-Requires: %{name}(EAPI) = %{version}
-Provides: apache-mod_vhost_alias = %{version}-%{release}
+Requires: %{name}(EAPI) = %{version}-%{release}
Obsoletes: apache-mod_vhost_alias < 2.0.0
%description mod_vhost_alias
%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=%{_datadir}/html/manual \
+ --includedir=%{_includedir} \
+ --libexecdir=%{_sysconfdir}/modules \
--localstatedir=/var \
+ --mandir=%{_mandir} \
+ --manualdir=%{manualdir} \
--runtimedir=/var/run \
--logfiledir=/var/log/apache \
--with-layout=PLD \
--target=apache \
%{?with_ipv6:--enable-rule=INET6}
-%{__make} LIBS1="-lm -lcrypt -lmm -ldl"
+%{__make} \
+ LIBS1="-lm -lcrypt -lmm -ldl"
rm -f src/modules/standard/mod_auth_db.so
%{__make} -C src/modules/standard mod_auth_db.so \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
- $RPM_BUILD_ROOT{%{_datadir}/errordocs,%{webappsdir}} \
+install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
+ $RPM_BUILD_ROOT%{_datadir}/errordocs \
+ $RPM_BUILD_ROOT%{_sysconfdir}/conf.d \
+ $RPM_BUILD_ROOT%{_libexecdir} \
$RPM_BUILD_ROOT/var/{log/{apache,archiv/apache},run/apache}
%{__make} install-quiet \
- root="$RPM_BUILD_ROOT"
+ root=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
+#mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache1
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apache
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
+mv $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf conf/apache.conf.dist
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+
+CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d/"
+
+echo "LoadModule access_module modules/mod_access.so" > $CFG/01_mod_access.conf
+install %{SOURCE17} $CFG/02_mod_alias.conf
+echo "LoadModule asis_module modules/mod_asis.so" > $CFG/03_mod_asis.conf
+install %{SOURCE21} $CFG/04_mod_cern_meta.conf
+echo "LoadModule cgi_module modules/mod_cgi.so" > $CFG/05_mod_cgi.conf
+echo "LoadModule env_module modules/mod_env.so" > $CFG/06_mod_env.conf
+echo "LoadModule include_module modules/mod_include.so" > $CFG/07_mod_include.conf
+echo "LoadModule log_agent_module modules/mod_log_agent.so" > $CFG/08_mod_log_agent.conf
+install %{SOURCE14} $CFG/09_mod_log_config.conf
+echo "LoadModule log_referer_module modules/mod_log_referer.so" > $CFG/10_mod_log_referer.conf
+install %{SOURCE16} $CFG/11_mod_mime_magic.conf
+install %{SOURCE19} $CFG/12_mod_mime.conf
+install %{SOURCE18} $CFG/13_mod_negotiation.conf
+install %{SOURCE22} $CFG/14_mod_setenvif.conf
+echo "LoadModule speling_module modules/mod_speling.so" > $CFG/15_mod_speling.conf
+install %{SOURCE15} $CFG/16_mod_userdir.conf
+
+install %{SOURCE8} $CFG/20_common.conf
+
+install %{SOURCE23} $CFG/20_mod_vhost_alias.conf
+install %{SOURCE9} $CFG/25_mod_status.conf
+install %{SOURCE10} $CFG/30_mod_proxy.conf
+install %{SOURCE20} $CFG/50_mod_actions.conf
+echo "LoadModule auth_module modules/mod_auth.so" > $CFG/51_mod_auth.conf
+echo "LoadModule auth_anon_module modules/mod_auth_anon.so" > $CFG/52_mod_auth_anon.conf
+echo "LoadModule auth_db_module modules/mod_auth_db.so" > $CFG/53_mod_auth_db.conf
+echo "LoadModule auth_digest_module modules/mod_auth_digest.so" > $CFG/54_mod_auth_digest.conf
+install %{SOURCE11} $CFG/57_mod_autoindex.conf
+install %{SOURCE12} $CFG/59_mod_dir.conf
+echo "LoadModule expires_module modules/mod_expires.so" > $CFG/67_mod_expires.conf
+echo "LoadModule headers_module modules/mod_headers.so" > $CFG/68_mod_headers.conf
+echo "LoadModule imap_module modules/mod_imap.so" > $CFG/69_mod_imap.conf
+echo "LoadModule rewrite_module modules/mod_rewrite.so" > $CFG/70_mod_rewrite.conf
+echo "LoadModule usertrack_module modules/mod_usertrack.so" > $CFG/71_mod_usertrack.conf
+echo "LoadModule unique_id_module modules/mod_unique_id.so" > $CFG/72_mod_unique_id.conf
+echo "LoadModule define_module modules/mod_define.so" > $CFG/73_mod_define.conf
+echo "LoadModule digest_module modules/mod_digest.so" > $CFG/74_mod_digest.conf
+echo "LoadModule log_forensic_module modules/mod_log_forensic.so" > $CFG/75_mod_log_forensic.conf
+echo "LoadModule mmap_static_module modules/mod_mmap_static.so" > $CFG/76_mod_mmap_static.conf
+install %{SOURCE13} $CFG/77_mod_info.conf
+install %{SOURCE24} $CFG/80_errordocs.conf
+
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/monit
ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
perl -p -i -e 's/^if ...O ne "MSWin32"./if (0)/' $RPM_BUILD_ROOT%{apxs}
+mv $RPM_BUILD_ROOT%{_sysconfdir}/modules/* $RPM_BUILD_ROOT%{_libexecdir}
+rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/modules
+ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
+ln -s /var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
+
%clean
rm -rf $RPM_BUILD_ROOT
%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 autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
-%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
-%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
-%{apxs} -e -a -n include %{_libexecdir}/mod_include.so 1>&2
-%{apxs} -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
-%{apxs} -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
-%{apxs} -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
-%{apxs} -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
-%{apxs} -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
-%{apxs} -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
-%{apxs} -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
-%{apxs} -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
-%{apxs} -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n access %{_libexecdir}/mod_access.so 1>&2
- %{apxs} -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
- %{apxs} -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
- %{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
- %{apxs} -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
- %{apxs} -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
- %{apxs} -e -A -n env %{_libexecdir}/mod_env.so 1>&2
- %{apxs} -e -A -n include %{_libexecdir}/mod_include.so 1>&2
- %{apxs} -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
- %{apxs} -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
- %{apxs} -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
- %{apxs} -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
- %{apxs} -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
- %{apxs} -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
- %{apxs} -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
- %{apxs} -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
- %{apxs} -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache stop 1>&2
fi
%postun
if [ "$1" = "0" ]; then
- echo "Removing user http."
- /usr/sbin/userdel http
- echo "Removing group http."
- /usr/sbin/groupdel http
+ %userremove http
+ %groupremove http
fi
%triggerpostun -- apache < 2.0.0
/usr/sbin/useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP User" -g http http 1>&2
fi
/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 autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-%{apxs} -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
-%{apxs} -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
-%{apxs} -e -a -n env %{_libexecdir}/mod_env.so 1>&2
-%{apxs} -e -a -n include %{_libexecdir}/mod_include.so 1>&2
-%{apxs} -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
-%{apxs} -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
-%{apxs} -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
-%{apxs} -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
-%{apxs} -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
-%{apxs} -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
-%{apxs} -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
-%{apxs} -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
-%{apxs} -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
+
+%triggerpostun -- apache1 < 1.3.33-1.85
+# upgrading from older version
+if [ "$1" = "2" ]; then
+ sed -i -e '
+ # get apxs over confusion of changed ServerRoot
+ s,^\(LoadModule .*\) lib/apache1/,\1 modules/,
+
+ # update ServerRoot
+ s,^ServerRoot.*,ServerRoot "/etc/apache",
+ ' /etc/apache/apache.conf
+fi
+
+%triggerpostun -- %{name} <= 1.3.31-5
+echo "WARNING!!!"
+echo "Since that version autoindex module has been separated to package %{name}-mod_autoindex"
+echo "If you want to have the same functionality do:"
+echo "poldek --upgrade %{name}-mod_autoindex"
+echo
%post mod_actions
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_actions
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n actions %{_libexecdir}/mod_actions.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_actions -- apache-mod_actions < 2.0.0
-%{apxs} -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
-
%post mod_auth
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_auth
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_auth -- apache-mod_auth < 2.0.0
-%{apxs} -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
-
%post mod_auth_anon
-%{apxs} -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_auth_anon
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
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_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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_auth_db
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
%triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
%{apxs} -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
-%triggerpostun mod_auth_db -- apache-mod_auth_db < 2.0.0
-%{apxs} -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
-
-%post mod_auth_digest
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
+%post mod_autoindex
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_auth_digest
+%preun mod_autoindex
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
-%triggerpostun mod_auth_digest -- apache-mod_auth_digest < 2.0.0
-%{apxs} -e -a -n auth_digest %{_libexecdir}/mod_auth_digest.so 1>&2
+%triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
+%{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+sed -i -e '
+ s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
+' /etc/apache/apache.conf
+
+%post mod_auth_digest
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ else
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
+ fi
+fi
+
+%preun mod_auth_digest
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
+ fi
+fi
%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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_define
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n define %{_libexecdir}/mod_define.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_define -- apache-mod_define < 2.0.0
-%{apxs} -e -a -n define %{_libexecdir}/mod_define.so 1>&2
-
%post mod_digest
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
if [ -f /var/lock/subsys/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."
+ 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
-%triggerpostun mod_digest -- apache-mod_digest < 2.0.0
-%{apxs} -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
-
%post mod_dir
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_dir
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_dir -- apache-mod_dir < 2.0.0
-%{apxs} -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
-
%post mod_expires
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_expires
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_expires -- apache-mod_expires < 2.0.0
-%{apxs} -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
-
%post mod_headers
-%{apxs} -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_headers
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
if [ -f /var/lock/subsys/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
-
%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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%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
-%triggerpostun mod_imap -- apache-mod_imap < 2.0.0
-%{apxs} -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
-
%post mod_info
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%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
-%triggerpostun mod_info -- apache-mod_info < 2.0.0
-%{apxs} -e -a -n info %{_libexecdir}/mod_info.so 1>&2
-
%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
+if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
else
- echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_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
-%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_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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%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
-%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_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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_proxy
if [ "$1" = "0" ]; then
- umask 027
- %{apxs} -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
- grep -v "^Include.*mod_proxy.conf" /etc/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_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
+%triggerpostun mod_proxy -- apache1-mod_proxy < 1.3.33-1.85
+%{apxs} -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
+sed -i -e '
+ s,^Include.*mod_proxy.conf,Include %{_sysconfdir}/conf.d/*_mod_proxy.conf,
+' /etc/apache/apache.conf
%post mod_rewrite
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_rewrite
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_rewrite -- apache-mod_rewrite < 2.0.0
-%{apxs} -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
-
%post mod_status
-%{apxs} -e -a -n status %{_libexecdir}/mod_status.so 1>&2
-if [ -f /etc/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_status
if [ "$1" = "0" ]; then
- umask 027
- %{apxs} -e -A -n status %{_libexecdir}/mod_status.so 1>&2
- grep -v "^Include.*mod_status.conf" /etc/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_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
+%triggerpostun mod_status -- apache1-mod_status < 1.3.33-1.85
+%{apxs} -e -A -n status %{_libexecdir}/mod_status.so 1>&2
+sed -i -e '
+ s,^Include.*mod_status.conf,Include %{_sysconfdir}/conf.d/*_mod_status.conf,
+' /etc/apache/apache.conf
%post mod_unique_id
-%{apxs} -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
if [ -f /var/lock/subsys/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_unique_id
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%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_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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_usertrack
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
fi
fi
-%triggerpostun mod_usertrack -- apache-mod_usertrack < 2.0.0
-%{apxs} -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
-
%post mod_vhost_alias
-%{apxs} -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
-if [ -f /etc/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."
+ echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
fi
%preun mod_vhost_alias
if [ "$1" = "0" ]; then
- umask 027
- %{apxs} -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
- grep -v "^Include.*mod_vhost_alias.conf" /etc/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
+%triggerpostun mod_vhost_alias -- apache1-mod_vhost_alias < 1.3.33-1.85
+%{apxs} -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
+sed -i -e '
+ s,^Include.*mod_vhost_alias.conf,Include %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf,
+' /etc/apache/apache.conf
%files
%defattr(644,root,root,755)
%doc ABOUT_APACHE src/CHANGES README
-%doc conf/mime.types
+%doc conf/mime.types conf/apache.conf.dist
%attr(754,root,root) /etc/rc.d/init.d/apache
%attr(750,root,root) %dir %{_sysconfdir}
+%{_sysconfdir}/modules
+%{_sysconfdir}/logs
+%attr(750,root,root) %dir %{_sysconfdir}/conf.d
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_common.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_errordocs.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_access.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_alias.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_asis.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cern_meta.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_cgi.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_env.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_include.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_agent.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_config.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_referer.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_mime_magic.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_negotiation.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_setenvif.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_speling.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_userdir.conf
+
%attr(640,root,root) %{_sysconfdir}/magic
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
-%attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*
+%attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/monit/*.monitrc
%dir %{_libexecdir}
%attr(755,root,root) %{_libexecdir}/mod_access.so
%attr(755,root,root) %{_libexecdir}/mod_alias.so
%attr(755,root,root) %{_libexecdir}/mod_asis.so
-%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
%attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
%attr(755,root,root) %{_libexecdir}/mod_cgi.so
%attr(755,root,root) %{_libexecdir}/mod_env.so
%{_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(750,root,logs) %dir /var/log/apache
+%attr(750,root,logs) %dir /var/log/archiv/apache
+%attr(640,root,logs) %ghost /var/log/apache/*
%dir %{_datadir}
-%dir %{_datadir}/manual
-%dir %{_datadir}/manual/images/
-%{_datadir}/manual/images/apache_header.gif
-%{_datadir}/manual/images/custom_errordocs.gif
-%{_datadir}/manual/images/home.gif
-%{_datadir}/manual/images/index.gif
-%{_datadir}/manual/images/pixel.gif
-%{_datadir}/manual/images/sub.gif
-%{_datadir}/manual/misc
-%{_datadir}/manual/LICENSE
-%{_datadir}/manual/bind.html.html
-%{_datadir}/manual/bind.html.en
-%lang(fr) %{_datadir}/manual/bind.html.fr
-%lang(ja) %{_datadir}/manual/bind.html.ja.jis
-%{_datadir}/manual/cgi_path.html.html
-%{_datadir}/manual/cgi_path.html.en
-%lang(fr) %{_datadir}/manual/cgi_path.html.fr
-%lang(ja) %{_datadir}/manual/cgi_path.html.ja.jis
-%{_datadir}/manual/configuring.html.html
-%{_datadir}/manual/configuring.html.en
-%lang(fr) %{_datadir}/manual/configuring.html.fr
-%lang(ja) %{_datadir}/manual/configuring.html.ja.jis
-%{_datadir}/manual/content-negotiation.html.html
-%{_datadir}/manual/content-negotiation.html.en
-%lang(ja) %{_datadir}/manual/content-negotiation.html.ja.jis
-%{_datadir}/manual/custom-error.html.html
-%{_datadir}/manual/custom-error.html.en
-%lang(fr) %{_datadir}/manual/custom-error.html.fr
-%lang(ja) %{_datadir}/manual/custom-error.html.ja.jis
-%{_datadir}/manual/dns-caveats.html.html
-%{_datadir}/manual/dns-caveats.html.en
-%lang(fr) %{_datadir}/manual/dns-caveats.html.fr
-%{_datadir}/manual/dso.html
-%{_datadir}/manual/env.html.html
-%{_datadir}/manual/env.html.en
-%lang(ja) %{_datadir}/manual/env.html.ja.jis
-%{_datadir}/manual/footer.html
-%{_datadir}/manual/handler.html.html
-%{_datadir}/manual/handler.html.en
-%lang(ja) %{_datadir}/manual/handler.html.ja.jis
-%{_datadir}/manual/header.html
-%{_datadir}/manual/index.html.html
-%{_datadir}/manual/index.html.en
-%lang(fr) %{_datadir}/manual/index.html.fr
-%lang(ja) %{_datadir}/manual/index.html.ja.jis
-%{_datadir}/manual/install.html.html
-%{_datadir}/manual/install.html.en
-%lang(es) %{_datadir}/manual/install.html.es
-%lang(fr) %{_datadir}/manual/install.html.fr
-%lang(ja) %{_datadir}/manual/install.html.ja.jis
-%{_datadir}/manual/invoking.html.html
-%{_datadir}/manual/invoking.html.en
-%lang(fr) %{_datadir}/manual/invoking.html.fr
-%{_datadir}/manual/keepalive.html.html
-%{_datadir}/manual/keepalive.html.en
-%lang(ja) %{_datadir}/manual/keepalive.html.ja.jis
-%{_datadir}/manual/location.html.html
-%{_datadir}/manual/location.html.en
-%lang(ja) %{_datadir}/manual/location.html.ja.jis
-%{_datadir}/manual/logs.html
-%{_datadir}/manual/multilogs.html
-%{_datadir}/manual/new_features_1_3.html.html
-%{_datadir}/manual/new_features_1_3.html.en
-%lang(ja) %{_datadir}/manual/new_features_1_3.html.ja.jis
-%{_datadir}/manual/process-model.html.html
-%{_datadir}/manual/process-model.html.en
-%lang(ja) %{_datadir}/manual/process-model.html.ja.jis
-%{_datadir}/manual/sections.html.html
-%{_datadir}/manual/sections.html.en
-%lang(ja) %{_datadir}/manual/sections.html.ja.jis
-%{_datadir}/manual/server-wide.html.html
-%{_datadir}/manual/server-wide.html.en
-%lang(fr) %{_datadir}/manual/server-wide.html.fr
-%lang(ja) %{_datadir}/manual/server-wide.html.ja.jis
-%{_datadir}/manual/sitemap.html
-%{_datadir}/manual/sourcereorg.html
-%{_datadir}/manual/stopping.html.html
-%{_datadir}/manual/stopping.html.en
-%lang(fr) %{_datadir}/manual/stopping.html.fr
-%{_datadir}/manual/upgrading_to_1_3.html
-%{_datadir}/manual/urlmapping.html
-%dir %{_datadir}/manual/howto
-%{_datadir}/manual/howto/cgi.html.html
-%{_datadir}/manual/howto/cgi.html.en
-%lang(ja) %{_datadir}/manual/howto/cgi.html.ja.jis
-%{_datadir}/manual/howto/footer.html
-%{_datadir}/manual/howto/header.html
-%{_datadir}/manual/howto/htaccess.html
-%{_datadir}/manual/howto/ssi.html.html
-%{_datadir}/manual/howto/ssi.html.en
-%lang(ja) %{_datadir}/manual/howto/ssi.html.ja.jis
-%dir %{_datadir}/manual/mod
-%{_datadir}/manual/mod/core.html.html
-%{_datadir}/manual/mod/core.html.en
-%lang(fr) %{_datadir}/manual/mod/core.html.fr
-%lang(ja) %{_datadir}/manual/mod/core.html.ja.jis
-%{_datadir}/manual/mod/directive-dict.html.html
-%{_datadir}/manual/mod/directive-dict.html.en
-%lang(fr) %{_datadir}/manual/mod/directive-dict.html.fr
-%lang(ja) %{_datadir}/manual/mod/directive-dict.html.ja.jis
-%{_datadir}/manual/mod/directives.html.html
-%lang(de) %{_datadir}/manual/mod/directives.html.de
-%{_datadir}/manual/mod/directives.html.en
-%lang(fr) %{_datadir}/manual/mod/directives.html.fr
-%lang(ja) %{_datadir}/manual/mod/directives.html.ja.jis
-%{_datadir}/manual/mod/footer.html
-%{_datadir}/manual/mod/header.html
-%{_datadir}/manual/mod/index-bytype.html.html
-%{_datadir}/manual/mod/index-bytype.html.en
-%lang(fr) %{_datadir}/manual/mod/index-bytype.html.fr
-%lang(ja) %{_datadir}/manual/mod/index-bytype.html.ja.jis
-%{_datadir}/manual/mod/index.html.html
-%{_datadir}/manual/mod/index.html.en
-%lang(fr) %{_datadir}/manual/mod/index.html.fr
-%lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
-%{_datadir}/manual/mod/mod_access.html.html
-%{_datadir}/manual/mod/mod_access.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_access.html.ja.jis
-%{_datadir}/manual/mod/mod_alias.html.html
-%{_datadir}/manual/mod/mod_alias.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_alias.html.ja.jis
-%{_datadir}/manual/mod/mod_asis.html.html
-%{_datadir}/manual/mod/mod_asis.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_asis.html.ja.jis
-%{_datadir}/manual/mod/mod_autoindex.html.html
-%{_datadir}/manual/mod/mod_autoindex.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_autoindex.html.ja.jis
-%{_datadir}/manual/mod/mod_cern_meta.html
-%{_datadir}/manual/mod/mod_cgi.html.html
-%{_datadir}/manual/mod/mod_cgi.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_cgi.html.ja.jis
-%{_datadir}/manual/mod/mod_env.html.html
-%{_datadir}/manual/mod/mod_env.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_env.html.ja.jis
-%{_datadir}/manual/mod/mod_include.html
-%{_datadir}/manual/mod/mod_log_agent.html
-%{_datadir}/manual/mod/mod_log_config.html.html
-%{_datadir}/manual/mod/mod_log_config.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_log_config.html.ja.jis
-%{_datadir}/manual/mod/mod_log_referer.html
-%{_datadir}/manual/mod/mod_mime.html.html
-%{_datadir}/manual/mod/mod_mime.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_mime.html.ja.jis
-%{_datadir}/manual/mod/mod_mime_magic.html
-%{_datadir}/manual/mod/mod_negotiation.html.html
-%{_datadir}/manual/mod/mod_negotiation.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_negotiation.html.ja.jis
-%{_datadir}/manual/mod/mod_setenvif.html.html
-%{_datadir}/manual/mod/mod_setenvif.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_setenvif.html.ja.jis
-%{_datadir}/manual/mod/mod_so.html.html
-%{_datadir}/manual/mod/mod_so.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_so.html.ja.jis
-%{_datadir}/manual/mod/mod_speling.html.html
-%{_datadir}/manual/mod/mod_speling.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_speling.html.ja.jis
-%{_datadir}/manual/mod/mod_userdir.html.html
-%{_datadir}/manual/mod/mod_userdir.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_userdir.html.ja.jis
-%{_datadir}/manual/mod/module-dict.html.html
-%{_datadir}/manual/mod/module-dict.html.en
-%lang(ja) %{_datadir}/manual/mod/module-dict.html.ja.jis
-%dir %{_datadir}/manual/programs
-%{_datadir}/manual/programs/ab.html
-%{_datadir}/manual/programs/apachectl.html.html
-%{_datadir}/manual/programs/apachectl.html.en
-%lang(ja) %{_datadir}/manual/programs/apachectl.html.ja.jis
-%{_datadir}/manual/programs/apxs.html
-%{_datadir}/manual/programs/dbmmanage.html
-%{_datadir}/manual/programs/footer.html
-%{_datadir}/manual/programs/header.html
-%{_datadir}/manual/programs/htdigest.html
-%{_datadir}/manual/programs/htpasswd.html.html
-%{_datadir}/manual/programs/htpasswd.html.en
-%lang(ja) %{_datadir}/manual/programs/htpasswd.html.ja.jis
-%{_datadir}/manual/programs/httpd.html.html
-%{_datadir}/manual/programs/httpd.html.en
-%lang(ja) %{_datadir}/manual/programs/httpd.html.ja.jis
-%{_datadir}/manual/programs/index.html.html
-%{_datadir}/manual/programs/index.html.en
-%lang(ja) %{_datadir}/manual/programs/index.html.ja.jis
-%{_datadir}/manual/programs/logresolve.html
-%{_datadir}/manual/programs/other.html
-%{_datadir}/manual/programs/rotatelogs.html
-%dir %{_datadir}/manual/vhosts
-%{_datadir}/manual/vhosts/details.html
-%{_datadir}/manual/vhosts/examples.html
-%{_datadir}/manual/vhosts/fd-limits.html.html
-%{_datadir}/manual/vhosts/fd-limits.html.en
-%lang(ja) %{_datadir}/manual/vhosts/fd-limits.html.ja.jis
-%{_datadir}/manual/vhosts/footer.html
-%{_datadir}/manual/vhosts/header.html
-%{_datadir}/manual/vhosts/host.html
-%{_datadir}/manual/vhosts/index.html.html
-%{_datadir}/manual/vhosts/index.html.en
-%lang(ja) %{_datadir}/manual/vhosts/index.html.ja.jis
-%{_datadir}/manual/vhosts/ip-based.html
-%{_datadir}/manual/vhosts/mass.html
-%{_datadir}/manual/vhosts/name-based.html.html
-%{_datadir}/manual/vhosts/name-based.html.en
-%lang(ja) %{_datadir}/manual/vhosts/name-based.html.ja.jis
-%{_datadir}/manual/vhosts/vhosts-in-depth.html
-%{_datadir}/manual/vhosts/virtual-host.html
-
%attr(755,root,root) %dir %{_datadir}/html
%{_datadir}/errordocs
%{_datadir}/icons/small/*.gif
%{_datadir}/icons/small/*.png
%attr(755,root,root) %{_datadir}/cgi-bin
-%dir %{webappsdir}
%files apxs
%defattr(644,root,root,755)
%attr(755,root,root) %{apxs}
-%{_mandir}/man8/apxs1*
+%{_mandir}/man8/apxs1.8*
%files tools
%defattr(644,root,root,755)
%lang(es) %{_datadir}/html/index.html.es
%lang(fr) %{_datadir}/html/index.html.fr
%lang(he) %{_datadir}/html/index.html.he.iso8859-8
+%lang(hu) %{_datadir}/html/index.html.hu
%lang(it) %{_datadir}/html/index.html.it
%lang(ja) %{_datadir}/html/index.html.ja.jis
%lang(ko) %{_datadir}/html/index.html.kr.iso-kr
%lang(zh_TW) %{_datadir}/html/index.html.zh-tw.big5
%{_datadir}/html/*.gif
+%files doc
+%defattr(644,root,root,755)
+%dir %{manualdir}
+%dir %{manualdir}/images
+%{manualdir}/images/apache_header.gif
+%{manualdir}/images/custom_errordocs.gif
+%{manualdir}/images/home.gif
+%{manualdir}/images/index.gif
+%{manualdir}/images/pixel.gif
+%{manualdir}/images/sub.gif
+%{manualdir}/misc
+%{manualdir}/LICENSE
+%{manualdir}/bind.html.html
+%{manualdir}/bind.html.en
+%lang(fr) %{manualdir}/bind.html.fr
+%lang(ja) %{manualdir}/bind.html.ja.jis
+%{manualdir}/configuring.html.html
+%{manualdir}/configuring.html.en
+%lang(fr) %{manualdir}/configuring.html.fr
+%lang(ja) %{manualdir}/configuring.html.ja.jis
+%{manualdir}/content-negotiation.html.html
+%{manualdir}/content-negotiation.html.en
+%lang(ja) %{manualdir}/content-negotiation.html.ja.jis
+%{manualdir}/custom-error.html.html
+%{manualdir}/custom-error.html.en
+%lang(fr) %{manualdir}/custom-error.html.fr
+%lang(ja) %{manualdir}/custom-error.html.ja.jis
+%{manualdir}/dns-caveats.html.html
+%{manualdir}/dns-caveats.html.en
+%lang(fr) %{manualdir}/dns-caveats.html.fr
+%lang(ja) %{manualdir}/dns-caveats.html.ja.jis
+%{manualdir}/dso.html
+%{manualdir}/env.html.html
+%{manualdir}/env.html.en
+%lang(ja) %{manualdir}/env.html.ja.jis
+%{manualdir}/footer.html
+%{manualdir}/handler.html.html
+%{manualdir}/handler.html.en
+%lang(ja) %{manualdir}/handler.html.ja.jis
+%{manualdir}/header.html
+%{manualdir}/index.html.html
+%{manualdir}/index.html.en
+%lang(fr) %{manualdir}/index.html.fr
+%lang(ja) %{manualdir}/index.html.ja.jis
+%{manualdir}/install.html.html
+%{manualdir}/install.html.en
+%lang(es) %{manualdir}/install.html.es
+%lang(fr) %{manualdir}/install.html.fr
+%lang(ja) %{manualdir}/install.html.ja.jis
+%{manualdir}/invoking.html.html
+%{manualdir}/invoking.html.en
+%lang(fr) %{manualdir}/invoking.html.fr
+%lang(ja) %{manualdir}/invoking.html.ja.jis
+%{manualdir}/keepalive.html.html
+%{manualdir}/keepalive.html.en
+%lang(ja) %{manualdir}/keepalive.html.ja.jis
+%{manualdir}/location.html.html
+%{manualdir}/location.html.en
+%lang(ja) %{manualdir}/location.html.ja.jis
+%{manualdir}/logs.html
+%{manualdir}/multilogs.html
+%{manualdir}/new_features_1_3.html.html
+%{manualdir}/new_features_1_3.html.en
+%lang(ja) %{manualdir}/new_features_1_3.html.ja.jis
+%{manualdir}/process-model.html.html
+%{manualdir}/process-model.html.en
+%lang(ja) %{manualdir}/process-model.html.ja.jis
+%{manualdir}/sections.html.html
+%{manualdir}/sections.html.en
+%lang(ja) %{manualdir}/sections.html.ja.jis
+%{manualdir}/server-wide.html.html
+%{manualdir}/server-wide.html.en
+%lang(fr) %{manualdir}/server-wide.html.fr
+%lang(ja) %{manualdir}/server-wide.html.ja.jis
+%{manualdir}/sitemap.html
+%{manualdir}/sourcereorg.html
+%{manualdir}/stopping.html.html
+%{manualdir}/stopping.html.en
+%lang(fr) %{manualdir}/stopping.html.fr
+%{manualdir}/upgrading_to_1_3.html
+%{manualdir}/urlmapping.html
+%dir %{manualdir}/howto
+%{manualdir}/howto/cgi.html.html
+%{manualdir}/howto/cgi.html.en
+%lang(ja) %{manualdir}/howto/cgi.html.ja.jis
+%{manualdir}/howto/footer.html
+%{manualdir}/howto/header.html
+%{manualdir}/howto/htaccess.html
+%{manualdir}/howto/ssi.html.html
+%{manualdir}/howto/ssi.html.en
+%lang(ja) %{manualdir}/howto/ssi.html.ja.jis
+%dir %{manualdir}/mod
+%{manualdir}/mod/core.html.html
+%{manualdir}/mod/core.html.en
+%lang(fr) %{manualdir}/mod/core.html.fr
+%lang(ja) %{manualdir}/mod/core.html.ja.jis
+%{manualdir}/mod/directive-dict.html.html
+%{manualdir}/mod/directive-dict.html.en
+%lang(fr) %{manualdir}/mod/directive-dict.html.fr
+%lang(ja) %{manualdir}/mod/directive-dict.html.ja.jis
+%{manualdir}/mod/directives.html.html
+%lang(de) %{manualdir}/mod/directives.html.de
+%{manualdir}/mod/directives.html.en
+%lang(fr) %{manualdir}/mod/directives.html.fr
+%lang(ja) %{manualdir}/mod/directives.html.ja.jis
+%{manualdir}/mod/footer.html
+%{manualdir}/mod/header.html
+%{manualdir}/mod/index-bytype.html.html
+%{manualdir}/mod/index-bytype.html.en
+%lang(fr) %{manualdir}/mod/index-bytype.html.fr
+%lang(ja) %{manualdir}/mod/index-bytype.html.ja.jis
+%{manualdir}/mod/index.html.html
+%{manualdir}/mod/index.html.en
+%lang(fr) %{manualdir}/mod/index.html.fr
+%lang(ja) %{manualdir}/mod/index.html.ja.jis
+%{manualdir}/mod/mod_access.html.html
+%{manualdir}/mod/mod_access.html.en
+%lang(ja) %{manualdir}/mod/mod_access.html.ja.jis
+%{manualdir}/mod/mod_alias.html.html
+%{manualdir}/mod/mod_alias.html.en
+%lang(ja) %{manualdir}/mod/mod_alias.html.ja.jis
+%{manualdir}/mod/mod_asis.html.html
+%{manualdir}/mod/mod_asis.html.en
+%lang(ja) %{manualdir}/mod/mod_asis.html.ja.jis
+%{manualdir}/mod/mod_autoindex.html.html
+%{manualdir}/mod/mod_autoindex.html.en
+%lang(ja) %{manualdir}/mod/mod_autoindex.html.ja.jis
+%{manualdir}/mod/mod_cern_meta.html
+%{manualdir}/mod/mod_cgi.html.html
+%{manualdir}/mod/mod_cgi.html.en
+%lang(ja) %{manualdir}/mod/mod_cgi.html.ja.jis
+%{manualdir}/mod/mod_env.html.html
+%{manualdir}/mod/mod_env.html.en
+%lang(ja) %{manualdir}/mod/mod_env.html.ja.jis
+%{manualdir}/mod/mod_include.html
+%{manualdir}/mod/mod_log_agent.html
+%{manualdir}/mod/mod_log_config.html.html
+%{manualdir}/mod/mod_log_config.html.en
+%lang(ja) %{manualdir}/mod/mod_log_config.html.ja.jis
+%{manualdir}/mod/mod_log_referer.html
+%{manualdir}/mod/mod_mime.html.html
+%{manualdir}/mod/mod_mime.html.en
+%lang(ja) %{manualdir}/mod/mod_mime.html.ja.jis
+%{manualdir}/mod/mod_mime_magic.html
+%{manualdir}/mod/mod_negotiation.html.html
+%{manualdir}/mod/mod_negotiation.html.en
+%lang(ja) %{manualdir}/mod/mod_negotiation.html.ja.jis
+%{manualdir}/mod/mod_setenvif.html.html
+%{manualdir}/mod/mod_setenvif.html.en
+%lang(ja) %{manualdir}/mod/mod_setenvif.html.ja.jis
+%{manualdir}/mod/mod_so.html.html
+%{manualdir}/mod/mod_so.html.en
+%lang(ja) %{manualdir}/mod/mod_so.html.ja.jis
+%{manualdir}/mod/mod_speling.html.html
+%{manualdir}/mod/mod_speling.html.en
+%lang(ja) %{manualdir}/mod/mod_speling.html.ja.jis
+%{manualdir}/mod/mod_userdir.html.html
+%{manualdir}/mod/mod_userdir.html.en
+%lang(ja) %{manualdir}/mod/mod_userdir.html.ja.jis
+%{manualdir}/mod/module-dict.html.html
+%{manualdir}/mod/module-dict.html.en
+%lang(ja) %{manualdir}/mod/module-dict.html.ja.jis
+%dir %{manualdir}/programs
+%{manualdir}/programs/ab.html
+%{manualdir}/programs/apachectl.html.html
+%{manualdir}/programs/apachectl.html.en
+%lang(ja) %{manualdir}/programs/apachectl.html.ja.jis
+%{manualdir}/programs/apxs.html
+%{manualdir}/programs/dbmmanage.html
+%{manualdir}/programs/footer.html
+%{manualdir}/programs/header.html
+%{manualdir}/programs/htdigest.html
+%{manualdir}/programs/htpasswd.html.html
+%{manualdir}/programs/htpasswd.html.en
+%lang(ja) %{manualdir}/programs/htpasswd.html.ja.jis
+%{manualdir}/programs/httpd.html.html
+%{manualdir}/programs/httpd.html.en
+%lang(ja) %{manualdir}/programs/httpd.html.ja.jis
+%{manualdir}/programs/index.html.html
+%{manualdir}/programs/index.html.en
+%lang(ja) %{manualdir}/programs/index.html.ja.jis
+%{manualdir}/programs/logresolve.html
+%{manualdir}/programs/other.html
+%{manualdir}/programs/rotatelogs.html
+%dir %{manualdir}/vhosts
+%{manualdir}/vhosts/details.html
+%{manualdir}/vhosts/examples.html
+%{manualdir}/vhosts/fd-limits.html.html
+%{manualdir}/vhosts/fd-limits.html.en
+%lang(ja) %{manualdir}/vhosts/fd-limits.html.ja.jis
+%{manualdir}/vhosts/footer.html
+%{manualdir}/vhosts/header.html
+%{manualdir}/vhosts/host.html
+%{manualdir}/vhosts/index.html.html
+%{manualdir}/vhosts/index.html.en
+%lang(ja) %{manualdir}/vhosts/index.html.ja.jis
+%{manualdir}/vhosts/ip-based.html
+%{manualdir}/vhosts/mass.html
+%{manualdir}/vhosts/name-based.html.html
+%{manualdir}/vhosts/name-based.html.en
+%lang(ja) %{manualdir}/vhosts/name-based.html.ja.jis
+%{manualdir}/vhosts/vhosts-in-depth.html
+%{manualdir}/vhosts/virtual-host.html
+# suexec
+%{manualdir}/suexec.html.html
+%{manualdir}/suexec.html.en
+%lang(ja) %{manualdir}/suexec.html.ja.jis
+%{manualdir}/programs/suexec.html.html
+%{manualdir}/programs/suexec.html.en
+%lang(ja) %{manualdir}/programs/suexec.html.ja.jis
+# mod_actions
+%{manualdir}/mod/mod_actions.html.html
+%{manualdir}/mod/mod_actions.html.en
+%lang(ja) %{manualdir}/mod/mod_actions.html.ja.jis
+# mod_auth
+%{manualdir}/howto/auth.html
+%{manualdir}/mod/mod_auth.html.html
+%{manualdir}/mod/mod_auth.html.en
+%lang(ja) %{manualdir}/mod/mod_auth.html.ja.jis
+# mod_anon
+%{manualdir}/mod/mod_auth_anon.html
+# mod_auth_db
+%{manualdir}/mod/mod_auth_db.html
+# mod_auth_digest
+%{manualdir}/mod/mod_auth_digest.html
+# mod_define
+%{manualdir}/mod/mod_define.html
+# mod_digest
+%{manualdir}/mod/mod_digest.html
+# mod_dir
+%{manualdir}/mod/mod_dir.html.html
+%{manualdir}/mod/mod_dir.html.en
+%lang(ja) %{manualdir}/mod/mod_dir.html.ja.jis
+# mod_expires
+%{manualdir}/mod/mod_expires.html
+# mod_headers
+%{manualdir}/mod/mod_headers.html
+# mod_imap
+%{manualdir}/mod/mod_imap.html
+# mod_info
+%{manualdir}/mod/mod_info.html.html
+%{manualdir}/mod/mod_info.html.en
+%lang(ja) %{manualdir}/mod/mod_info.html.ja.jis
+# mod_log_forensic
+%{manualdir}/mod/mod_log_forensic.html.html
+%{manualdir}/mod/mod_log_forensic.html.en
+# mod_mmap_static
+%{manualdir}/mod/mod_mmap_static.html
+# mod_proxy
+%{manualdir}/mod/mod_proxy.html
+# mod_rewrite
+%{manualdir}/mod/mod_rewrite.html.html
+%{manualdir}/mod/mod_rewrite.html.en
+%lang(ja) %{manualdir}/mod/mod_rewrite.html.ja.jis
+%{manualdir}/images/mod_rewrite*
+# mod_status
+%{manualdir}/mod/mod_status.html
+# mod_unique_id
+%{manualdir}/mod/mod_unique_id.html.html
+%{manualdir}/mod/mod_unique_id.html.en
+%lang(ja) %{manualdir}/mod/mod_unique_id.html.ja.jis
+# mod_usertrack
+%{manualdir}/mod/mod_cookies.html
+%{manualdir}/mod/mod_usertrack.html
+# mod_vhost_alias
+%{manualdir}/mod/mod_vhost_alias.html
+
%files suexec
%defattr(644,root,root,755)
%attr(4755,root,root) %{_sbindir}/suexec
-%{_datadir}/manual/suexec.html.html
-%{_datadir}/manual/suexec.html.en
-%lang(ja) %{_datadir}/manual/suexec.html.ja.jis
-%{_datadir}/manual/programs/suexec.html.html
-%{_datadir}/manual/programs/suexec.html.en
-%lang(ja) %{_datadir}/manual/programs/suexec.html.ja.jis
%files devel
%defattr(644,root,root,755)
%files mod_actions
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_actions.conf
%attr(755,root,root) %{_libexecdir}/mod_actions.so
-%{_datadir}/manual/mod/mod_actions.html.html
-%{_datadir}/manual/mod/mod_actions.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_actions.html.ja.jis
%files mod_auth
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth.conf
%attr(755,root,root) %{_libexecdir}/mod_auth.so
+# FIXME apache2 puts in sbin
%attr(755,root,root) %{_bindir}/htpasswd
-%{_datadir}/manual/howto/auth.html
-%{_datadir}/manual/mod/mod_auth.html.html
-%{_datadir}/manual/mod/mod_auth.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_auth.html.ja.jis
+%{_mandir}/man1/htpasswd.1*
%files mod_auth_anon
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth_anon.conf
%attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
-%{_datadir}/manual/mod/mod_auth_anon.html
%files mod_auth_db
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth_db.conf
%attr(755,root,root) %{_libexecdir}/mod_auth_db.so
%attr(755,root,root) %{_bindir}/dbmmanage
-%{_datadir}/manual/mod/mod_auth_db.html
%{_mandir}/man1/dbmmanage.1*
-%{_mandir}/man1/htpasswd.1*
%files mod_auth_digest
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_auth_digest.conf
%attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
-%{_datadir}/manual/mod/mod_auth_digest.html
+
+%files mod_autoindex
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_autoindex.conf
+%attr(755,root,root) %{_libexecdir}/mod_autoindex.so
%files mod_define
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_define.conf
%attr(755,root,root) %{_libexecdir}/mod_define.so
-%{_datadir}/manual/mod/mod_define.html
%files mod_digest
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_digest.conf
%attr(755,root,root) %{_libexecdir}/mod_digest.so
-%{_datadir}/manual/mod/mod_digest.html
%files mod_dir
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_dir.conf
%attr(755,root,root) %{_libexecdir}/mod_dir.so
-%{_datadir}/manual/mod/mod_dir.html.html
-%{_datadir}/manual/mod/mod_dir.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_dir.html.ja.jis
%files mod_expires
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_expires.conf
%attr(755,root,root) %{_libexecdir}/mod_expires.so
-%{_datadir}/manual/mod/mod_expires.html
%files mod_headers
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_headers.conf
%attr(755,root,root) %{_libexecdir}/mod_headers.so
-%{_datadir}/manual/mod/mod_headers.html
%files mod_imap
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_imap.conf
%attr(755,root,root) %{_libexecdir}/mod_imap.so
-%{_datadir}/manual/mod/mod_imap.html
%files mod_info
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_info.conf
%attr(755,root,root) %{_libexecdir}/mod_info.so
-%{_datadir}/manual/mod/mod_info.html.html
-%{_datadir}/manual/mod/mod_info.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_info.html.ja.jis
%files mod_log_forensic
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_log_forensic.conf
%attr(755,root,root) %{_libexecdir}/mod_log_forensic.so
-%{_datadir}/manual/mod/mod_log_forensic.html.html
-%{_datadir}/manual/mod/mod_log_forensic.html.en
%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
-%{_datadir}/manual/mod/mod_mmap_static.html
%files mod_proxy
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_proxy.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_proxy.conf
%attr(755,root,root) %{_libexecdir}/libproxy.so
-%{_datadir}/manual/mod/mod_proxy.html
%dir %attr(770,root,http) /var/cache/apache
%files mod_rewrite
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_rewrite.conf
%attr(755,root,root) %{_libexecdir}/mod_rewrite.so
-%{_datadir}/manual/mod/mod_rewrite.html.html
-%{_datadir}/manual/mod/mod_rewrite.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_rewrite.html.ja.jis
-%{_datadir}/manual/images/mod_rewrite*
%files mod_status
%defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_status.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_status.conf
%attr(755,root,root) %{_libexecdir}/mod_status.so
-%{_datadir}/manual/mod/mod_status.html
%files mod_unique_id
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_unique_id.conf
%attr(755,root,root) %{_libexecdir}/mod_unique_id.so
-%{_datadir}/manual/mod/mod_unique_id.html.html
-%{_datadir}/manual/mod/mod_unique_id.html.en
-%lang(ja) %{_datadir}/manual/mod/mod_unique_id.html.ja.jis
%files mod_usertrack
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_usertrack.conf
%attr(755,root,root) %{_libexecdir}/mod_usertrack.so
-%{_datadir}/manual/mod/mod_cookies.html
-%{_datadir}/manual/mod/mod_usertrack.html
%files mod_vhost_alias
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_vhost_alias.conf
%attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
-%{_datadir}/manual/mod/mod_vhost_alias.html
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf