Reverted scriptlets for f27

This commit is contained in:
Takao Fujiwara 2018-03-19 20:57:15 +09:00
parent fd5dfc11d4
commit d67ca0fce1

View File

@ -15,6 +15,12 @@
%global with_appdata 0 %global with_appdata 0
%endif %endif
%if (0%{?fedora} > 27 || 0%{?rhel} > 7)
%global with_gtk_script 0
%else
%global with_gtk_script 1
%endif
%if %with_python3 %if %with_python3
# for bytecompile in %%{_datadir}/ibus-anthy # for bytecompile in %%{_datadir}/ibus-anthy
%global __python %{__python3} %global __python %{__python3}
@ -22,7 +28,7 @@
Name: ibus-anthy Name: ibus-anthy
Version: 1.5.10 Version: 1.5.10
Release: 2%{?dist} Release: 3%{?dist}
Summary: The Anthy engine for IBus input platform Summary: The Anthy engine for IBus input platform
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -132,11 +138,25 @@ desktop-file-validate \
%post %post
/sbin/ldconfig /sbin/ldconfig
%if %with_gtk_script
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%endif
[ -x %{_bindir}/ibus ] && \ [ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || : %{_bindir}/ibus write-cache --system &>/dev/null || :
%postun %postun
/sbin/ldconfig /sbin/ldconfig
%if %with_gtk_script
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%endif
[ -x %{_bindir}/ibus ] && \ [ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || : %{_bindir}/ibus write-cache --system &>/dev/null || :
@ -166,6 +186,9 @@ desktop-file-validate \
%{_libdir}/libanthygobject-%{sub_version}.so %{_libdir}/libanthygobject-%{sub_version}.so
%changelog %changelog
* Mon Mar 19 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.10-3
- Reverted scriptlets for f27
* Mon Mar 19 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.10-2 * Mon Mar 19 2018 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.10-2
- Reverted ldconfig for f27 - Reverted ldconfig for f27