Using chrpath to get rid of --rpath in gd-progs
This commit is contained in:
parent
fde685ac09
commit
ed7c825518
10
gd.spec
10
gd.spec
@ -20,7 +20,7 @@ Patch12: gd-2.0.35-runtests.patch
|
|||||||
BuildRequires: freetype-devel, fontconfig-devel, libX11-devel, libXpm-devel
|
BuildRequires: freetype-devel, fontconfig-devel, libX11-devel, libXpm-devel
|
||||||
BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkgconfig
|
BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkgconfig
|
||||||
# we need cmake for building test suite
|
# we need cmake for building test suite
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake, chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The gd graphics library allows your code to quickly draw images
|
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
|
%patch11 -p1 -b .sec3
|
||||||
%patch12 -p1 -b .runtests
|
%patch12 -p1 -b .runtests
|
||||||
|
|
||||||
libtoolize --copy --force
|
|
||||||
aclocal
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-rpath
|
%configure --disable-rpath
|
||||||
make %{?_smp_mflags}
|
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.la
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a
|
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
|
%check
|
||||||
pushd tests
|
pushd tests
|
||||||
cmake -DBUILD_TEST=1 \
|
cmake -DBUILD_TEST=1 \
|
||||||
@ -112,7 +112,7 @@ popd
|
|||||||
* Tue Aug 28 2012 Honza Horak <hhorak@redhat.com> - 2.0.35-19
|
* Tue Aug 28 2012 Honza Horak <hhorak@redhat.com> - 2.0.35-19
|
||||||
- Spec file cleanup
|
- Spec file cleanup
|
||||||
- Compile and run test suite during build
|
- 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 <rel-eng@lists.fedoraproject.org> - 2.0.35-18
|
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-18
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user