From c8f143d4064cbc3e498f8987d3cda83c2a91d9ef Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 6 Jan 2018 00:33:31 +0100 Subject: [PATCH] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- libreport.spec | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/libreport.spec b/libreport.spec index d538b23..249ca90 100644 --- a/libreport.spec +++ b/libreport.spec @@ -4,7 +4,7 @@ Summary: Generic library for reporting various problems Name: libreport Version: 2.9.3 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -430,32 +430,15 @@ make check|| { exit 1 } -%post gtk -/sbin/ldconfig -# update icon cache -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig -%postun gtk -/sbin/ldconfig -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans gtk -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - +%post gtk -p /sbin/ldconfig +%postun gtk -p /sbin/ldconfig %post web -p /sbin/ldconfig - - %postun web -p /sbin/ldconfig - %files -f %{name}.lang %defattr(-,root,root,-) %doc README.md @@ -760,6 +743,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 05 2018 Igor Gnatenko - 2.9.3-3 +- Remove obsolete scriptlets + * Sun Dec 10 2017 Björn Esser - 2.9.3-2 - Rebuilt for libjson-c.so.3 - Use %%global instead of %%define