58 Version: %{V_squirrelmail} |
58 Version: %{V_squirrelmail} |
59 Release: 20110706 |
59 Release: 20110706 |
60 |
60 |
61 # package options |
61 # package options |
62 %option with_plugins no |
62 %option with_plugins no |
63 %option with_kolab no |
|
64 |
63 |
65 # list of sources |
64 # list of sources |
66 Source0: http://switch.dl.sourceforge.net/squirrelmail/squirrelmail-%{V_squirrelmail}.tar.bz2 |
65 Source0: http://switch.dl.sourceforge.net/squirrelmail/squirrelmail-%{V_squirrelmail}.tar.bz2 |
67 Source1: http://switch.dl.sourceforge.net/squirrelmail/all_locales-%{V_locale}.tar.bz2 |
66 Source1: http://switch.dl.sourceforge.net/squirrelmail/all_locales-%{V_locale}.tar.bz2 |
68 Source2: http://www.squirrelmail.org/plugins/compatibility-%{V_plugin_compat}.tar.gz |
67 Source2: http://www.squirrelmail.org/plugins/compatibility-%{V_plugin_compat}.tar.gz |
89 Source23: defprefs.txt |
88 Source23: defprefs.txt |
90 Source24: opkg_large.png |
89 Source24: opkg_large.png |
91 Source25: opkg_small.png |
90 Source25: opkg_small.png |
92 Source26: rc.squirrelmail |
91 Source26: rc.squirrelmail |
93 Source27: squirrelmail.conf |
92 Source27: squirrelmail.conf |
94 Source28: config_local_kolab.php |
|
95 Source29: index.php |
93 Source29: index.php |
96 Patch0: squirrelmail.patch |
94 Patch0: squirrelmail.patch |
97 Patch1: squirrelmail.patch.plugins |
95 Patch1: squirrelmail.patch.plugins |
98 |
96 |
99 # build information |
97 # build information |
509 %{SOURCE squirrelmail.conf} \ |
507 %{SOURCE squirrelmail.conf} \ |
510 $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ |
508 $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ |
511 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
509 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
512 %{SOURCE index.php} \ |
510 %{SOURCE index.php} \ |
513 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
511 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
514 |
|
515 # optional KOLAB configuration |
|
516 %if "%{with_kolab}" == "yes" |
|
517 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
|
518 %{SOURCE config_local_kolab.php} \ |
|
519 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/config_local.php |
|
520 %endif |
|
521 |
512 |
522 # determine package ingredients and tag config files |
513 # determine package ingredients and tag config files |
523 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
514 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
524 %{l_files_std} \ |
515 %{l_files_std} \ |
525 '%attr(640,%{l_musr},%{l_ngrp}) %config %{l_prefix}/etc/squirrelmail/*' \ |
516 '%attr(640,%{l_musr},%{l_ngrp}) %config %{l_prefix}/etc/squirrelmail/*' \ |