From ed7c825518e25028d7f6cc3911b8e749f349c659 Mon Sep 17 00:00:00 2001 From: Honza HorĂ¡k Date: Aug 29 2012 10:40:53 +0000 Subject: Using chrpath to get rid of --rpath in gd-progs --- diff --git a/gd.spec b/gd.spec index cf1485c..2d2dfea 100644 --- a/gd.spec +++ b/gd.spec @@ -20,7 +20,7 @@ Patch12: gd-2.0.35-runtests.patch BuildRequires: freetype-devel, fontconfig-devel, libX11-devel, libXpm-devel BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkgconfig # we need cmake for building test suite -BuildRequires: cmake +BuildRequires: cmake, chrpath %description The gd graphics library allows your code to quickly draw images @@ -67,9 +67,6 @@ files for gd, a graphics library for creating PNG and JPEG graphics. %patch11 -p1 -b .sec3 %patch12 -p1 -b .runtests -libtoolize --copy --force -aclocal - %build %configure --disable-rpath make %{?_smp_mflags} @@ -79,6 +76,9 @@ make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.la rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a +# Using the last resort to remove rpath, another tricks didn't help +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{pngtogd,gdparttopng,annotate,gdcmpgif,gdtopng,webpng,pngtogd2,gd2togif,gd2copypal,giftogd2,gd2topng} + %check pushd tests cmake -DBUILD_TEST=1 \ @@ -112,7 +112,7 @@ popd * Tue Aug 28 2012 Honza Horak - 2.0.35-19 - Spec file cleanup - Compile and run test suite during build -- Re-generate ltmain.sh to get rid of --rpath in gd-progs +- Using chrpath to get rid of --rpath in gd-progs * Fri Jul 27 2012 Fedora Release Engineering - 2.0.35-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild