From 3059c9fe871c8f1779588e2763d4ed8e9ce4f61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 31 Jan 2018 10:14:49 +0100 Subject: [PATCH 18/22] ldconfig and gtk-update-icon-cache is not needed in rawhide see https://pagure.io/packaging-committee/issue/736 --- libreport.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libreport.spec.in b/libreport.spec.in index 970e772f..b6302414 100644 --- a/libreport.spec.in +++ b/libreport.spec.in @@ -412,6 +412,9 @@ make check|| { exit 1 } +%if 0%{?fedora} > 27 +# ldconfig and gtk-update-icon-cache is not needed +%else %post gtk /usr/sbin/ldconfig # update icon cache @@ -431,11 +434,10 @@ fi %posttrans gtk gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %post web -p /usr/sbin/ldconfig - %postun web -p /usr/sbin/ldconfig +%endif %files -f %{name}.lang %doc README.md -- 2.14.3