roundcube/roundcube.spec

Mon, 15 Oct 2012 21:23:58 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 15 Oct 2012 21:23:58 +0200
changeset 742
36814bf43709
parent 721
63c8527d60f4
child 746
75275e2bcfd7
permissions
-rw-r--r--

Update to new vendor version, disable flawed dtrace(1) logic, and remove
external dependency to v8 by leveraging the mitgelieferte provided v8
implementation. Seems that v8 is a project that distributes no versioned
code, very yucky.

michael@721 1 ##
michael@721 2 ## roundcube.spec -- OpenPKG RPM Package Specification
michael@721 3 ## Copyright (c) 2012-2012 Michael Schloh von Bennewitz <michael@schloh.com>
michael@721 4 ##
michael@721 5 ## Permission to use, copy, modify, and distribute this software for
michael@721 6 ## any purpose with or without fee is hereby granted, provided that
michael@721 7 ## the above copyright notice and this permission notice appear in all
michael@721 8 ## copies.
michael@721 9 ##
michael@721 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@721 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@721 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@721 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@721 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@721 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@721 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@721 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@721 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@721 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@721 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@721 21 ## SUCH DAMAGE.
michael@721 22 ##
michael@721 23
michael@728 24 # package version
michael@728 25 %define V_plug_rcguard 0.2.0-39-g6d98249
michael@728 26
michael@721 27 # package information
michael@721 28 Name: roundcube
michael@721 29 Summary: Roundcube Webmail Client
michael@721 30 URL: http://www.roundcube.net/
michael@721 31 Vendor: Thomas Bruederli
michael@721 32 Packager: Michael Schloh von Bennewitz
michael@721 33 Distribution: Europalab Networks Production
michael@721 34 Class: EVAL
michael@721 35 Group: Mail
michael@721 36 License: GPL
michael@728 37 Version: 0.8.2
michael@721 38 Release: 20120800
michael@721 39
michael@721 40 # list of sources
michael@721 41 Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz
michael@728 42 Source1: https://www.github.com/dennylin93/rcguard/tarball/master/dennylin93-rcguard-%{V_plug_rcguard}.tar.gz
michael@728 43 Source2: linen_login.png
michael@728 44 Patch0: roundcube.patch
michael@721 45
michael@721 46 # build information
michael@721 47 BuildPreReq: OpenPKG, openpkg >= 20100101
michael@721 48 PreReq: OpenPKG, openpkg >= 20100101
michael@721 49 PreReq: MTA, apache, apache-php
michael@721 50 PreReq: apache-php::with_xml = yes
michael@721 51 PreReq: apache-php::with_json = yes
michael@728 52 PreReq: apache-php::with_exif = yes
michael@721 53 PreReq: apache-php::with_mcrypt = yes
michael@721 54 PreReq: apache-php::with_iconv = yes
michael@721 55 PreReq: apache-php::with_session = yes
michael@721 56 PreReq: apache-php::with_ssl = yes
michael@721 57
michael@721 58 %description
michael@721 59 Roundcube webmail is a browser based multilingual IMAP client with
michael@721 60 an application-like user interface. It provides full functionality
michael@721 61 expected from a email client, including MIME support, address book,
michael@721 62 folder manipulation, message searching and spell checking.
michael@721 63
michael@721 64 %track
michael@721 65 prog roundcube = {
michael@721 66 version = %{version}
michael@721 67 url = http://prdownloads.sourceforge.net/roundcubemail/
michael@721 68 regex = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz
michael@721 69 }
michael@721 70
michael@721 71 %prep
michael@721 72 %setup -q -n roundcubemail-%{version}
michael@728 73 %setup -q -n roundcubemail-%{version} -D -T -a 1
michael@721 74 %{l_shtool} subst \
michael@721 75 -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \
michael@721 76 installer/index.php
michael@728 77 mv dennylin93-rcguard-* plugins/rcguard
michael@728 78 %patch -p0
michael@728 79 %{l_shtool} subst %{l_value -s -a} \
michael@728 80 plugins/managesieve/config.inc.php.dist
michael@721 81
michael@721 82 %build
michael@721 83
michael@721 84 %install
michael@721 85 # create directory structure
michael@721 86 %{l_shtool} mkdir -f -p -m 755 \
michael@721 87 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube
michael@721 88
michael@721 89 # install program
michael@721 90 cp -rpf \
michael@721 91 bin config installer logs plugins program skins SQL temp \
michael@721 92 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
michael@721 93 %{l_shtool} install -c -m 644 \
michael@721 94 index.php robots.txt \
michael@721 95 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
michael@721 96
michael@728 97 # install other components
michael@728 98 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/plugins/rcguard/skins \
michael@728 99 && ln -s default larry )
michael@728 100 %{l_shtool} install -c -m 644 \
michael@728 101 %{SOURCE linen_login.png} \
michael@728 102 $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/skins/larry/images/
michael@728 103
michael@721 104 # determine package ingredients and tag config files
michael@721 105 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@721 106 %{l_files_std} \
michael@728 107 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' \
michael@728 108 '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' \
michael@728 109 '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/config/*' \
michael@728 110 '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/plugins/*/*config*'
michael@721 111
michael@721 112 %files -f files
michael@721 113
michael@721 114 %clean
michael@721 115
michael@721 116 %post
michael@721 117 # display information about next steps
michael@721 118 ( echo "Roundcube stores data in SQL and requires an existing"
michael@721 119 echo "local or remote installation of PostgreSQL, MySQL, or"
michael@721 120 echo "SQLite. Please refer to online documentation to carry"
michael@721 121 echo "out the SQL configuration, something like:"
michael@721 122 echo ""
michael@721 123 echo "CREATE DATABASE roundcubemail;"
michael@728 124 echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';"
michael@721 125 echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';"
michael@721 126 echo "FLUSH PRIVILEGES;"
michael@721 127 ) | %{l_rpmtool} msg -b -t notice
michael@721 128
michael@721 129 %preun
michael@721 130 # before erase, remove log files
michael@721 131 [ $1 -eq 0 ] || exit 0
michael@721 132 rm -f $RPM_INSTALL_PREFIX/var/roundcube/log/*.log >/dev/null 2>&1 || true
michael@721 133

mercurial