Sun, 05 Aug 2012 13:18:44 +0200
Import package vendor original specs for necessary manipulations.
libassuan/libassuan.patch | file | annotate | diff | comparison | revisions | |
libassuan/libassuan.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libassuan/libassuan.patch Sun Aug 05 13:18:44 2012 +0200 1.3 @@ -0,0 +1,30 @@ 1.4 +Index: libassuan-1.0.5/src/libassuan-config.in 1.5 +--- libassuan-1.0.5/src/libassuan-config.in.orig 2006-10-09 12:41:47 +0200 1.6 ++++ libassuan-1.0.5/src/libassuan-config.in 2006-11-15 20:25:37 +0100 1.7 +@@ -105,6 +105,11 @@ 1.8 + esac 1.9 + shift 1.10 + done 1.11 ++ 1.12 ++if test "x${thread_module}" = "x-pth"; then 1.13 ++ cflags="$cflags `$prefix/bin/pth-config --cflags`" 1.14 ++ extralibs="$extralibs `$prefix/bin/pth-config --libs`" 1.15 ++fi 1.16 + 1.17 + if test "$echo_prefix" = "yes"; then 1.18 + echo $prefix 1.19 +Index: libassuan-2.0.3/src/libassuan-config.in 1.20 +--- libassuan-2.0.3/src/libassuan-config.in.orig 2006-10-09 12:41:47 +0200 1.21 ++++ libassuan-2.0.3/src/libassuan-config.in 2006-11-15 20:25:37 +0100 1.22 +@@ -105,6 +105,11 @@ 1.23 + esac 1.24 + shift 1.25 + done 1.26 ++ 1.27 ++if test "x${thread_module}" = "x-pth"; then 1.28 ++ cflags="$cflags `$prefix/bin/pth-config --cflags`" 1.29 ++ extralibs="$extralibs `$prefix/bin/pth-config --libs`" 1.30 ++fi 1.31 + 1.32 + if test "$echo_prefix" = "yes"; then 1.33 + echo $prefix
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libassuan/libassuan.spec Sun Aug 05 13:18:44 2012 +0200 2.3 @@ -0,0 +1,129 @@ 2.4 +## 2.5 +## libassuan.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package version 2.28 +%define V_assuan2 2.0.3 2.29 +%define V_assuan1 1.0.5 2.30 + 2.31 +# package information 2.32 +Name: libassuan 2.33 +Summary: GnuPG IPC Library 2.34 +URL: http://www.gnupg.org/related_software/libassuan/ 2.35 +Vendor: Werner Koch et al. 2.36 +Packager: OpenPKG Foundation e.V. 2.37 +Distribution: OpenPKG Community 2.38 +Class: PLUS 2.39 +Group: Libraries 2.40 +License: GPL/LGPL 2.41 +Version: %{V_assuan2} 2.42 +Release: 20120603 2.43 + 2.44 +# list of sources 2.45 +Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan1}.tar.bz2 2.46 +Source1: ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-%{V_assuan2}.tar.bz2 2.47 +Patch0: libassuan.patch 2.48 + 2.49 +# build information 2.50 +BuildPreReq: OpenPKG, openpkg >= 20100101 2.51 +PreReq: OpenPKG, openpkg >= 20100101 2.52 +BuildPreReq: pth, gpg-error 2.53 +PreReq: pth, gpg-error 2.54 + 2.55 +%description 2.56 + Libassuan is the IPC library used by some GnuPG related software. 2.57 + 2.58 +%track 2.59 + prog libassuan:libassuan1 = { 2.60 + version = %{V_assuan1} 2.61 + url = ftp://ftp.gnupg.org/gcrypt/libassuan/ 2.62 + regex = libassuan-(1\.\d+\.\d+)\.tar\.bz2 2.63 + } 2.64 + prog libassuan:libassuan2 = { 2.65 + version = %{V_assuan2} 2.66 + url = ftp://ftp.gnupg.org/gcrypt/libassuan/ 2.67 + regex = libassuan-(2\.\d+\.\d+)\.tar\.bz2 2.68 + } 2.69 + 2.70 +%prep 2.71 + %setup -q -c 2.72 + %setup -q -D -a 1 2.73 + %patch -p0 2.74 + 2.75 +%build 2.76 + ( cd libassuan-%{V_assuan1} 2.77 + CC="%{l_cc}" \ 2.78 + CFLAGS="%{l_cflags -O}" \ 2.79 + CPPFLAGS="%{l_cppflags pth .}" \ 2.80 + LDFLAGS="%{l_ldflags}" \ 2.81 + ./configure \ 2.82 + --prefix=%{l_prefix} \ 2.83 + --infodir=%{l_prefix}/info \ 2.84 + --mandir=%{l_prefix}/man \ 2.85 + --with-pth-prefix=%{l_prefix} \ 2.86 + --disable-shared 2.87 + %{l_make} %{l_mflags -O} 2.88 + ) || exit $? 2.89 + ( cd libassuan-%{V_assuan2} 2.90 + CC="%{l_cc}" \ 2.91 + CFLAGS="%{l_cflags -O}" \ 2.92 + CPPFLAGS="%{l_cppflags pth .}" \ 2.93 + LDFLAGS="%{l_ldflags}" \ 2.94 + ./configure \ 2.95 + --prefix=%{l_prefix} \ 2.96 + --infodir=%{l_prefix}/info \ 2.97 + --mandir=%{l_prefix}/man \ 2.98 + --with-pth-prefix=%{l_prefix} \ 2.99 + --disable-shared 2.100 + %{l_make} %{l_mflags -O} 2.101 + ) || exit $? 2.102 + 2.103 +%install 2.104 + ( cd libassuan-%{V_assuan1} 2.105 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.106 + mv $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan-config \ 2.107 + $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config 2.108 + %{l_shtool} subst \ 2.109 + -e 's;-lassuan;-lassuan1;g' \ 2.110 + $RPM_BUILD_ROOT%{l_prefix}/bin/libassuan1-config 2.111 + mv $RPM_BUILD_ROOT%{l_prefix}/include/assuan.h \ 2.112 + $RPM_BUILD_ROOT%{l_prefix}/include/assuan1.h 2.113 + mv $RPM_BUILD_ROOT%{l_prefix}/info/assuan.info \ 2.114 + $RPM_BUILD_ROOT%{l_prefix}/info/assuan1.info 2.115 + mv $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.a \ 2.116 + $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1.a 2.117 + mv $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan-pth.a \ 2.118 + $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan1-pth.a 2.119 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libassuan.la 2.120 + mv $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan.m4 \ 2.121 + $RPM_BUILD_ROOT%{l_prefix}/share/aclocal/libassuan1.m4 2.122 + ) || exit $? 2.123 + ( cd libassuan-%{V_assuan2} 2.124 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.125 + ) || exit $? 2.126 + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 2.127 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.128 + 2.129 +%files -f files 2.130 + 2.131 +%clean 2.132 +