From dba0301e00b88ebce267d355f1c0a1b7e2a9ad9c Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 3 Feb 2018 18:11:04 +0100 Subject: [PATCH] Switch to %ldconfig_scriptlets Signed-off-by: Igor Gnatenko --- djvulibre.spec | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/djvulibre.spec b/djvulibre.spec index 4e9251b..ba9ced6 100644 --- a/djvulibre.spec +++ b/djvulibre.spec @@ -3,7 +3,7 @@ Summary: DjVu viewers, encoders, and utilities Name: djvulibre Version: 3.5.27 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ Group: Applications/Publishing URL: http://djvu.sourceforge.net/ @@ -119,8 +119,6 @@ popd rm -f %{_datadir}/applications/djvulibre-djview3.desktop || : rm -f %{_datadir}/icons/hicolor/32x32/apps/djvulibre-djview3.png || : -/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - %preun # This is the legacy script, not compliant with current packaging @@ -132,21 +130,7 @@ if [ $1 -eq 0 ]; then fi -%postun -if [ $1 -eq 0 ] ; then - /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null - /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - - -%posttrans -/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - - -%post libs -p /sbin/ldconfig - - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files @@ -185,6 +169,9 @@ fi %changelog +* Sat Feb 03 2018 Igor Gnatenko - 3.5.27-5 +- Switch to %%ldconfig_scriptlets + * Wed Aug 02 2017 Fedora Release Engineering - 3.5.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild