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