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