diff --git a/libreoffice.changes b/libreoffice.changes index f4ff837..c7f7bd0 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 21 09:17:33 UTC 2015 - tchvatal@suse.com + +- Try to deal with rpath on bundled libs + ------------------------------------------------------------------- Fri Apr 17 12:57:07 UTC 2015 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 45176d6..6d5f199 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -238,6 +238,8 @@ BuildRequires: ucpp BuildRequires: vigra-devel BuildRequires: xml-commons-apis BuildRequires: pkgconfig(fbembed) +%else +BuildRequires: chrpath %endif BuildRequires: ImageMagick BuildRequires: ant @@ -1301,6 +1303,15 @@ cat file-lists/kde_list.txt >> file-lists/kde4_list.txt # Remove pointless readmes rm -rf %{buildroot}%{_libdir}/%{name}/readmes/ +# Remove RPATH on some 3rd party bundled libs +%if !%{with systemlibs} +chrpath --delete %{buildroot}%{_libdir}/%{name}/program/libmwaw-0.3.so.3 +chrpath --delete %{buildroot}%{_libdir}/%{name}/program/libwps-0.3.so.3 +chrpath --delete %{buildroot}%{_libdir}/%{name}/program/libodfgen-0.1.so.1 +chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librdf-lo.so.0 +chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librasqal-lo.so.3 +%endif + # We have ton of duped files so run over it %fdupes %{buildroot}/usr