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