%define mod_name msff
-%define apxs /usr/sbin/apxs
+%define apxs /usr/sbin/apxs1
Summary: Apache module: Microsoft Free Fridays: reject MSIE on Friday
Summary(pl): Modu³ do apache: Wolne Pi±tki Microsoftu: odrzuca MSIE w pi±tki
-Name: apache-mod_%{mod_name}
+Name: apache1-mod_%{mod_name}
Version: 0.1
Release: 1
License: GPL
# Source0-md5: 28bf69adb4beb41d82f16c2cc2e9d656
URL: http://davenet.userland.com/2001/06/13
BuildRequires: %{apxs}
-BuildRequires: apache(EAPI)-devel
+BuildRequires: apache1-devel
Requires(post,preun): %{apxs}
-Requires: apache(EAPI)
+Requires: apache1
+Obsoletes: apache-mod_%{mod_name} <= %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
-%define _sysconfdir /etc/httpd
+%define _sysconfdir /etc/apache
%description
mod_msff.c: Microsoft Free Fridays: reject MSIE on Friday.
%post
%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
+if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
fi
%preun
if [ "$1" = "0" ]; then
%{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
+ if [ -f /var/lock/subsys/apache ]; then
+ /etc/rc.d/init.d/apache restart 1>&2
fi
fi