consistently use %%_datadir (instead of %%_kf5_datadir)

epel8
Rex Dieter 6 years ago
parent 43836432b5
commit 6f3007f655

@ -101,34 +101,34 @@ test "$(grep '^Inherits=' %{buildroot}%{_datadir}/icons/breeze-dark/index.theme)
%if 0%{?fedora} > 25 || 0%{?rhel} > 7
## trigger-based scriptlets
%transfiletriggerin -- %{_kf5_datadir}/icons/breeze
gtk-update-icon-cache --force %{_kf5_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerin -- %{_datadir}/icons/breeze
gtk-update-icon-cache --force %{_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerin -- %{_kf5_datadir}/icons/breeze-dark
gtk-update-icon-cache --force %{_kf5_datadir}/icons/breeze-dark &>/dev/null || :
%transfiletriggerin -- %{_datadir}/icons/breeze-dark
gtk-update-icon-cache --force %{_datadir}/icons/breeze-dark &>/dev/null || :
%transfiletriggerpostun -- %{_kf5_datadir}/icons/breeze
gtk-update-icon-cache --force %{_kf5_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerpostun -- %{_datadir}/icons/breeze
gtk-update-icon-cache --force %{_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerpostun -- %{_kf5_datadir}/icons/breeze-dark
gtk-update-icon-cache --force %{_kf5_datadir}/icons/breeze-dark &>/dev/null || :
%transfiletriggerpostun -- %{_datadir}/icons/breeze-dark
gtk-update-icon-cache --force %{_datadir}/icons/breeze-dark &>/dev/null || :
%else
## classic scriptlets
%post
touch --no-create %{_kf5_datadir}/icons/breeze &> /dev/null || :
touch --no-create %{_kf5_datadir}/icons/breeze-dark &> /dev/null || :
touch --no-create %{_datadir}/icons/breeze &> /dev/null || :
touch --no-create %{_datadir}/icons/breeze-dark &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze &> /dev/null || :
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze-dark &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/breeze &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/breeze-dark &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_kf5_datadir}/icons/breeze &> /dev/null || :
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze &> /dev/null || :
touch --no-create %{_kf5_datadir}/icons/breeze-dark &> /dev/null || :
gtk-update-icon-cache %{_kf5_datadir}/icons/breze-dark &> /dev/null || :
touch --no-create %{_datadir}/icons/breeze &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/breeze &> /dev/null || :
touch --no-create %{_datadir}/icons/breeze-dark &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/breze-dark &> /dev/null || :
fi
%endif

Loading…
Cancel
Save