# TODO
# - add -D_FILE_OFFSET_BITS=64 somewhere to get >2GB logfiles support
+# - 1.3.42 is last formal release, patches _may_ be available in the fugture in
+# http://www.apache.org/dist/httpd/patches/
#
# Conditional build:
%bcond_with rewrite_ldap # enable ldap map support for mod_rewrite (alpha)
%bcond_without ipv6 # disable IPv6 support
%bcond_without lingerd # don't build lingerd support
-#
+
%include /usr/lib/rpm/macros.perl
Summary: The most widely used Web server on the Internet
Summary(cs.UTF-8): Nejrozšířenější WWW server v Internetu
Summary(uk.UTF-8): Найпопулярніший Web-Server
Summary(zh_CN.UTF-8): Internet 上应用最广泛的 Web 服务程序。
Name: apache1
-Version: 1.3.41
-Release: 21
+Version: 1.3.42
+Release: 4
License: Apache v2.0
Group: Networking/Daemons/HTTP
Source0: http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: f7f00b635243f03a787ca9f4d4c85651
+# Source0-md5: b76695ec68f9f8b512c9415fc69c1019
Source1: %{name}.init
Source2: %{name}.logrotate
Source3: %{name}.sysconfig
Patch40: %{name}-security_htpasswd_user_buffer_overflow.patch
Patch41: %{name}-security_check_forensic_tempfiles.patch
Patch42: %{name}-lingerd.patch
+Patch43: %{name}-getline.patch
URL: http://httpd.apache.org/
BuildRequires: bash
BuildRequires: db-devel >= 4.1
%patch39 -p2
%patch40 -p2
%patch41 -p2
-
%if %{with lingerd}
mkdir -p lingerd
cp -a lingerd-*/{README,TUNING,LICENSE,TODO,ChangeLog} lingerd
cp -a lingerd-*/{apache-1.3/ap_lingerd.c,li_config.h} src/main
%patch42 -p1
%endif
+%patch43 -p1
# make manual link with full path
%{__sed} -i -e 's,href="manual/,href="/manual/,i' htdocs/index.html.*
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
- $RPM_BUILD_ROOT%{_sysconfdir}/{webapps.d,conf.d} \
+ $RPM_BUILD_ROOT%{_sysconfdir}/{webapps.d,conf.d,vhosts.d} \
$RPM_BUILD_ROOT%{httpdir}/html \
$RPM_BUILD_ROOT%{_libexecdir} \
$RPM_BUILD_ROOT/var/{log/{apache,archive/apache},run/apache}
%{_sysconfdir}/logs
%attr(750,root,root) %dir %{_sysconfdir}/conf.d
%attr(750,root,root) %dir %{_sysconfdir}/webapps.d
+%attr(750,root,root) %dir %{_sysconfdir}/vhosts.d
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_common.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apache