fix trigger scriptlets

triggers don't like %{_kf5_datadir}, may need to be defined at srpm time,
so make safe assumption that _kf5_datadir = _datadir
epel8
Rex Dieter 7 years ago
parent a063a57741
commit 4b82d7744c

@ -98,30 +98,30 @@ test "$(grep '^Inherits=' %{buildroot}%{_datadir}/icons/breeze-dark/index.theme)
%if 0%{?fedora} > 25
## trigger-based scriptlets
%filetriggerin -- %{_kf5_datadir}/icons/breeze
touch %{_kf5_datadir}/icons/breeze &> /dev/null || :
%filetriggerin -- %{_datadir}/icons/breeze
touch %{_datadir}/icons/breeze &> /dev/null || :
%filetriggerin -- %{_kf5_datadir}/icons/breeze-dark
touch %{_kf5_datadir}/icons/breeze-dark &> /dev/null || :
%filetriggerin -- %{_datadir}/icons/breeze-dark
touch %{_datadir}/icons/breeze-dark &> /dev/null || :
%transfiletriggerin -- %{_kf5_datadir}/icons/breeze
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerin -- %{_datadir}/icons/breeze
gtk-update-icon-cache %{_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerin -- %{_kf5_datadir}/icons/breeze-dark
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze-dark &>/dev/null || :
%transfiletriggerin -- %{_datadir}/icons/breeze-dark
gtk-update-icon-cache %{_datadir}/icons/breeze-dark &>/dev/null || :
# arg, looks like this case cannot be handled by triggers? -- rex
%postun
if [ $1 -eq 0 ] ; then
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 || :
fi
%transfiletriggerpostun -- %{_kf5_datadir}/icons/breeze
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerpostun -- %{_datadir}/icons/breeze
gtk-update-icon-cache %{_datadir}/icons/breeze &>/dev/null || :
%transfiletriggerpostun -- %{_kf5_datadir}/icons/breeze-dark
gtk-update-icon-cache %{_kf5_datadir}/icons/breeze-dark &>/dev/null || :
%transfiletriggerpostun -- %{_datadir}/icons/breeze-dark
gtk-update-icon-cache %{_datadir}/icons/breeze-dark &>/dev/null || :
%else
## classic scriptlets

Loading…
Cancel
Save