%define name smeserver-mod_dav %define version 0.1 %define release 5 Summary: SME Server mod_dav implementation Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GPL Group: Applications/Internet Source: %{name}-%{version}-2.tgz BuildArchitectures: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: smeserver-release >= 7 httpd >= 2 BuildRequires: e-smith-devtools >= 1.13.1-03 %description Implementation of mod_dav for SME Server 7. %changelog * Fri Feb 22 2008 Jonathan Martens - 0.1-5 - Removed initialize-default-database from %post macro - Fixed previous changelog entry to have correct version number * Wed Feb 06 2008 Jonathan Martens - 0.1-4 - Fixed httpd-e-smith restart command to use sv -t * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Thu Dec 07 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Mon May 29 2006 Jonathan Martens - 0.1-01 - Original version %prep %setup %build DEFAULTS=root/etc/e-smith/db/configuration/defaults/modDAV mkdir -p $DEFAULTS echo "service" > $DEFAULTS/type echo "enabled" > $DEFAULTS/status %install rm -rf %buildroot (cd root ; find . -depth -print | cpio -dump %buildroot) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist %buildroot > %{name}-%{version}-filelist %clean rm -rf %buildroot %post /etc/e-smith/events/actions/navigation-conf /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /usr/bin/sv t httpd-e-smith %postun /sbin/e-smith/db configuration delete modDAV /etc/e-smith/events/actions/navigation-conf /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /usr/bin/sv t httpd-e-smith %files -f %{name}-%{version}-filelist %defattr(-,root,root)