1 |
%define apachedir /etc/httpd |
2 |
%define apacheuser www |
3 |
%define apachegroup www |
4 |
%define contentdir /home/httpd |
5 |
|
6 |
Summary: The Dymanic Internet Messaging Program: webmail access to IMAP/POP3 accounts. |
7 |
Name: dimp-h3 |
8 |
Version: 1.0 |
9 |
Release: 1%{?dist} |
10 |
License: GPL |
11 |
Group: Applications/Horde |
12 |
Source: ftp://ftp.horde.org/pub/dimp/tarballs/dimp-h3-%{version}.tar.gz |
13 |
URL: http://www.horde.org/ |
14 |
BuildArchitectures: noarch |
15 |
BuildRoot: /tmp/dimp-root |
16 |
Requires: php >= 4.3.0 |
17 |
Requires: php-imap >= 4.3.0 |
18 |
Requires: httpd >= 2.0.46 |
19 |
Requires: horde >= 3.2 |
20 |
Provides: dimp |
21 |
Prereq: /usr/bin/perl |
22 |
|
23 |
%description |
24 |
DIMP is a alternate presentation view of IMP using AJAX-ish |
25 |
technologies to create a more dynamic user experience |
26 |
(DIMP stands for Dynamic IMP). |
27 |
|
28 |
%prep |
29 |
%setup -q -n %{name}-%{version} |
30 |
|
31 |
%build |
32 |
|
33 |
%install |
34 |
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
35 |
mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf |
36 |
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/dimp |
37 |
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/dimp |
38 |
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/dimp/config |
39 |
for d in *.dist; do |
40 |
d0=`basename $d .dist` |
41 |
if [ ! -f "$d0" ]; then |
42 |
cp -p $d $d0 |
43 |
fi |
44 |
done |
45 |
|
46 |
%clean |
47 |
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%files |
50 |
%defattr(-,root,root) |
51 |
# Include top level with %dir so not all files are sucked in |
52 |
%dir %{contentdir}/html/horde/dimp |
53 |
# Include top-level files by hand |
54 |
%{contentdir}/html/horde/dimp/*.php |
55 |
# Include these dirs so that all files _will_ get sucked in |
56 |
%{contentdir}/html/horde/dimp/js |
57 |
%{contentdir}/html/horde/dimp/lib |
58 |
%{contentdir}/html/horde/dimp/locale |
59 |
%{contentdir}/html/horde/dimp/po |
60 |
#%{contentdir}/html/horde/dimp/scripts |
61 |
%{contentdir}/html/horde/dimp/templates |
62 |
%{contentdir}/html/horde/dimp/themes |
63 |
# Mark documentation files with %doc and %docdir |
64 |
%doc %{contentdir}/html/horde/dimp/COPYING |
65 |
%doc %{contentdir}/html/horde/dimp/README |
66 |
%docdir %{contentdir}/html/horde/dimp/docs |
67 |
%{contentdir}/html/horde/dimp/docs |
68 |
# Mark configuration files with %config and use secure permissions |
69 |
# (note that .dist files are considered software; don't mark %config) |
70 |
%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/dimp/config |
71 |
%defattr(640,root,%{apachegroup}) |
72 |
%{contentdir}/html/horde/dimp/config/.htaccess |
73 |
%{contentdir}/html/horde/dimp/config/*.dist |
74 |
%config %{contentdir}/html/horde/dimp/config/*.php |
75 |
#%config %{contentdir}/html/horde/dimp/config/*.txt |
76 |
%config %{contentdir}/html/horde/dimp/config/*.xml |
77 |
|
78 |
%changelog |
79 |
* Mon Jun 2 2008 John H. Bennett III <bennettj@johnbennettservices.com> 1.0-1 |
80 |
- initial RPM roll for Dimp 1.0 |
81 |
|