Remove rpath after the build, not before
This commit is contained in:
parent
08e4944db9
commit
1603c6570b
@ -37,10 +37,6 @@ using %{name}.
|
|||||||
%build
|
%build
|
||||||
%configure --disable-static --enable-gtk-doc
|
%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}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -50,6 +46,11 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
#nuke the .la file(s)
|
#nuke the .la file(s)
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
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
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user