roundcube/roundcube.spec

changeset 721
63c8527d60f4
child 728
baeac098d68f
equal deleted inserted replaced
-1:000000000000 0:9ea54728afe8
1 ##
2 ## roundcube.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2012-2012 Michael Schloh von Bennewitz <michael@schloh.com>
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 information
25 Name: roundcube
26 Summary: Roundcube Webmail Client
27 URL: http://www.roundcube.net/
28 Vendor: Thomas Bruederli
29 Packager: Michael Schloh von Bennewitz
30 Distribution: Europalab Networks Production
31 Class: EVAL
32 Group: Mail
33 License: GPL
34 Version: 0.8.1
35 Release: 20120800
36
37 # list of sources
38 Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz
39
40 # build information
41 BuildPreReq: OpenPKG, openpkg >= 20100101
42 PreReq: OpenPKG, openpkg >= 20100101
43 PreReq: MTA, apache, apache-php
44 PreReq: apache-php::with_xml = yes
45 PreReq: apache-php::with_json = yes
46 PreReq: apache-php::with_exim = yes
47 PreReq: apache-php::with_mcrypt = yes
48 PreReq: apache-php::with_iconv = yes
49 PreReq: apache-php::with_session = yes
50 PreReq: apache-php::with_ssl = yes
51
52 %description
53 Roundcube webmail is a browser based multilingual IMAP client with
54 an application-like user interface. It provides full functionality
55 expected from a email client, including MIME support, address book,
56 folder manipulation, message searching and spell checking.
57
58 %track
59 prog roundcube = {
60 version = %{version}
61 url = http://prdownloads.sourceforge.net/roundcubemail/
62 regex = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz
63 }
64
65 %prep
66 %setup -q -n roundcubemail-%{version}
67 %{l_shtool} subst \
68 -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \
69 installer/index.php
70
71 %build
72
73 %install
74 # create directory structure
75 %{l_shtool} mkdir -f -p -m 755 \
76 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube
77
78 # install program
79 cp -rpf \
80 bin config installer logs plugins program skins SQL temp \
81 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
82 %{l_shtool} install -c -m 644 \
83 index.php robots.txt \
84 opkg_large.png opkg_small.png \
85 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
86
87 # 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 \
90 %{l_files_std} \
91 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp'
92 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs'
93
94 %files -f files
95
96 %clean
97
98 %post
99 # display information about next steps
100 ( echo "Roundcube stores data in SQL and requires an existing"
101 echo "local or remote installation of PostgreSQL, MySQL, or"
102 echo "SQLite. Please refer to online documentation to carry"
103 echo "out the SQL configuration, something like:"
104 echo ""
105 echo "CREATE DATABASE roundcubemail;"
106 echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';
107 echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';"
108 echo "FLUSH PRIVILEGES;"
109 ) | %{l_rpmtool} msg -b -t notice
110
111 %preun
112 # before erase, remove log files
113 [ $1 -eq 0 ] || exit 0
114 rm -f $RPM_INSTALL_PREFIX/var/roundcube/log/*.log >/dev/null 2>&1 || true
115

mercurial