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@475 | 1 | ## |
michael@475 | 2 | ## libassuan.spec -- OpenPKG RPM Package Specification |
michael@475 | 3 | ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@475 | 4 | ## |
michael@475 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@475 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@475 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@475 | 8 | ## copies. |
michael@475 | 9 | ## |
michael@475 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@475 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@475 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@475 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@475 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@475 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@475 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@475 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@475 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@475 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@475 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@475 | 21 | ## SUCH DAMAGE. |
michael@475 | 22 | ## |
michael@475 | 23 | |
michael@475 | 24 | # package version |
michael@475 | 25 | %define V_assuan2 2.0.3 |
michael@475 | 26 | %define V_assuan1 1.0.5 |
michael@475 | 27 | |
michael@475 | 28 | # package information |
michael@475 | 29 | Name: libassuan |
michael@475 | 30 | Summary: GnuPG IPC Library |
michael@475 | 31 | URL: http://www.gnupg.org/related_software/libassuan/ |
michael@475 | 32 | Vendor: Werner Koch et al. |
michael@475 | 33 | Packager: OpenPKG Foundation e.V. |
michael@475 | 34 | Distribution: OpenPKG Community |
michael@475 | 35 | Class: PLUS |
michael@475 | 36 | Group: Libraries |
michael@475 | 37 | License: GPL/LGPL |
michael@475 | 38 | Version: %{V_assuan2} |
michael@476 | 39 | Release: 20120800 |
michael@475 | 40 | |
michael@475 | 41 | # list of sources |
michael@475 | 42 | Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan1}.tar.bz2 |
michael@475 | 43 | Source1: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan2}.tar.bz2 |
michael@475 | 44 | Patch0: libassuan.patch |
michael@475 | 45 | |
michael@475 | 46 | # build information |
michael@475 | 47 | BuildPreReq: OpenPKG, openpkg >= 20100101 |
michael@475 | 48 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@475 | 49 | BuildPreReq: pth, gpg-error |
michael@475 | 50 | PreReq: pth, gpg-error |
michael@475 | 51 | |
michael@475 | 52 | %description |
michael@475 | 53 | Libassuan is the IPC library used by some GnuPG related software. |
michael@475 | 54 | |
michael@475 | 55 | %track |
michael@475 | 56 | prog libassuan:libassuan1 = { |
michael@475 | 57 | version = %{V_assuan1} |
michael@475 | 58 | url = ftp://ftp.gnupg.org/gcrypt/libassuan/ |
michael@475 | 59 | regex = libassuan-(1\.\d+\.\d+)\.tar\.bz2 |
michael@475 | 60 | } |
michael@475 | 61 | prog libassuan:libassuan2 = { |
michael@475 | 62 | version = %{V_assuan2} |
michael@475 | 63 | url = ftp://ftp.gnupg.org/gcrypt/libassuan/ |
michael@475 | 64 | regex = libassuan-(2\.\d+\.\d+)\.tar\.bz2 |
michael@475 | 65 | } |
michael@475 | 66 | |
michael@475 | 67 | %prep |
michael@476 | 68 | %setup -q -c -n libassuan-%{V_assuan2} |
michael@477 | 69 | %setup -q -T -D -a 1 |
michael@475 | 70 | %patch -p0 |
michael@475 | 71 | |
michael@475 | 72 | %build |
michael@475 | 73 | ( cd libassuan-%{V_assuan1} |
michael@475 | 74 | CC="%{l_cc}" \ |
michael@475 | 75 | CFLAGS="%{l_cflags -O}" \ |
michael@475 | 76 | CPPFLAGS="%{l_cppflags pth .}" \ |
michael@475 | 77 | LDFLAGS="%{l_ldflags}" \ |
michael@475 | 78 | ./configure \ |
michael@475 | 79 | --prefix=%{l_prefix} \ |
michael@475 | 80 | --infodir=%{l_prefix}/info \ |
michael@475 | 81 | --mandir=%{l_prefix}/man \ |
michael@475 | 82 | --with-pth-prefix=%{l_prefix} \ |
michael@475 | 83 | --disable-shared |
michael@475 | 84 | %{l_make} %{l_mflags -O} |
michael@475 | 85 | ) || exit $? |
michael@475 | 86 | ( cd libassuan-%{V_assuan2} |
michael@475 | 87 | CC="%{l_cc}" \ |
michael@475 | 88 | CFLAGS="%{l_cflags -O}" \ |
michael@475 | 89 | CPPFLAGS="%{l_cppflags pth .}" \ |
michael@475 | 90 | LDFLAGS="%{l_ldflags}" \ |
michael@475 | 91 | ./configure \ |
michael@475 | 92 | --prefix=%{l_prefix} \ |
michael@475 | 93 | --infodir=%{l_prefix}/info \ |
michael@475 | 94 | --mandir=%{l_prefix}/man \ |
michael@475 | 95 | --with-pth-prefix=%{l_prefix} \ |
michael@475 | 96 | --disable-shared |
michael@475 | 97 | %{l_make} %{l_mflags -O} |
michael@475 | 98 | ) || exit $? |
michael@475 | 99 | |
michael@475 | 100 | %install |
michael@475 | 101 | ( cd libassuan-%{V_assuan1} |
michael@475 | 102 | %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
michael@475 | 103 | mv $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan-config \ |
michael@475 | 104 | $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config |
michael@475 | 105 | %{l_shtool} subst \ |
michael@475 | 106 | -e 's;-lassuan;-lassuan1;g' \ |
michael@475 | 107 | $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config |
michael@475 | 108 | mv $RPM_BUILD_ROOT%{l_prefix}/include/assuan.h \ |
michael@475 | 109 | $RPM_BUILD_ROOT%{l_prefix}/include/assuan1.h |
michael@475 | 110 | mv $RPM_BUILD_ROOT%{l_prefix}/info/assuan.info \ |
michael@475 | 111 | $RPM_BUILD_ROOT%{l_prefix}/info/assuan1.info |
michael@475 | 112 | mv $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.a \ |
michael@475 | 113 | $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1.a |
michael@475 | 114 | mv $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan-pth.a \ |
michael@475 | 115 | $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1-pth.a |
michael@475 | 116 | rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.la |
michael@475 | 117 | mv $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan.m4 \ |
michael@475 | 118 | $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan1.m4 |
michael@475 | 119 | ) || exit $? |
michael@475 | 120 | ( cd libassuan-%{V_assuan2} |
michael@475 | 121 | %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
michael@475 | 122 | ) || exit $? |
michael@475 | 123 | rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
michael@475 | 124 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@475 | 125 | |
michael@475 | 126 | %files -f files |
michael@475 | 127 | |
michael@475 | 128 | %clean |
michael@475 | 129 |