From da9a46b917a897240fa34714398b91049cb7a66dc7cb7116790e263db8f0714f Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 20 Apr 2022 11:54:35 +0000 Subject: [PATCH] Accepting request 970914 from home:dirkmueller:Factory - skip empty post/postun on gvim for SLE15+ OBS-URL: https://build.opensuse.org/request/show/970914 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=713 --- vim.changes | 5 +++++ vim.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/vim.changes b/vim.changes index 2c4b864..c1e4dfb 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 19 21:19:35 UTC 2022 - Dirk Müller + +- skip empty post/postun on gvim for SLE15+ + ------------------------------------------------------------------- Wed Apr 13 13:59:49 UTC 2022 - Ondřej Súkup diff --git a/vim.spec b/vim.spec index fb76b49..56f6963 100644 --- a/vim.spec +++ b/vim.spec @@ -505,11 +505,14 @@ if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir} %{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small fi +%if 0%{?suse_version} <= 1315 %post -n gvim %icon_theme_cache_post %postun -n gvim %icon_theme_cache_postun +%endif + %else # without libalternatives @@ -527,14 +530,17 @@ fi %{_sbindir}/update-alternatives \ --install %{_bindir}/vim vim %{_bindir}/gvim 30 \ --slave %{_bindir}/vi vi %{_bindir}/gvim - +%if 0%{?suse_version} <= 1315 %icon_theme_cache_post +%endif %postun -n gvim if [ ! -e %{_bindir}/gvim ] ; then %{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim fi +%if 0%{?suse_version} <= 1315 %icon_theme_cache_postun +%endif %post small %{_sbindir}/update-alternatives \