1.1 --- a/roundcube/roundcube.spec Sat Oct 06 16:24:01 2012 +0200 1.2 +++ b/roundcube/roundcube.spec Sat Oct 06 20:29:43 2012 +0200 1.3 @@ -21,6 +21,9 @@ 1.4 ## SUCH DAMAGE. 1.5 ## 1.6 1.7 +# package version 1.8 +%define V_plug_rcguard 0.2.0-39-g6d98249 1.9 + 1.10 # package information 1.11 Name: roundcube 1.12 Summary: Roundcube Webmail Client 1.13 @@ -31,11 +34,14 @@ 1.14 Class: EVAL 1.15 Group: Mail 1.16 License: GPL 1.17 -Version: 0.8.1 1.18 +Version: 0.8.2 1.19 Release: 20120800 1.20 1.21 # list of sources 1.22 Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz 1.23 +Source1: https://www.github.com/dennylin93/rcguard/tarball/master/dennylin93-rcguard-%{V_plug_rcguard}.tar.gz 1.24 +Source2: linen_login.png 1.25 +Patch0: roundcube.patch 1.26 1.27 # build information 1.28 BuildPreReq: OpenPKG, openpkg >= 20100101 1.29 @@ -43,7 +49,7 @@ 1.30 PreReq: MTA, apache, apache-php 1.31 PreReq: apache-php::with_xml = yes 1.32 PreReq: apache-php::with_json = yes 1.33 -PreReq: apache-php::with_exim = yes 1.34 +PreReq: apache-php::with_exif = yes 1.35 PreReq: apache-php::with_mcrypt = yes 1.36 PreReq: apache-php::with_iconv = yes 1.37 PreReq: apache-php::with_session = yes 1.38 @@ -64,9 +70,14 @@ 1.39 1.40 %prep 1.41 %setup -q -n roundcubemail-%{version} 1.42 + %setup -q -n roundcubemail-%{version} -D -T -a 1 1.43 %{l_shtool} subst \ 1.44 -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \ 1.45 installer/index.php 1.46 + mv dennylin93-rcguard-* plugins/rcguard 1.47 + %patch -p0 1.48 + %{l_shtool} subst %{l_value -s -a} \ 1.49 + plugins/managesieve/config.inc.php.dist 1.50 1.51 %build 1.52 1.53 @@ -81,15 +92,22 @@ 1.54 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ 1.55 %{l_shtool} install -c -m 644 \ 1.56 index.php robots.txt \ 1.57 - opkg_large.png opkg_small.png \ 1.58 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ 1.59 1.60 + # install other components 1.61 + ( cd $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/plugins/rcguard/skins \ 1.62 + && ln -s default larry ) 1.63 + %{l_shtool} install -c -m 644 \ 1.64 + %{SOURCE linen_login.png} \ 1.65 + $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/skins/larry/images/ 1.66 + 1.67 # determine package ingredients and tag config files 1.68 -#'%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/roundcube' 1.69 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 1.70 %{l_files_std} \ 1.71 - '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' 1.72 - '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' 1.73 + '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' \ 1.74 + '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' \ 1.75 + '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/config/*' \ 1.76 + '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/plugins/*/*config*' 1.77 1.78 %files -f files 1.79 1.80 @@ -103,7 +121,7 @@ 1.81 echo "out the SQL configuration, something like:" 1.82 echo "" 1.83 echo "CREATE DATABASE roundcubemail;" 1.84 - echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd'; 1.85 + echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';" 1.86 echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';" 1.87 echo "FLUSH PRIVILEGES;" 1.88 ) | %{l_rpmtool} msg -b -t notice