diff --git a/libreoffice.changes b/libreoffice.changes index 773fc7e..a7d2166 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 11 11:43:01 UTC 2014 - tchvatal@suse.com + +- Require link-to-ooo-home script properly in postun phase. + Fixes bnc#749059. + ------------------------------------------------------------------- Thu Apr 10 11:27:52 UTC 2014 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 80503f6..b9f3f6d 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -296,6 +296,7 @@ License: LGPL-2.1 Group: Productivity/Office/Suite Supplements: packageand(libreoffice:kdebase3-session) Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -309,6 +310,7 @@ License: LGPL-3.0 Group: Productivity/Office/Suite Supplements: libreoffice Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -322,6 +324,7 @@ License: LGPL-3.0 Group: Productivity/Office/Suite Supplements: libreoffice Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -335,6 +338,7 @@ License: LGPL-3.0 or CC-BY-SA-3.0 Group: Productivity/Office/Suite Supplements: packageand(libreoffice:kdebase4-workspace) Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -348,6 +352,7 @@ License: LGPL-3.0 Group: Productivity/Office/Suite Supplements: libreoffice Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -361,6 +366,7 @@ License: LGPL-3.0 Group: Productivity/Office/Suite Supplements: packageand(libreoffice:gnome-session) Requires(post): %{name} = %{version} +Requires(postun): %{name} = %{version} Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} BuildArch: noarch @@ -719,6 +725,7 @@ Summary: %{langname} Localization Files for LibreOffice \ Group: Productivity/Office/Suite \ Requires: %{name} = %{version} \ Requires(post,): %{name} = %{version} \ +Requires(postun,): %{name} = %{version} \ Provides: locale(libreoffice:%{lang}) \ BuildArch: noarch \ %{-m:Requires: libreoffice-thesaurus-%{-m*}}%{!-m:%{-M:Requires: libreoffice-thesaurus-%{lang}}} \ @@ -1116,7 +1123,7 @@ rm -rf %{buildroot}%{_libdir}/%{name}/readmes/ # rather remove it (fdo#53006, fdo#51252, bnc#769448) # Remove after 12.2 is out of support/migration scope. bundled_cache="%{_libdir}/%{name}/share/prereg/bundled" -if [ -d "$bundled_cache" ]; then +if [ -d "$bundled_cache" ]; then rm -rf "$bundled_cache"/* || true fi # Directory to symlink is not working in RPM so workaround it