From 77cf136d6c05c27b41fb1c2d02c7d23c02384ffd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 27 2019 11:45:42 +0000 Subject: Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- diff --git a/bluefish.spec b/bluefish.spec index 7267bfb..068e045 100644 --- a/bluefish.spec +++ b/bluefish.spec @@ -136,7 +136,7 @@ rm -f %{buildroot}%{_libdir}/%{name}/*.la %endif %post shared-data -%if 0%{?fedora} < 26 && 0%{?rhel} < 8 +%if 0%{?rhel} && 0%{?rhel} < 8 update-desktop-database &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : touch --no-create %{_datadir}/mime/packages &> /dev/null || : @@ -148,7 +148,7 @@ xmlcatalog --noout --add 'delegateURI' \ %postun shared-data if [ "$1" = 0 ]; then -%if 0%{?fedora} < 26 && 0%{?rhel} < 8 +%if 0%{?rhel} && 0%{?rhel} < 8 touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : update-desktop-database -q &> /dev/null ||: @@ -160,7 +160,7 @@ if [ "$1" = 0 ]; then %{_sysconfdir}/xml/catalog &> /dev/null || : fi -%if 0%{?fedora} < 26 && 0%{?rhel} < 8 +%if 0%{?rhel} && 0%{?rhel} < 8 %posttrans shared-data gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || :