roundcube/roundcube.spec

changeset 721
63c8527d60f4
child 728
baeac098d68f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/roundcube/roundcube.spec	Thu Oct 04 20:39:11 2012 +0200
     1.3 @@ -0,0 +1,115 @@
     1.4 +##
     1.5 +##  roundcube.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2012-2012 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         roundcube
    1.29 +Summary:      Roundcube Webmail Client
    1.30 +URL:          http://www.roundcube.net/
    1.31 +Vendor:       Thomas Bruederli
    1.32 +Packager:     Michael Schloh von Bennewitz
    1.33 +Distribution: Europalab Networks Production
    1.34 +Class:        EVAL
    1.35 +Group:        Mail
    1.36 +License:      GPL
    1.37 +Version:      0.8.1
    1.38 +Release:      20120800
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz
    1.42 +
    1.43 +#   build information
    1.44 +BuildPreReq:  OpenPKG, openpkg >= 20100101
    1.45 +PreReq:       OpenPKG, openpkg >= 20100101
    1.46 +PreReq:       MTA, apache, apache-php
    1.47 +PreReq:       apache-php::with_xml = yes
    1.48 +PreReq:       apache-php::with_json = yes
    1.49 +PreReq:       apache-php::with_exim = yes
    1.50 +PreReq:       apache-php::with_mcrypt = yes
    1.51 +PreReq:       apache-php::with_iconv = yes
    1.52 +PreReq:       apache-php::with_session = yes
    1.53 +PreReq:       apache-php::with_ssl = yes
    1.54 +
    1.55 +%description
    1.56 +    Roundcube webmail is a browser based multilingual IMAP client with
    1.57 +    an application-like user interface. It provides full functionality
    1.58 +    expected from a email client, including MIME support, address book,
    1.59 +    folder manipulation, message searching and spell checking.
    1.60 +
    1.61 +%track
    1.62 +    prog roundcube = {
    1.63 +        version   = %{version}
    1.64 +        url       = http://prdownloads.sourceforge.net/roundcubemail/
    1.65 +        regex     = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz
    1.66 +    }
    1.67 +
    1.68 +%prep
    1.69 +    %setup -q -n roundcubemail-%{version}
    1.70 +    %{l_shtool} subst \
    1.71 +        -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \
    1.72 +        installer/index.php
    1.73 +
    1.74 +%build
    1.75 +
    1.76 +%install
    1.77 +    #   create directory structure
    1.78 +    %{l_shtool} mkdir -f -p -m 755 \
    1.79 +        $RPM_BUILD_ROOT%{l_prefix}/share/roundcube
    1.80 +
    1.81 +    #   install program
    1.82 +    cp -rpf \
    1.83 +        bin config installer logs plugins program skins SQL temp \
    1.84 +        $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
    1.85 +    %{l_shtool} install -c -m 644 \
    1.86 +        index.php robots.txt \
    1.87 +        opkg_large.png opkg_small.png \
    1.88 +        $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/
    1.89 +
    1.90 +    #   determine package ingredients and tag config files
    1.91 +#'%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/roundcube'
    1.92 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    1.93 +        %{l_files_std} \
    1.94 +        '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp'
    1.95 +        '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs'
    1.96 +
    1.97 +%files -f files
    1.98 +
    1.99 +%clean
   1.100 +
   1.101 +%post
   1.102 +        #   display information about next steps
   1.103 +        ( echo "Roundcube stores data in SQL and requires an existing"
   1.104 +          echo "local or remote installation of PostgreSQL, MySQL, or"
   1.105 +          echo "SQLite. Please refer to online documentation to carry"
   1.106 +          echo "out the SQL configuration, something like:"
   1.107 +          echo ""
   1.108 +          echo "CREATE DATABASE roundcubemail;"
   1.109 +          echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';
   1.110 +          echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';"
   1.111 +          echo "FLUSH PRIVILEGES;"
   1.112 +        ) | %{l_rpmtool} msg -b -t notice
   1.113 +
   1.114 +%preun
   1.115 +    #   before erase, remove log files
   1.116 +    [ $1 -eq 0 ] || exit 0
   1.117 +    rm -f $RPM_INSTALL_PREFIX/var/roundcube/log/*.log >/dev/null 2>&1 || true
   1.118 +

mercurial