From 1603c6570b1ab117a5ced49cf1542f6addb2ada0 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 29 Apr 2015 18:51:07 +0200 Subject: [PATCH] Remove rpath after the build, not before --- umockdev.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/umockdev.spec b/umockdev.spec index 12ae771..33b3668 100644 --- a/umockdev.spec +++ b/umockdev.spec @@ -37,10 +37,6 @@ using %{name}. %build %configure --disable-static --enable-gtk-doc -# Remove rpath -sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool - make %{?_smp_mflags} %install @@ -50,6 +46,11 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" #nuke the .la file(s) find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# Remove rpath +chrpath --delete %{buildroot}%{_bindir}/umockdev-* +chrpath --delete %{buildroot}%{_libdir}/libumockdev.so.* +chrpath --delete %{buildroot}%{_libdir}/libumockdev-preload.so.* + rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev %check