Source0: http://www.oav.net/projects/mod_vhs/mod_vhs-%{version}.tar.gz
# Source0-md5: 0ff70c7298e8639a00b2b0c1d90caf99
URL: http://www.oav.net/projects/mod_vhs/
-BuildRequires: apache-devel >= 2.0.0
BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.0
BuildRequires: libhome-devel
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
- fi
+ %service -q httpd restart
fi
%files