squirrelmail/squirrelmail.spec

changeset 157
3214ed6c04f6
child 159
5524672ebbe7
equal deleted inserted replaced
-1:000000000000 0:0860b93eaddc
1 ##
2 ## squirrelmail.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
23
24 # package version
25 %define V_squirrelmail 1.4.17
26 %define V_locale 1.4.13-20071220
27 %define V_plugin_compat 2.0.9-1.0
28 %define V_plugin_logger 1.4.0-1.0.6
29 %define V_plugin_addgraphics 2.3-1.0.3
30 %define V_plugin_avelsieve 1.9.7
31 %define V_plugin_saslpwd 1.4.1-1.4
32 %define V_plugin_checkquota 2.2-1.4.0
33 %define V_plugin_foldersize 1.5-1.4.0
34 %define V_plugin_gnupg 2.0.1-1.4.2
35 %define V_plugin_ldif 1.4-1.2.x
36 %define V_plugin_update 0.7-1.4.2
37 %define V_plugin_userip 3.3-re-1.2.2
38 %define V_plugin_smallcal 0.8-1.2.3
39 %define V_plugin_vkeyboard 0.9
40 %define V_plugin_username 2.3-1.0.0
41
42 # package information
43 Name: squirrelmail
44 Summary: SquirrelMail Webmail Client
45 URL: http://www.squirrelmail.org/
46 Vendor: Squirrelmail Developers
47 Packager: OpenPKG Foundation e.V.
48 Distribution: OpenPKG Community
49 Class: EVAL
50 Group: Mail
51 License: GPL
52 Version: %{V_squirrelmail}
53 Release: 20090327
54
55 # package options
56 %option with_plugins no
57 %option with_kolab no
58
59 # list of sources
60 Source0: http://switch.dl.sourceforge.net/squirrelmail/squirrelmail-%{V_squirrelmail}.tar.bz2
61 Source1: http://switch.dl.sourceforge.net/squirrelmail/all_locales-%{V_locale}.tar.bz2
62 Source2: http://www.squirrelmail.org/plugins/compatibility-%{V_plugin_compat}.tar.gz
63 Source3: http://www.squeaksoft.com/products/SquirrelLogger/squirrel_logger.%{V_plugin_logger}.tar.gz
64 Source4: http://www.squirrelmail.org/plugins/addgraphics-%{V_plugin_addgraphics}.tar.gz
65 Source5: http://www.squirrelmail.org/plugins/avelsieve-%{V_plugin_avelsieve}.tar.gz
66 Source6: http://www.squirrelmail.org/plugins/chg_sasl_passwd-%{V_plugin_saslpwd}.tar.gz
67 Source7: http://www.squirrelmail.org/plugins/check_quota-%{V_plugin_checkquota}.tar.gz
68 Source8: http://www.squirrelmail.org/plugins/folder_sizes-%{V_plugin_foldersize}.tar.gz
69 Source9: http://www.squirrelmail.org/plugins/gpg.%{V_plugin_gnupg}.tar.gz
70 Source10: http://www.squirrelmail.org/plugins/ldifimport-%{V_plugin_ldif}.tar.gz
71 Source11: http://www.squirrelmail.org/plugins/pupdate.%{V_plugin_update}.tar.gz
72 Source12: http://www.squirrelmail.org/plugins/show_user_and_ip-%{V_plugin_userip}.tar.gz
73 Source13: http://www.squirrelmail.org/plugins/smallcal-%{V_plugin_smallcal}.tar.gz
74 Source14: http://www.squirrelmail.org/plugins/vkeyboard-%{V_plugin_vkeyboard}.tar.gz
75 Source15: http://www.squirrelmail.org/plugins/username-%{V_plugin_username}.tar.gz
76 Source16: config.php
77 Source17: defprefs.txt
78 Source18: opkg_large.png
79 Source19: opkg_small.png
80 Source20: rc.squirrelmail
81 Source21: squirrelmail.conf
82 Source22: config_local_kolab.php
83 Source23: index.php
84 Patch0: squirrelmail.patch
85 Patch1: squirrelmail.patch.plugins
86
87 # build information
88 Prefix: %{l_prefix}
89 BuildRoot: %{l_buildroot}
90 BuildPreReq: OpenPKG, openpkg >= 20060823
91 PreReq: OpenPKG, openpkg >= 20060823
92 PreReq: MTA, apache, apache-php, apache-php::with_xml = yes
93 AutoReq: no
94 AutoReqProv: no
95
96 %description
97 SquirrelMail is a standards-based webmail package written in PHP. It
98 includes built-in pure PHP support for the IMAP and SMTP protocols,
99 and all pages render in pure HTML 4.0 (with no Javascript) for
100 maximum compatibility across browsers. It has very few requirements
101 and is very easy to configure and install. SquirrelMail has all the
102 functionality you would want from an email client, including strong
103 MIME support, address books, and folder manipulation.
104
105 %track
106 prog squirrelmail = {
107 version = %{V_squirrelmail}
108 url = http://prdownloads.sourceforge.net/squirrelmail/
109 regex = squirrelmail-(\d+\.[02468]\.\d+[a-z]?)\.tar\.bz2
110 }
111 prog squirrelmail:locales = {
112 version = %{V_locale}
113 url = http://prdownloads.sourceforge.net/squirrelmail/
114 regex = all_locales-(\d+\.[02468]\.\d+-\d+)\.tar\.bz2
115 }
116 prog squirrelmail:compat = {
117 comment = "cs: untrackable due to CMS generated URLs"
118 disabled
119 version = %{V_plugin_compat}
120 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
121 regex = compatibility-(__VER__)\.tar\.gz
122 }
123 prog squirrelmail:logger = {
124 version = %{V_plugin_logger}
125 url = http://www.squeaksoft.com/products/SquirrelLogger/
126 regex = squirrel_logger.(__VER__)\.tar\.gz
127 }
128 prog squirrelmail:addgraphics = {
129 comment = "cs: untrackable due to CMS generated URLs"
130 disabled
131 version = %{V_plugin_addgraphics}
132 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
133 regex = addgraphics-(__VER__)\.tar\.gz
134 }
135 prog squirrelmail:avelsieve = {
136 comment = "cs: untrackable due to CMS generated URLs"
137 disabled
138 version = %{V_plugin_avelsieve}
139 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
140 regex = avelsieve-(\d+\.\d+\.\d+)\.tar\.gz
141 }
142 prog squirrelmail:saslpwd = {
143 comment = "cs: untrackable due to CMS generated URLs"
144 disabled
145 version = %{V_plugin_saslpwd}
146 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
147 regex = chg_sasl_passwd-(\d+\.\d+\.\d+-\d+\.\d+)\.tar\.gz
148 }
149 prog squirrelmail:checkquota = {
150 comment = "cs: untrackable due to CMS generated URLs"
151 disabled
152 version = %{V_plugin_checkquota}
153 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
154 regex = check_quota-(__VER__)\.tar\.gz
155 }
156 prog squirrelmail:foldersize = {
157 comment = "cs: untrackable due to CMS generated URLs"
158 disabled
159 version = %{V_plugin_foldersize}
160 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
161 regex = folder_sizes-(__VER__)\.tar\.gz
162 }
163 prog squirrelmail:gnupg = {
164 comment = "cs: untrackable due to CMS generated URLs"
165 disabled
166 version = %{V_plugin_gnupg}
167 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
168 regex = gpg.(\d+\.\d+\.\d+-\d+\.\d+\.\d+)\.tar\.gz
169 }
170 prog squirrelmail:ldif = {
171 comment = "cs: untrackable due to CMS generated URLs"
172 disabled
173 version = %{V_plugin_ldif}
174 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
175 regex = ldifimport-(__VER__)\.tar\.gz
176 }
177 prog squirrelmail:update = {
178 comment = "cs: untrackable due to CMS generated URLs"
179 disabled
180 version = %{V_plugin_update}
181 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
182 regex = pupdate.(__VER__)\.tar\.gz
183 }
184 prog squirrelmail:userip = {
185 comment = "cs: untrackable due to CMS generated URLs"
186 disabled
187 version = %{V_plugin_userip}
188 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
189 regex = show_user_and_ip-(__VER__)\.tar\.gz
190 }
191 prog squirrelmail:smallcal = {
192 comment = "cs: untrackable due to CMS generated URLs"
193 disabled
194 version = %{V_plugin_smallcal}
195 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
196 regex = smallcal-(__VER__)\.tar\.gz
197 }
198 prog squirrelmail:vkeyboard = {
199 comment = "cs: untrackable due to CMS generated URLs"
200 disabled
201 version = %{V_plugin_vkeyboard}
202 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
203 regex = vkeyboard-(__VER__)\.tar\.gz
204 }
205 prog squirrelmail:username = {
206 comment = "cs: untrackable due to CMS generated URLs"
207 disabled
208 version = %{V_plugin_username}
209 url = http://www.squirrelmail.org/plugins_category.php?category_id=all
210 regex = username-(__VER__)\.tar\.gz
211 }
212
213 %prep
214 %setup -q -c -n squirrelmail
215 %setup -q -D -T -a 1 -c -n squirrelmail/all_locales-%{V_locale}
216 %setup -q -D -T -a 2 -n squirrelmail
217 %setup -q -D -T -a 3 -n squirrelmail
218 mv compatibility squirrelmail-%{V_squirrelmail}/plugins
219 mv squirrel_logger squirrelmail-%{V_squirrelmail}/plugins
220 %if "%{with_plugins}" == "yes"
221 %setup -q -D -T -a 4 -n squirrelmail
222 %setup -q -D -T -a 5 -n squirrelmail
223 %setup -q -D -T -a 6 -n squirrelmail
224 %setup -q -D -T -a 7 -n squirrelmail
225 %setup -q -D -T -a 8 -n squirrelmail
226 %setup -q -D -T -a 9 -n squirrelmail
227 %setup -q -D -T -a 10 -n squirrelmail
228 %setup -q -D -T -a 11 -n squirrelmail
229 %setup -q -D -T -a 12 -n squirrelmail
230 %setup -q -D -T -a 13 -n squirrelmail
231 %setup -q -D -T -a 14 -n squirrelmail
232 %setup -q -D -T -a 15 -n squirrelmail
233
234 # move additional plugins where other are already placed
235 for plug in addgraphics avelsieve check_quota chg_sasl_passwd \
236 folder_sizes gpg ldifimport pupdate show_user_and_ip \
237 smallcal vkeyboard username; do
238 mv $plug squirrelmail-%{V_squirrelmail}/plugins
239 done
240 %endif
241
242 # clean up login screen of distractions
243 ( cd squirrelmail-%{V_squirrelmail}
244 %patch -p0
245 ) || exit $?
246
247 # rearrange documentation and remove archive script
248 ( cd squirrelmail-%{V_squirrelmail}
249 mv AUTHORS ChangeLog COPYING INSTALL README UPGRADE doc/
250 mv ReleaseNotes doc/ReleaseNotes.txt
251 mv themes/README.themes doc/
252 for fil in `find plugins/ -name "README*" -o -name "Readme*" \
253 -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do
254 %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil`
255 mv -f $fil $_
256 done
257 mv doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell
258 rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php
259 mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell
260 rm -rf plugins/squirrelspell/doc
261 rm -f plugins/make_archive.pl
262 %if "%{with_plugins}" == "yes"
263 mv plugins/pupdate/docs/* doc/plugins/pupdate
264 rm -rf plugins/pupdate/docs
265 %endif
266
267 # postadjustment cosmetics
268 %{l_shtool} subst \
269 -e 's;\(#ffffff., .border="0" width=\)"350";\1"250";1' \
270 src/login.php
271
272 # set default prefs
273 cat %{SOURCE defprefs.txt} >>data/default_pref
274 ) || exit $?
275
276 %build
277
278 %install
279 rm -rf $RPM_BUILD_ROOT
280
281 # create directory structure
282 %{l_shtool} mkdir -f -p -m 755 \
283 $RPM_BUILD_ROOT%{l_prefix}/bin \
284 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail \
285 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs \
286 $RPM_BUILD_ROOT%{l_prefix}/var/squirrelmail/spool/attach \
287 $RPM_BUILD_ROOT%{l_prefix}/var/squirrelmail/log
288
289 # install locales
290 ( cd all_locales-%{V_locale}
291 cp -rpf help images locale $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/
292 ) || exit $?
293
294 # install program
295 ( cd squirrelmail-%{V_squirrelmail}
296
297 # install default_pref
298 %{l_shtool} install -c -m 644 \
299 data/default_pref \
300 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/
301
302 # create initial administrator list
303 echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins
304
305 # copy over most functional directories, a lot of stuff
306 for dir in class doc functions include plugins src themes; do
307 cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/
308 done
309 cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/
310 cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/
311
312 # install main config files
313 l_fqdm=`%{l_shtool} echo -e %h%d`
314 %{l_shtool} install -c -m 644 %{l_value -s -a} \
315 -e 's;config/\(config_local.php\);\1;g' \
316 -e "s;@l_fqdm@;${l_fqdm};g" \
317 %{SOURCE config.php} \
318 config/config_default.php \
319 config/config_local.php \
320 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/
321 %if "%{with_plugins}" == "yes"
322 ( cd $RPM_BUILD_ROOT%{l_prefix}
323 %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins}
324 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/*.orig
325 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/gpg/*.orig
326 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/chg_sasl_passwd/*.orig
327 ) || exit $?
328 %endif
329
330 # install plugin config files
331 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins
332 %{l_shtool} subst \
333 -e 's;../data/access_log;../../../var/squirrelmail/log/access.log;' \
334 -e 's;\(\$sl_dateformat = \)"m/d/Y G:i:s";\1"d/m/Y G:i:s";' \
335 squirrel_logger/setup.php
336 %if "%{with_plugins}" == "yes"
337 cp -pf check_quota/config.sample.php check_quota/config.php
338 cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php
339 cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php
340 %{l_shtool} install -c -m 644 \
341 -e "s;sm_logo\.png;opkg_small.png;" \
342 -e "s;SquirrelMail Logo;OpenPKG Logo;" \
343 -e "s;www\.squirrelmail\.org;www.openpkg.org;" \
344 -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \
345 -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \
346 addgraphics/config.php.typical.one.domain \
347 addgraphics/config.php
348 %{l_shtool} install -c -m 644 \
349 -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \
350 -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \
351 -e 's/^\(\$startitems =\).*/\1 4;/' \
352 avelsieve/config/config_sample.php \
353 avelsieve/config/config.php
354 %{l_shtool} subst \
355 -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \
356 gpg/gpg_local_prefs.txt
357 %{l_shtool} install -c -m 644 \
358 -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \
359 -e 's;corehide = 1;corehide = 0;' \
360 pupdate/config.php.sample \
361 pupdate/config.php
362 %{l_shtool} install -c -m 644 \
363 -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \
364 -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \
365 -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \
366 vkeyboard/config.php.sample \
367 vkeyboard/config.php
368 cp -pf username/config.php.sample username/config.php
369 %{l_shtool} install -c -m 644 \
370 %{SOURCE opkg_small.png} \
371 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/
372 %endif
373 ) || exit $?
374
375 # install squirrelmail configuration perl script
376 %{l_shtool} install -c -m 755 \
377 -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \
378 -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \
379 -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \
380 -e 's;config/config_local.php;config_local.php;g' \
381 config/conf.pl \
382 $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf
383
384 # use our own logo, a squirrel next to a OpenPKG package
385 %{l_shtool} install -c -m 644 \
386 %{SOURCE opkg_large.png} \
387 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/
388 ) || exit $?
389
390 # install runcommand script
391 %{l_shtool} mkdir -f -p -m 755 \
392 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
393 %{l_shtool} install -c -m 755 %{l_value -s -a} \
394 %{SOURCE rc.squirrelmail} \
395 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
396
397 # replace false /etc config paths throughout
398 %{l_shtool} subst \
399 -e 's;SM_PATH \. \(.\)config/;\1%{l_prefix}/etc/squirrelmail/;g' \
400 -e 's;require_once(SM_PATH \. \(.*\)%{l_prefix};require_once(\1%{l_prefix};g' \
401 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.php \
402 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/include/*.php \
403 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/abook_take/*.php \
404 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/administrator/*.php \
405 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/calendar/*.php \
406 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.php
407
408 # integration into Apache under /webmail
409 %{l_shtool} mkdir -f -p -m 755 \
410 $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d
411 %{l_shtool} install -c -m 644 %{l_value -s -a} \
412 %{SOURCE squirrelmail.conf} \
413 $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/
414 %{l_shtool} install -c -m 644 %{l_value -s -a} \
415 %{SOURCE index.php} \
416 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/
417
418 # optional KOLAB configuration
419 %if "%{with_kolab}" == "yes"
420 %{l_shtool} install -c -m 644 %{l_value -s -a} \
421 %{SOURCE config_local_kolab.php} \
422 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/config_local.php
423 %endif
424
425 # determine package ingredients and tag config files
426 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
427 %{l_files_std} \
428 '%config %{l_prefix}/etc/squirrelmail/*' \
429 '%config %{l_prefix}/share/squirrelmail/prefs/*' \
430 '%config %{l_prefix}/share/squirrelmail/plugins/squirrelspell/sqspell_config.php' \
431 %if "%{with_plugins}" == "yes"
432 '%config %{l_prefix}/share/squirrelmail/plugins/addgraphics/config.php' \
433 '%config %{l_prefix}/share/squirrelmail/plugins/avelsieve/config/config.php' \
434 '%config %{l_prefix}/share/squirrelmail/plugins/check_quota/config.php' \
435 '%config %{l_prefix}/share/squirrelmail/plugins/chg_sasl_passwd/config.php' \
436 '%config %{l_prefix}/share/squirrelmail/plugins/folder_sizes/folder_sizes.php' \
437 '%config %{l_prefix}/share/squirrelmail/plugins/gpg/gpg_local_prefs.txt' \
438 '%config %{l_prefix}/share/squirrelmail/plugins/ldifimport/config.php' \
439 '%config %{l_prefix}/share/squirrelmail/plugins/pupdate/config.php' \
440 '%config %{l_prefix}/share/squirrelmail/plugins/show_user_and_ip/config.php' \
441 '%config %{l_prefix}/share/squirrelmail/plugins/vkeyboard/config.php' \
442 '%config %{l_prefix}/share/squirrelmail/plugins/username/config.php' \
443 %endif
444 '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/squirrelmail/prefs' \
445 '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/squirrelmail/spool/attach' \
446 '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/squirrelmail/log'
447
448 %files -f files
449
450 %clean
451 rm -rf $RPM_BUILD_ROOT
452
453 %preun
454 # before erase, remove log files
455 [ $1 -eq 0 ] || exit 0
456 rm -f $RPM_INSTALL_PREFIX/var/squirrelmail/log/*.log >/dev/null 2>&1 || true
457

mercurial