From 8cadcf773e38fa41c53734744f85fce9ebcabd59ea189453379cf2600c65f190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 3 Nov 2017 11:06:40 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=543 --- libreoffice.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 4de215f..a1dea6c 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -132,6 +132,8 @@ BuildRequires: libfonts BuildRequires: libformula %if %{with system_gpgme} BuildRequires: libgpgmepp-devel +%else +BuildRequires: chrpath %endif BuildRequires: libjpeg-devel BuildRequires: liblayout @@ -1077,13 +1079,6 @@ make verbose=true build-nocheck # Run tests only on 64b intel as they are resource hogs %ifarch x86_64 make -unset WITH_LANG -# work around flawed accessibility check -export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" -export OOO_TEST_SOFFICE=path:%{buildroot}%{_libdir}/libreoffice/program/soffice -#timeout -k 2m 2h make smoketest.subsequentcheck -# we don't need this anymore -rm -f %{buildroot}%{_libdir}/libreoffice/program/classes/smoketest.jar %endif %install @@ -1268,6 +1263,12 @@ echo "%{_libdir}/libreoffice/share/palette/SUSE.soc" >> file-lists/common_list.t # Symlink libreofficekit to libdir ln -s %{_libdir}/%{name}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}/liblibreofficekitgtk.so +%if !%{with system_gpgme} +chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libgpgme.so.11 +chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libgpgmepp.so.6 +chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libassuan.so.0 +%endif + # Symlink uno.py and unohelper.py so that python can find them # This is done after the cache files generating on purpose mkdir -p %{buildroot}%{python3_sitelib}