From 884ac1e05ff33eb3cc9856ba7eb0eaab7f005f5d Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 16 May 2006 23:26:54 +0000 Subject: [PATCH] - remove file conflicts in libgcrypt-config by making the 64-bit version think the libraries are in /usr/lib (which is wrong, but which it also prunes from the suggest --libs output) --- libgcrypt-1.2.2-lib64.patch | 14 ++++++++++++++ libgcrypt.spec | 16 ++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 libgcrypt-1.2.2-lib64.patch diff --git a/libgcrypt-1.2.2-lib64.patch b/libgcrypt-1.2.2-lib64.patch new file mode 100644 index 0000000..4f68d7b --- /dev/null +++ b/libgcrypt-1.2.2-lib64.patch @@ -0,0 +1,14 @@ +We should suppress an explicit -L on 64-bit arches, too. + +--- libgcrypt-1.2.2/src/libgcrypt-config.in 2006-05-16 18:50:43.000000000 -0400 ++++ libgcrypt-1.2.2/src/libgcrypt-config.in 2006-05-16 18:50:50.000000000 -0400 +@@ -138,7 +138,8 @@ + libs_final="$libs" + + # Set up `libdirs'. +- if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then ++ if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib" -a \ ++ "x$libdir" != "x/usr/lib64" -a "x$libdir" != "x/lib64"; then + libdirs="-L$libdir" + fi + diff --git a/libgcrypt.spec b/libgcrypt.spec index 388b799..67861f9 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -1,9 +1,10 @@ Name: libgcrypt Version: 1.2.2 -Release: 1.2.1 +Release: 2 Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig Source2: wk@g10code.com +Patch0: libgcrypt-1.2.2-lib64.patch License: LGPL Summary: A general-purpose cryptography library. BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -28,6 +29,7 @@ applications using libgcrypt. %prep %setup -q +#%patch0 -p1 -b .lib64 %build %configure --disable-asm @@ -38,9 +40,10 @@ make check rm -fr $RPM_BUILD_ROOT %makeinstall -# XXX until %%configure is figgered -mv ${RPM_BUILD_ROOT}%{_bindir}/*-libgcrypt-config \ - ${RPM_BUILD_ROOT}%{_bindir}/libgcrypt-config || : +# Change /usr/lib64 back to /usr/lib. This saves us from having to patch the +# script to "know" that -L/usr/lib64 should be suppressed, and also removes +# a file conflict between 32- and 64-bit versions of this package. +sed -i -e 's,^libdir="/usr/lib.*"$,libdir="/usr/lib",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir ${RPM_BUILD_ROOT}/%{_libdir}/*.la /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir} @@ -77,6 +80,11 @@ fi %{_infodir}/gcrypt.info* %changelog +* Tue May 16 2006 Nalin Dahyabhai 1.2.2-2 +- remove file conflicts in libgcrypt-config by making the 64-bit version + think the libraries are in /usr/lib (which is wrong, but which it also + prunes from the suggest --libs output, so no harm done, hopefully) + * Fri Feb 10 2006 Jesse Keating - 1.2.2-1.2.1 - bump again for double-long bug on ppc(64)