1 |
# $Id: horde3.spec,v 1.5 2008/06/16 01:37:37 mrjhb3 Exp $ |
2 |
|
3 |
%define apachedir /etc/httpd |
4 |
%define apacheuser www |
5 |
%define apachegroup www |
6 |
%define contentdir /home/httpd |
7 |
%define phpini /etc/php.ini |
8 |
|
9 |
Summary: The common Horde Framework for all Horde modules. |
10 |
Name: horde |
11 |
Version: 3.1.8 |
12 |
Release: 1%{?dist} |
13 |
License: LGPL |
14 |
Group: Applications/Horde |
15 |
Source: ftp://ftp.horde.org/pub/horde/tarballs/horde-%{version}.tar.gz |
16 |
URL: http://www.horde.org/ |
17 |
BuildArchitectures: noarch |
18 |
BuildRoot: /tmp/horde-root |
19 |
AutoReq: no |
20 |
Requires: php >= 4.3.0 |
21 |
Requires: httpd >= 2.0.46 |
22 |
Prereq: /usr/bin/perl |
23 |
|
24 |
%description |
25 |
The Horde Framework provides a common structure and interface for Horde |
26 |
applications (such as IMP, a web-based mail program). This RPM is |
27 |
required for all other Horde module RPMs. |
28 |
|
29 |
The Horde Project writes web applications in PHP and releases them under |
30 |
Open Source licenses. For more information (including help with Horde |
31 |
and its modules) please visit http://www.horde.org/. |
32 |
|
33 |
%prep |
34 |
%setup -q -n %{name}-%{version} |
35 |
|
36 |
%build |
37 |
|
38 |
%install |
39 |
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
40 |
mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf |
41 |
#cp -p $RPM_SOURCE_DIR/horde.conf $RPM_BUILD_ROOT%{apachedir}/conf |
42 |
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde |
43 |
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde |
44 |
chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/test.php |
45 |
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/config |
46 |
mv hooks.php.dist hooks.php.dist1 |
47 |
#rm -rf hooks.php.dist |
48 |
for d in *.dist; do |
49 |
d0=`basename $d .dist` |
50 |
if [ ! -f "$d0" ]; then |
51 |
cp -p $d $d0 |
52 |
fi |
53 |
done |
54 |
mv hooks.php.dist1 hooks.php.dist |
55 |
|
56 |
%clean |
57 |
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
58 |
|
59 |
%post |
60 |
|
61 |
%postun |
62 |
|
63 |
%files |
64 |
%defattr(-,root,root) |
65 |
# Apache horde.conf file |
66 |
#%config %{apachedir}/conf/horde.conf |
67 |
# Include top level with %dir so not all files are sucked in |
68 |
%dir %{contentdir}/html/horde |
69 |
# Include top-level files by hand |
70 |
%{contentdir}/html/horde/*.php |
71 |
# Include these dirs so that all files _will_ get sucked in |
72 |
%{contentdir}/html/horde/admin |
73 |
%{contentdir}/html/horde/js |
74 |
%{contentdir}/html/horde/lib |
75 |
%{contentdir}/html/horde/locale |
76 |
%{contentdir}/html/horde/po |
77 |
%{contentdir}/html/horde/scripts |
78 |
%{contentdir}/html/horde/services |
79 |
%{contentdir}/html/horde/templates |
80 |
%{contentdir}/html/horde/themes |
81 |
%{contentdir}/html/horde/util |
82 |
# Mark documentation files with %doc and %docdir |
83 |
%doc %{contentdir}/html/horde/COPYING |
84 |
%doc %{contentdir}/html/horde/README |
85 |
%docdir %{contentdir}/html/horde/docs |
86 |
%{contentdir}/html/horde/docs |
87 |
# Mark configuration files with %config and use secure permissions |
88 |
# (note that .dist files are considered software; don't mark %config) |
89 |
%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/config |
90 |
%defattr(640,root,%{apachegroup}) |
91 |
%{contentdir}/html/horde/config/.htaccess |
92 |
%{contentdir}/html/horde/config/*.dist |
93 |
%config %{contentdir}/html/horde/config/*.php |
94 |
%config %{contentdir}/html/horde/config/*.xml |
95 |
|
96 |
%changelog |
97 |
* Sun Jun 15 2008 John H. Bennett III <bennettj@johnbennettservices.com> 3.1.8-1 |
98 |
- Update to horde 3.1.8 [SME: 4408] |
99 |
|
100 |
* Tue Mar 25 2008 Shad L. Lords <slords@mail.com> 3.1.7-1 |
101 |
- Update to horde 3.1.7 [SME: 4092] |
102 |
|
103 |
* Tue Nov 13 2007 John H. Bennett III <bennettj@johnbennettservices.com> 3.1.5-1 |
104 |
- Update to horde 3.1.5 [SME: 3568] |
105 |
|
106 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
107 |
- Clean up spec so package can be built by koji/plague |
108 |
|
109 |
* Sat Mar 24 2007 John H. Bennett III <bennettj@johnbennettservices.com> 3.1.4-1.el4 |
110 |
- Update to horde 3.1.4 [SME: 2782] |
111 |
|
112 |
* Sat Dec 09 2006 Shad L. Lords <slords@mail.com> |
113 |
- Update to new release naming. No functional changes. |
114 |
- Make Packager generic |
115 |
|
116 |
* Sat Sep 9 2006 John H. Bennett III <bennettj@johnbennettservices.com> 3.1.3-00sme01 |
117 |
- Updated to Horde 3.1.3 |
118 |
|
119 |
* Mon Aug 28 2006 John H. Bennett III <bennettj@johnbennettservices.com> 3.0.12-01sme01 |
120 |
- Updated to Horde 3.0.12 |
121 |
|
122 |
* Thu Jul 06 2006 John H. Bennett III <bennettj@johnbennettservices.com> 3.0.11-01sme01 |
123 |
- Patch to upgrade Horde 3.0.10 to 3.0.11 maintaing the go.php patch |
124 |
- http://lists.horde.org/archives/announce/2006/000287.html [SME: 1710] |
125 |
|
126 |
* Fri Apr 7 2006 Gordon Rowell <gordonr@gormand.com.au> 3.0.10-01sme01 |
127 |
- Rename to 3.0.10, maintaining the go.php patch [SME: 1157] |
128 |
|
129 |
* Wed Apr 05 2006 John H. Bennett III <bennettj@johnbennettservices.com> 3.0.9-02sme02 |
130 |
- Patch to upgrade Horde 3.0.9 to 3.0.10 [SME: 1157] |
131 |
|
132 |
* Thu Mar 16 2006 Charlie Brady <charlie_brady@mitel.com> 3.0.9-02sme01 |
133 |
- Include go.php from php 3.1 - security patch to fix |
134 |
http://www.securityfocus.com/bid/17117/info [SME: 1061] |
135 |
- Replace deprecated Copyright: header with License: header. |
136 |
|
137 |
* Sun Mar 5 2006 Gordon Rowell <gordonr@gormand.com.au> 3.0.9-01sme02 |
138 |
- Rebuild and sign [SME: 940] |
139 |
|
140 |
* Thu Feb 16 2006 John H. Bennett III <bennettj@thebennetthome.com> 3.0.9-01sme01 |
141 |
- Updated to Horde 3.09 |
142 |
|
143 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 3.0.7-02sme01 |
144 |
- Adjust Release tag to our standard format [SME: 70] |
145 |
|
146 |
* Tue Nov 22 2005 Greg Swallow |
147 |
- Updated to Horde 3.0.7 |
148 |
|
149 |
* Wed Nov 09 2005 Greg Swallow |
150 |
- Updated to Horde 3.0.6 |
151 |
|
152 |
* Thu Aug 25 2005 Greg Swallow |
153 |
- Updated to Horde 3.0.5 |
154 |
|
155 |
* Thu Mar 31 2005 Greg Swallow <gregswallow@skynetonline.ca> |
156 |
- 3.0.4-1sme01 |
157 |
- Update for Horde 3.0.4 on SME7 |
158 |
|
159 |
* Tue Aug 10 2004 Shad L. Lords <slords@mail.com> |
160 |
- 2.2.1-2sme01 |
161 |
- Update specfile - change apache to httpd in requires |
162 |
|
163 |
* Wed Apr 23 2003 Gordon Rowell <gordon_rowell@mitel.com> |
164 |
- 2.2.1-1es00 |
165 |
- Rebuild [gordonr 7694] |
166 |
|
167 |
* Tue Feb 25 2003 Dan Brown <dan@familybrown.org> |
168 |
- 2.2.1-1es |
169 |
- Rebuilt with horde 2.2.1 |
170 |
|
171 |
* Mon Jul 1 2002 Dan Brown <dan@familybrown.org> |
172 |
- 2.1 release 1es |
173 |
- changed apache user and web root to comply with SME Server |
174 |
- removed horde.conf file, as this information is in e-smith-horde RPM |
175 |
|
176 |
* Tue Jun 25 2002 Brent J. Nordquist <bjn@horde.org> |
177 |
- 2.1 release 3 |
178 |
|
179 |
* Mon Jun 24 2002 Brent J. Nordquist <bjn@horde.org> |
180 |
- 2.1 release 2 (private beta) |
181 |
|
182 |
* Thu Jun 13 2002 Brent J. Nordquist <bjn@horde.org> |
183 |
- 2.1 release 1 (private beta) |
184 |
|
185 |
* Wed Jan 02 2002 Brent J. Nordquist <bjn@horde.org> |
186 |
- 2.0 release 1 |
187 |
|
188 |
* Mon Dec 24 2001 Brent J. Nordquist <bjn@horde.org> |
189 |
- 2.0-RC4 release 1 |
190 |
|
191 |
* Sat Dec 15 2001 Brent J. Nordquist <bjn@horde.org> |
192 |
- rewritten for Horde 2.0 |
193 |
|
194 |
* Wed Nov 14 2001 Brent J. Nordquist <bjn@horde.org> |
195 |
- 1.2.7 release 1rh7 |
196 |
|
197 |
* Sat Jul 21 2001 Brent J. Nordquist <bjn@horde.org> |
198 |
- 1.2.6 release 1rh7 |
199 |
|
200 |
* Tue Feb 06 2001 Brent J. Nordquist <bjn@horde.org> |
201 |
- 1.2.4 release 1rh7 |
202 |
|