1 |
%define name smeserver-mod_dav |
2 |
%define version 0.1 |
3 |
%define release 2 |
4 |
|
5 |
Summary: SME Server mod_dav implementation |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
License: GPL |
10 |
Group: Applications/Internet |
11 |
Source: %{name}-%{version}-2.tgz |
12 |
BuildArchitectures: noarch |
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
14 |
Requires: smeserver-release >= 7 httpd >= 2 |
15 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
16 |
|
17 |
%description |
18 |
Implementation of mod_dav for SME Server 7. |
19 |
|
20 |
%changelog |
21 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
22 |
- Clean up spec so package can be built by koji/plague |
23 |
|
24 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
25 |
- Update to new release naming. No functional changes. |
26 |
- Make Packager generic |
27 |
|
28 |
* Mon May 29 2006 Jonathan Martens <jonathan-contribs@snetram.nl> |
29 |
- 0.1-01 |
30 |
- Original version |
31 |
|
32 |
%prep |
33 |
|
34 |
%setup |
35 |
|
36 |
%build |
37 |
|
38 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/modDAV |
39 |
mkdir -p $DEFAULTS |
40 |
|
41 |
echo "service" > $DEFAULTS/type |
42 |
echo "enabled" > $DEFAULTS/status |
43 |
|
44 |
%install |
45 |
rm -rf %buildroot |
46 |
(cd root ; find . -depth -print | cpio -dump %buildroot) |
47 |
rm -f %{name}-%{version}-filelist |
48 |
/sbin/e-smith/genfilelist %buildroot > %{name}-%{version}-filelist |
49 |
|
50 |
%clean |
51 |
rm -rf %buildroot |
52 |
|
53 |
%post |
54 |
/etc/e-smith/events/actions/initialize-default-databases |
55 |
/etc/e-smith/events/actions/navigation-conf |
56 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
57 |
/etc/rc7.d/S86httpd-e-smith sigusr1 |
58 |
|
59 |
%postun |
60 |
/sbin/e-smith/db configuration delete modDAV |
61 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
62 |
/etc/e-smith/events/actions/navigation-conf |
63 |
/etc/rc7.d/S86httpd-e-smith sigusr1 |
64 |
|
65 |
%files -f %{name}-%{version}-filelist |
66 |
%defattr(-,root,root) |