Remove rpath after the build, not before

This commit is contained in:
Bastien Nocera 2015-04-29 18:51:07 +02:00
parent 08e4944db9
commit 1603c6570b

View File

@ -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