From 079927c040de3596af798a88445b6e97099df016 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Jan 27 2019 22:51:59 +0000 Subject: Make obsolete scriptlets conditional for EPEL < 8 --- diff --git a/dia.spec b/dia.spec index 863d4e8..4582212 100644 --- a/dia.spec +++ b/dia.spec @@ -108,6 +108,21 @@ SentUpstream: 2013-10-27 EOF +%if 0%{?rhel} && 0%{?rhel} <= 7 +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi +%endif + + %files -f %{name}.lang %doc AUTHORS COPYING ChangeLog KNOWN_BUGS NEWS README TODO THANKS %doc doc/custom-shapes doc/diagram.dtd doc/shape.dtd doc/sheet.dtd samples/