roundcube/roundcube.spec

changeset 740
e7caf02f98eb
parent 721
63c8527d60f4
child 746
75275e2bcfd7
equal deleted inserted replaced
0:9ea54728afe8 1:40ca76995fe5
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 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 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
25 %define V_plug_rcguard 0.2.0-39-g6d98249
26
24 # package information 27 # package information
25 Name: roundcube 28 Name: roundcube
26 Summary: Roundcube Webmail Client 29 Summary: Roundcube Webmail Client
27 URL: http://www.roundcube.net/ 30 URL: http://www.roundcube.net/
28 Vendor: Thomas Bruederli 31 Vendor: Thomas Bruederli
29 Packager: Michael Schloh von Bennewitz 32 Packager: Michael Schloh von Bennewitz
30 Distribution: Europalab Networks Production 33 Distribution: Europalab Networks Production
31 Class: EVAL 34 Class: EVAL
32 Group: Mail 35 Group: Mail
33 License: GPL 36 License: GPL
34 Version: 0.8.1 37 Version: 0.8.2
35 Release: 20120800 38 Release: 20120800
36 39
37 # list of sources 40 # list of sources
38 Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz 41 Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz
42 Source1: https://www.github.com/dennylin93/rcguard/tarball/master/dennylin93-rcguard-%{V_plug_rcguard}.tar.gz
43 Source2: linen_login.png
44 Patch0: roundcube.patch
39 45
40 # build information 46 # build information
41 BuildPreReq: OpenPKG, openpkg >= 20100101 47 BuildPreReq: OpenPKG, openpkg >= 20100101
42 PreReq: OpenPKG, openpkg >= 20100101 48 PreReq: OpenPKG, openpkg >= 20100101
43 PreReq: MTA, apache, apache-php 49 PreReq: MTA, apache, apache-php
44 PreReq: apache-php::with_xml = yes 50 PreReq: apache-php::with_xml = yes
45 PreReq: apache-php::with_json = yes 51 PreReq: apache-php::with_json = yes
46 PreReq: apache-php::with_exim = yes 52 PreReq: apache-php::with_exif = yes
47 PreReq: apache-php::with_mcrypt = yes 53 PreReq: apache-php::with_mcrypt = yes
48 PreReq: apache-php::with_iconv = yes 54 PreReq: apache-php::with_iconv = yes
49 PreReq: apache-php::with_session = yes 55 PreReq: apache-php::with_session = yes
50 PreReq: apache-php::with_ssl = yes 56 PreReq: apache-php::with_ssl = yes
51 57
62 regex = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz 68 regex = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz
63 } 69 }
64 70
65 %prep 71 %prep
66 %setup -q -n roundcubemail-%{version} 72 %setup -q -n roundcubemail-%{version}
73 %setup -q -n roundcubemail-%{version} -D -T -a 1
67 %{l_shtool} subst \ 74 %{l_shtool} subst \
68 -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \ 75 -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \
69 installer/index.php 76 installer/index.php
77 mv dennylin93-rcguard-* plugins/rcguard
78 %patch -p0
79 %{l_shtool} subst %{l_value -s -a} \
80 plugins/managesieve/config.inc.php.dist
70 81
71 %build 82 %build
72 83
73 %install 84 %install
74 # create directory structure 85 # create directory structure
79 cp -rpf \ 90 cp -rpf \
80 bin config installer logs plugins program skins SQL temp \ 91 bin config installer logs plugins program skins SQL temp \
81 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ 92 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
82 %{l_shtool} install -c -m 644 \ 93 %{l_shtool} install -c -m 644 \
83 index.php robots.txt \ 94 index.php robots.txt \
84 opkg_large.png opkg_small.png \
85 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ 95 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
86 96
97 # install other components
98 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/plugins/rcguard/skins \
99 && ln -s default larry )
100 %{l_shtool} install -c -m 644 \
101 %{SOURCE linen_login.png} \
102 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/skins/larry/images/
103
87 # determine package ingredients and tag config files 104 # determine package ingredients and tag config files
88 #'%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/roundcube'
89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 105 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
90 %{l_files_std} \ 106 %{l_files_std} \
91 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' 107 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' \
92 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' 108 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' \
109 '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/config/*' \
110 '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/plugins/*/*config*'
93 111
94 %files -f files 112 %files -f files
95 113
96 %clean 114 %clean
97 115
101 echo "local or remote installation of PostgreSQL, MySQL, or" 119 echo "local or remote installation of PostgreSQL, MySQL, or"
102 echo "SQLite. Please refer to online documentation to carry" 120 echo "SQLite. Please refer to online documentation to carry"
103 echo "out the SQL configuration, something like:" 121 echo "out the SQL configuration, something like:"
104 echo "" 122 echo ""
105 echo "CREATE DATABASE roundcubemail;" 123 echo "CREATE DATABASE roundcubemail;"
106 echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd'; 124 echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';"
107 echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';" 125 echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';"
108 echo "FLUSH PRIVILEGES;" 126 echo "FLUSH PRIVILEGES;"
109 ) | %{l_rpmtool} msg -b -t notice 127 ) | %{l_rpmtool} msg -b -t notice
110 128
111 %preun 129 %preun

mercurial