1 |
# $Id: e-smith-horde.spec,v 1.5 2008/04/09 13:51:47 slords Exp $ |
2 |
|
3 |
Summary: e-smith specific Horde configuration and templates. |
4 |
%define name e-smith-horde |
5 |
Name: %{name} |
6 |
%define version 3.2 |
7 |
%define release 2 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Patch1: horde-3.2.1_upgrade.patch |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildArchitectures: noarch |
16 |
Requires: e-smith-base >= 4.9.44, horde >= 2.0, mysql |
17 |
Requires: e-smith-lib >= 1.15.1-16 |
18 |
Requires: enscript |
19 |
Requires: php-domxml |
20 |
Requires: php-gd |
21 |
Requires: php-mbstring |
22 |
Requires: wv |
23 |
Requires: xlhtml |
24 |
Requires: horde >= 3.2 |
25 |
Requires: php-pear |
26 |
%if "%{?rhel}" == "5" |
27 |
Obsoletes: pear-date |
28 |
Obsoletes: pear-db |
29 |
Obsoletes: pear-file |
30 |
Obsoletes: pear-log |
31 |
Obsoletes: pear-mail |
32 |
Obsoletes: pear-mail_mime |
33 |
Requires: php-pear(Date) |
34 |
Requires: php-pear(File) |
35 |
Requires: php-pear(HTTP) |
36 |
Requires: php-pear(Log) |
37 |
Requires: php-pear(Services_Weather) |
38 |
Requires: php-pecl(Fileinfo) |
39 |
%else |
40 |
Requires: pear-date |
41 |
Requires: pear-db |
42 |
Requires: pear-file |
43 |
Requires: pear-log |
44 |
Requires: pear-mail |
45 |
Requires: pear-mail_mime |
46 |
%endif |
47 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
48 |
AutoReqProv: no |
49 |
Obsoletes: dcb-e-smith-horde |
50 |
Obsoletes: smeserver-horde-menuarray |
51 |
Obsoletes: e-smith-horde <= 2.0 |
52 |
|
53 |
%changelog |
54 |
* Tue Jun 24 2008 John H. Bennett III <bennettj@johnbennettservices.com> 3.2-2 |
55 |
- Upgrade patch for Horde 3.2.1 |
56 |
|
57 |
* Mon Jun 2 2008 John H. Bennett III <bennettj@johnbennettservices.com> 3.2-1 |
58 |
- Initial production build |
59 |
- Jump in package name to reflect new version of horde |
60 |
|
61 |
%description |
62 |
This package adds necessary templates and configuration items |
63 |
so that Horde will work properly on SME Server |
64 |
|
65 |
%prep |
66 |
%setup |
67 |
%patch1 -p1 |
68 |
|
69 |
%build |
70 |
for i in post-install post-upgrade |
71 |
do |
72 |
mkdir -p root/etc/e-smith/events/$i |
73 |
done |
74 |
perl createlinks |
75 |
|
76 |
%install |
77 |
rm -rf $RPM_BUILD_ROOT |
78 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
79 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
80 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
81 |
|
82 |
%clean |
83 |
rm -rf $RPM_BUILD_ROOT |
84 |
|
85 |
%pre |
86 |
%preun |
87 |
%post |
88 |
%postun |
89 |
|
90 |
%files -f %{name}-%{version}-filelist |
91 |
%defattr(-,root,root) |