diff --git a/.abf.yml b/.abf.yml index cc9b83f..306979e 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,4 @@ -sources: +removed_sources: ibus-1.5.7.tar.gz: 09720755dcf3ee38282a7a0da335a812d6874b08 +sources: + ibus-1.5.8.tar.gz: 97d2ca6a4e095ae5db4a538ca73280ea49357940 diff --git a/ibus.macros b/ibus.macros index 9fef2f7..cb6b880 100644 --- a/ibus.macros +++ b/ibus.macros @@ -1,34 +1,30 @@ #============================================================ # usage: %post_ibus_register_engine pinyin zh #============================================================ -%post_ibus_register_engine() \ -key="/desktop/ibus/general/preload_engines" \ -if [ "$1" = "1" -a `locale -a|grep %{2} |wc -l` -gt 0 ]; then \ - current_value=$(%{_gconftool_bin} --get ${key} 2>/dev/null); \ - current_value=${current_value/[/}; \ - current_value=${current_value/]/}; \ - if [ -n "${current_value}" ]; then \ - new_value="${current_value},"; \ - fi \ - new_value="${new_value}%{1}"; \ - new_value="[${new_value}]"; \ - %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --set $key --type list --list-type=string "${new_value}"; \ -fi +%post_ibus_register_engine() %{nil} + +#if [ "$1" = "1" -a `locale -a|grep %{2} |wc -l` -gt 0 ]; then \ +# current_value=$(%{_bindir}/gsettings get org.freedesktop.ibus.general preload-engines 2>/dev/null); \ +# current_value=${current_value/[/}; \ +# current_value=${current_value/]/}; \ +# if [ -n "${current_value}" ]; then \ +# new_value="${current_value},"; \ +# fi \ +# new_value="${new_value}%{1}"; \ +# new_value="[${new_value}]"; \ +# %{_bindir}/gsettings set org.freedesktop.ibus.general preload-engines "${new_value}"; \ +#fi #============================================================ # usage: %preun_ibus_unregister_engine pinyin #============================================================ -%preun_ibus_unregister_engine() \ -key="/desktop/ibus/general/preload_engines" \ -if [ "$1" = "0" ]; then \ - current_value=$(%{_gconftool_bin} --get ${key} 2>/dev/null); \ - current_value=${current_value/[/}; \ - current_value=${current_value/]/}; \ - new_value=$(echo $current_value | tr ',' '\\n' | grep -v ^%{1}$ |tr '\\n' ',' | sed 's/,$//'); \ - if [ -z ${new_value} ]; then \ - %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset $key; \ - else \ - new_value="[${new_value}]"; \ - %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --set $key --type list --list-type=string "${new_value}"; \ - fi \ -fi +%preun_ibus_unregister_engine() %{nil} + +#if [ "$1" = "0" ]; then \ +# current_value=$(%{_bindir}/gsettings get org.freedesktop.ibus.general preload-engines 2>/dev/null); \ +# current_value=${current_value/[/}; \ +# current_value=${current_value/]/}; \ +# new_value=$(echo $current_value | tr ',' '\\n' | grep -v ^%{1}$ |tr '\\n' ',' | sed 's/,$//'); \ +# new_value="[${new_value}]"; \ +# %{_bindir}/gsettings set org.freedesktop.ibus.general preload-engines "${new_value}"; \ +#fi diff --git a/ibus.spec b/ibus.spec index 73385fe..ce36064 100644 --- a/ibus.spec +++ b/ibus.spec @@ -6,8 +6,8 @@ Summary: A next generation input framework Name: ibus -Version: 1.5.7 -Release: 2 +Version: 1.5.8 +Release: 1 License: GPLv2+ Group: System/Internationalization Url: http://code.google.com/p/ibus/ @@ -65,7 +65,7 @@ IBus is a next generation input framework. %{_mandir}/man1/ibus-daemon.1.* %{_mandir}/man1/ibus-setup.1.* %{_mandir}/man1/ibus.1.* -%{python_sitelib}/* +%{py_puresitedir}/* %preun %preun_uninstall_gconf_schemas ibus @@ -155,21 +155,37 @@ IBus gtk module. %build %configure2_5x \ - --enable-gtk3 \ - --disable-dbus-python-check \ - --enable-python-library \ - --enable-gconf \ - --enable-vala=yes + --enable-vala=yes \ + --enable-gtk3 \ + --enable-gtk2 \ + --enable-dconf \ + --enable-gconf \ + --enable-python-library \ + --enable-dbus-python-check \ + --enable-surrounding-text \ + %make %install %makeinstall_std -%find_lang %{name}10 - # install rpm macro mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d/ install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.d/%{name}.macros rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop +# install ui automatic selector wrapper +mv %{buildroot}%{_bindir}/%{name}-daemon %{buildroot}%{_bindir}/%{name}-daemon-real +cat >%{buildroot}%{_bindir}/%{name}-daemon <