Reverted scriptlets for f27
This commit is contained in:
parent
fd5dfc11d4
commit
d67ca0fce1
@ -15,6 +15,12 @@
|
||||
%global with_appdata 0
|
||||
%endif
|
||||
|
||||
%if (0%{?fedora} > 27 || 0%{?rhel} > 7)
|
||||
%global with_gtk_script 0
|
||||
%else
|
||||
%global with_gtk_script 1
|
||||
%endif
|
||||
|
||||
%if %with_python3
|
||||
# for bytecompile in %%{_datadir}/ibus-anthy
|
||||
%global __python %{__python3}
|
||||
@ -22,7 +28,7 @@
|
||||
|
||||
Name: ibus-anthy
|
||||
Version: 1.5.10
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: The Anthy engine for IBus input platform
|
||||
License: GPLv2+
|
||||
Group: System Environment/Libraries
|
||||
@ -132,11 +138,25 @@ desktop-file-validate \
|
||||
|
||||
%post
|
||||
/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 ] && \
|
||||
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
||||
|
||||
%postun
|
||||
/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 ] && \
|
||||
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
||||
|
||||
@ -166,6 +186,9 @@ desktop-file-validate \
|
||||
%{_libdir}/libanthygobject-%{sub_version}.so
|
||||
|
||||
%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
|
||||
- Reverted ldconfig for f27
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user