[libreoffice/f20] Related: rhbz#1150048 rpmdiff: fix rpath for bundled redland libs
David Tardon
dtardon at fedoraproject.org
Wed Mar 18 16:53:52 UTC 2015
commit c87e333f08c9c556f99b94cfddf9ea4a156f0c03
Author: David Tardon <dtardon at redhat.com>
Date: Fri Feb 6 12:33:38 2015 +0100
Related: rhbz#1150048 rpmdiff: fix rpath for bundled redland libs
(cherry picked from commit e0ea397a96b4b9da409d7d318aeed9e8d211e4ed)
libreoffice.spec | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/libreoffice.spec b/libreoffice.spec
index ec5d949..8dd79a8 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -98,6 +98,9 @@ BuildRequires: automake
BuildRequires: bc
BuildRequires: binutils
BuildRequires: bison
+%if 0%{?rhel} && 0%{?rhel} < 7
+BuildRequires: chrpath
+%endif
BuildRequires: desktop-file-utils
BuildRequires: doxygen
BuildRequires: findutils
@@ -1437,6 +1440,14 @@ install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
popd
rm -rf %{buildroot}%{baseinstdir}/share/fonts
+%if 0%{?rhel} && 0%{?rhel} < 7
+#fix rpath for redland libs
+chrpath -r '$ORIGIN:$ORIGIN/../ure-link/lib' \
+ %{buildroot}%{baseinstdir}/program/libraptor2-lo.so.0 \
+ %{buildroot}%{baseinstdir}/program/librasqal-lo.so.3 \
+ %{buildroot}%{baseinstdir}/program/librdf-lo.so.0
+%endif
+
#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs
#have snuck through
pic=0
More information about the scm-commits
mailing list