1 |
%define name smeserver-mod_dav |
2 |
%define version 0.1 |
3 |
%define release 5 |
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 |
* Fri Feb 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> |
22 |
- 0.1-5 |
23 |
- Removed initialize-default-database from %post macro |
24 |
- Fixed previous changelog entry to have correct version number |
25 |
|
26 |
* Wed Feb 06 2008 Jonathan Martens <smeserver-contribs@snetram.nl> |
27 |
- 0.1-4 |
28 |
- Fixed httpd-e-smith restart command to use sv -t |
29 |
|
30 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
31 |
- Clean up spec so package can be built by koji/plague |
32 |
|
33 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
34 |
- Update to new release naming. No functional changes. |
35 |
- Make Packager generic |
36 |
|
37 |
* Mon May 29 2006 Jonathan Martens <jonathan-contribs@snetram.nl> |
38 |
- 0.1-01 |
39 |
- Original version |
40 |
|
41 |
%prep |
42 |
|
43 |
%setup |
44 |
|
45 |
%build |
46 |
|
47 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/modDAV |
48 |
mkdir -p $DEFAULTS |
49 |
|
50 |
echo "service" > $DEFAULTS/type |
51 |
echo "enabled" > $DEFAULTS/status |
52 |
|
53 |
%install |
54 |
rm -rf %buildroot |
55 |
(cd root ; find . -depth -print | cpio -dump %buildroot) |
56 |
rm -f %{name}-%{version}-filelist |
57 |
/sbin/e-smith/genfilelist %buildroot > %{name}-%{version}-filelist |
58 |
|
59 |
%clean |
60 |
rm -rf %buildroot |
61 |
|
62 |
%post |
63 |
/etc/e-smith/events/actions/navigation-conf |
64 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
65 |
/usr/bin/sv t httpd-e-smith |
66 |
|
67 |
%postun |
68 |
/sbin/e-smith/db configuration delete modDAV |
69 |
/etc/e-smith/events/actions/navigation-conf |
70 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
71 |
/usr/bin/sv t httpd-e-smith |
72 |
|
73 |
%files -f %{name}-%{version}-filelist |
74 |
%defattr(-,root,root) |