Clean up ibus write-cache in scriptlet

Resolves: #1974629
This commit is contained in:
Peng Wu 2021-07-19 16:13:07 +08:00
parent a63a91de22
commit 3b10a0e067
2 changed files with 12 additions and 9 deletions

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
# this is the testcase identifier, which OSCI pipeline uses
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -2,7 +2,7 @@
Name: ibus-libpinyin
Version: 1.12.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Intelligent Pinyin engine based on libpinyin for IBus
License: GPLv3+
URL: https://github.com/libpinyin/ibus-libpinyin
@ -61,14 +61,6 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopo
%find_lang %{name}
%post
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
%postun
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_datadir}/metainfo/*.appdata.xml
@ -89,6 +81,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopo
%{_datadir}/ibus/component/*
%changelog
* Mon Jul 19 2021 Peng Wu <pwu@redhat.com> - 1.12.0-4
- Clean up ibus write-cache in scriptlet
- Resolves: #1974629
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.12.0-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937