| 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
| 22 ## |
22 ## |
| 23 |
23 |
| 24 # package version |
24 # package version |
| 25 %define V_squirrelmail 1.4.17 |
25 %define V_squirrelmail 1.4.21 |
| 26 %define V_locale 1.4.13-20071220 |
26 %define V_locale 1.4.18-20090526 |
| 27 %define V_plugin_compat 2.0.14-1.0 |
27 %define V_plugin_compat 2.0.14-1.0 |
| 28 %define V_plugin_logger 2.3-1.2.7 |
28 %define V_plugin_logger 2.3.1-1.2.7 |
| 29 %define V_plugin_addgraphics 2.3-1.0.3 |
29 %define V_plugin_addgraphics 2.3-1.0.3 |
| 30 %define V_plugin_avelsieve 1.9.4 |
30 %define V_plugin_avelsieve 1.9.7 |
| 31 %define V_plugin_saslpwd 1.4.1-1.4 |
31 %define V_plugin_saslpwd 1.4.1-1.4 |
| 32 %define V_plugin_ldappwd 2.2-1.4.0 |
32 %define V_plugin_ldappwd 2.2-1.4.0 |
| 33 %define V_plugin_checkquota 2.2-1.4.0 |
33 %define V_plugin_checkquota 2.2-1.4.0 |
| 34 %define V_plugin_foldersize 1.5-1.4.0 |
34 %define V_plugin_foldersize 1.5-1.4.0 |
| 35 %define V_plugin_gnupg 2.1 |
35 %define V_plugin_gnupg 2.1 |
| 36 %define V_plugin_ldif 1.4-1.2.x |
36 %define V_plugin_ldif 1.4-1.2.x |
| 37 %define V_plugin_update 0.7-1.4.2 |
37 %define V_plugin_update 0.7-1.4.2 |
| 38 %define V_plugin_userip 3.3-re-1.2.2 |
38 %define V_plugin_userip 3.3-re-1.2.2 |
| 39 %define V_plugin_smallcal 0.8-1.2.3 |
39 %define V_plugin_smallcal 0.8-1.2.3 |
| 40 %define V_plugin_vkeyboard 0.9.1 |
40 %define V_plugin_vkeyboard 0.9 |
| 41 %define V_plugin_username 2.3-1.0.0 |
41 %define V_plugin_username 2.3-1.0.0 |
| 42 %define V_plugin_loginnotes 1.2-1.4.0 |
42 %define V_plugin_loginnotes 1.2-1.4.0 |
| 43 %define V_plugin_passforget 2.2-1.0.1 |
43 %define V_plugin_passforget 2.2-1.0.1 |
| 44 %define V_plugin_captcha 1.2-1.2.9 |
44 %define V_plugin_captcha 1.2.3-1.2.9 |
| 45 %define V_plugin_smime 0.7-1.1.1 |
45 %define V_plugin_smime 0.7-1.1.1 |
| 46 %define V_plugin_debug 1.2-1.4 |
46 %define V_plugin_debug 1.2-1.4 |
| 47 |
47 |
| 48 # package information |
48 # package information |
| 49 Name: squirrelmail |
49 Name: squirrelmail |
| 294 change_ldappass folder_sizes gpg ldifimport pupdate \ |
294 change_ldappass folder_sizes gpg ldifimport pupdate \ |
| 295 show_user_and_ip smallcal vkeyboard username \ |
295 show_user_and_ip smallcal vkeyboard username \ |
| 296 login_notes password_forget captcha smime debugger; do |
296 login_notes password_forget captcha smime debugger; do |
| 297 mv $plug squirrelmail-%{V_squirrelmail}/plugins |
297 mv $plug squirrelmail-%{V_squirrelmail}/plugins |
| 298 done |
298 done |
| 299 |
|
| 300 # provisionary untested recaptcha google buyout hack |
|
| 301 %{l_shtool} subst \ |
|
| 302 -e 's;\(\$recaptcha_uri *=.*https://\)api-secure.recaptcha.net;\1www.google.com/recaptcha/api;' \ |
|
| 303 plugins/captcha/backends/recaptcha/recaptcha.php |
|
| 304 %endif |
299 %endif |
| 305 |
300 |
| 306 # clean up login screen of distractions |
301 # clean up login screen of distractions |
| 307 ( cd squirrelmail-%{V_squirrelmail} |
302 ( cd squirrelmail-%{V_squirrelmail} |
| 308 %patch -p0 |
303 %patch -p0 |
| 316 for fil in `find plugins/ -name "README*" -o -name "Readme*" \ |
311 for fil in `find plugins/ -name "README*" -o -name "Readme*" \ |
| 317 -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do |
312 -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do |
| 318 %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` |
313 %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` |
| 319 mv -f $fil $_ |
314 mv -f $fil $_ |
| 320 done |
315 done |
| 321 mv doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell |
|
| 322 rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php |
316 rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php |
| 323 mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell |
317 mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell |
| 324 rm -rf plugins/squirrelspell/doc |
318 rm -rf plugins/squirrelspell/doc |
| 325 rm -f plugins/make_archive.pl |
|
| 326 %if "%{with_plugins}" == "yes" |
319 %if "%{with_plugins}" == "yes" |
| 327 mv plugins/pupdate/docs/* doc/plugins/pupdate |
320 mv plugins/pupdate/docs/* doc/plugins/pupdate |
| 328 rm -rf plugins/pupdate/docs |
321 rm -rf plugins/pupdate/docs |
| 329 %endif |
322 %endif |
| 330 |
323 |
| 383 config/config_local.php \ |
376 config/config_local.php \ |
| 384 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ |
377 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ |
| 385 %if "%{with_plugins}" == "yes" |
378 %if "%{with_plugins}" == "yes" |
| 386 ( cd $RPM_BUILD_ROOT%{l_prefix} |
379 ( cd $RPM_BUILD_ROOT%{l_prefix} |
| 387 %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} |
380 %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} |
| 388 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/*.orig |
381 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.orig |
| 389 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/gpg/*.orig |
382 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.orig |
| 390 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/chg_sasl_passwd/*.orig |
|
| 391 ) || exit $? |
383 ) || exit $? |
| 392 %endif |
384 %endif |
| 393 |
385 |
| 394 # install plugin config files |
386 # install plugin config files |
| 395 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins |
387 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins |