Name: imsettings Version: 0.105.1 Release: 4%{?dist} License: LGPLv2+ URL: http://code.google.com/p/imsettings/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: intltool gettext BuildRequires: libtool autoconf BuildRequires: desktop-file-utils BuildRequires: dbus-devel >= 0.23, dbus-glib-devel >= 0.74, glib2 >= 2.16 BuildRequires: libgxim-devel >= 0.3.1, libnotify-devel BuildRequires: xfce-mcs-manager-devel libxfce4mcs-devel BuildRequires: GConf2-devel BuildRequires: libX11-devel Source0: http://imsettings.googlecode.com/files/%{name}-%{version}.tar.bz2 # workaround for KDE, it will be removed when we have a correct fix Source1: imsettings-kde.sh Patch0: imsettings-constraint-of-language.patch Patch1: imsettings-fix-unpredictable-session-order.patch Patch2: imsettings-fix-registertriggerkeys.patch Patch3: imsettings-disable-imsettings-xim.patch Patch4: imsettings-sync-forward-mode.patch Patch5: imsettings-sync-default.patch Patch6: imsettings-xim-fixes.patch Summary: Delivery framework for general Input Method configuration Group: Applications/System Requires: xorg-x11-xinit >= 1.0.2-22.fc8 Requires: imsettings-libs = %{version}-%{release} Requires(pre): GConf2 Requires(post): /bin/dbus-send %{_sbindir}/alternatives GConf2 Requires(preun): GConf2 Requires(postun): /bin/dbus-send %{_sbindir}/alternatives %description IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the core DBus services and some utilities. %package libs Summary: Libraries for imsettings Group: Development/Libraries %description libs IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the shared library for imsettings. %package devel Summary: Development files for imsettings Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} Requires: pkgconfig Requires: glib2-devel >= 2.16.0 Requires: dbus-glib-devel >= 0.74 %description devel IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains the development files to make any applications with imsettings. %package xfce Summary: Xfce support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: im-chooser %description xfce IMSettings is a framework that delivers Input Method settings and applies the changes so they take effect immediately without any need to restart applications or the desktop. This package contains a plugin to get this working on Xfce. %prep %setup -q %patch0 -p1 -b .0-lang %patch1 -p0 -b .1-session-order %patch2 -p0 -b .2-triggerkeys %patch3 -p0 -b .3-disable-imsettings-xim %patch4 -p1 -b .5-sync %patch5 -p0 -b .9-sync-default %patch6 -p0 -b .6-xim-fixes autoreconf %build %configure \ --with-xinputsh=50-xinput.sh \ --disable-static \ --disable-schemas-install make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # change the file attributes chmod 0755 $RPM_BUILD_ROOT%{_libexecdir}/xinputinfo.sh chmod 0755 $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh # clean up the unnecessary files rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/mcs-plugins/*.la # still not stable rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/qt-im-settings-daemon.service rm -f $RPM_BUILD_ROOT%{_libexecdir}/qt-im-settings-daemon # workaround for KDE mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kde/env install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/kde/env/ desktop-file-install \ --delete-original \ --dir=$RPM_BUILD_ROOT%{_datadir}/gnome/autostart \ $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/gnome-imsettings-applet.desktop #desktop-file-install \ # --delete-original \ # --dir=$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \ # $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/imsettings-applet.desktop %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` if [ -f %{_sysconfdir}/gconf/schemas/imsettings-applet.schemas ]; then gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/imsettings-applet.schemas > /dev/null || : fi fi %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/imsettings-applet.schemas > /dev/null || : alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf 10 alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xim.conf 30 dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || : %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/imsettings-applet.schemas > /dev/null || : fi %postun if [ "$1" = 0 ]; then alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xim.conf dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || : fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files -f %{name}.lang %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/imsettings-* %{_bindir}/im-xsettings-daemon %{_libexecdir}/gconf-im-settings-daemon %{_libexecdir}/im-info-daemon %{_libexecdir}/im-settings-daemon %{_libexecdir}/xinputinfo.sh %{_datadir}/dbus-1/services/*.service %{_datadir}/gnome/autostart/gnome-imsettings-applet.desktop %{_datadir}/pixmaps/*.png %{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh %{_sysconfdir}/X11/xinit/xinput.d %{_sysconfdir}/xdg/autostart/imsettings-applet.desktop %{_sysconfdir}/gconf/schemas/imsettings-applet.schemas %{_sysconfdir}/kde/env/*.sh %files libs %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/libimsettings.so.* %{_libdir}/libimsettings-xim.so.* %{_libdir}/libimsettings-xsettings.so.* %files devel %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_includedir}/imsettings %{_libdir}/libimsettings.so %{_libdir}/libimsettings-xim.so %{_libdir}/libimsettings-xsettings.so %{_libdir}/pkgconfig/imsettings.pc %files xfce %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/xfce4/mcs-plugins/imsettings_plugin.so %changelog * Mon Mar 17 2009 Akira TAGOH - 0.105.1-4 - Fix a dead key not working. (#483840) - Get rid of more debugging messages. (#484142) - Disable imsettings-xim in xinput.sh. (#485595) - Fix a parser error on reading Compose data. - Fix a double-free issue. - Workaround to get the accelerator keys working again. Note that this workaround might affects to the performance. you may want to disable this with: gconftool-2 -t bool -s /apps/imsettings-applet/sync_on_forward false (#488675) - Fix getting-stuck-issue on keyevent. (#488976, #489611) * Tue Oct 28 2008 Akira TAGOH - 0.105.1-3 - imsettings-fix-registertriggerkeys.patch: Fix to send XIM_REGISTER_TRIGGERKEYS anyway. (#468833) * Mon Oct 27 2008 Akira TAGOH - 0.105.1-2 - imsettings-fix-unpredictable-session-order.patch: Run imsettings-applet with --disable-xsettings for GNOME/XFCE. (#466206) * Thu Oct 23 2008 Akira TAGOH - 0.105.1-1 - New upstream release. - Fix another freeze issue. (#452849) - imsettings-r210.patch: removed. * Tue Oct 21 2008 Akira TAGOH - 0.105.0-4 - Read %%{_sysconfdir}/X11/xinput.d/none.conf for non-CJKI locales to make consistency in the status on im-chooser. so it would /disables/ IM regardless of what the kind of locales you use and what the kind of IM you installed. NOTE: if you can't input any characters with GTK+ application, you may implicitly use the different buiit-in immodule. you can modify none.conf to get the right thing then. - imsettings-r210.patch: backport to allow starting none without warnings. * Fri Oct 17 2008 Than Ngo 0.105.0-3 - readd the workaround for KDE * Tue Oct 14 2008 Than Ngo 0.105.0-2 - get rid of workaround for KDE * Tue Oct 14 2008 Akira TAGOH - 0.105.0-1 - New upstream release. - Have a workaround for the race condition issue. (#452849) - Fix a freeze issue with ibus. (#465431) - Fix a freeze issue on Desktops not supporting XSETTINGS. * Wed Oct 01 2008 Than Ngo 0.104.1-3 - add workaround for KDE * Mon Sep 29 2008 Akira TAGOH - 0.104.1-2 - Fix a gconf error in %%pre. (#464453) * Thu Sep 25 2008 Akira TAGOH - 0.104.1-1 - New upstream release. - Fix a segfault issue. (#462899) - Suppress the unnecessary notification. (#463797) - Add .schemas file missing. real fix of #460703. * Wed Sep 17 2008 Akira TAGOH - 0.104.0-1 - New upstream release. - Fix deadkey issue under XIM. (#457901) - Correct .desktop file for imsettings-applet (#460695) - Hide a status icon by default. (#460703) * Fri Aug 29 2008 Akira TAGOH - 0.103.0-1 - New upstream release. - im-xsettings-daemon doesn't run automatically. (#459443) - Enable XIM support again. (#457635) - BR: libgxim-devel and libnotify-devel * Tue Jul 29 2008 Akira TAGOH - 0.102.0-1 - New upstream release. - Fix no recommendation updated. (#455363) - Work on WMs not own/bring up XSETTINGS manager. (#455228) * Tue Jul 8 2008 Akira TAGOH - 0.101.3-2 - rebuild. * Thu Jul 3 2008 Akira TAGOH - 0.101.3-1 - New upstream release. - Use the system-wide xinputrc if .xinputrc is a dangling symlink. (#453358) * Thu Jun 26 2008 Akira TAGOH - 0.101.2-3 - Disable XIM support so far. (#452849, #452870) * Wed Jun 18 2008 Akira TAGOH - 0.101.2-2 - Backport patch from upstream to solve issues. - always saying IM is running when no .xinputrc. - workaround for a delay of that IM is ready for XIM. * Tue Jun 17 2008 Akira TAGOH - 0.101.2-1 - New upstream release. - Fix a typo in the help message. (#451739) - Fix a invalid memory access. (#451753) * Mon Jun 16 2008 Akira TAGOH - 0.101.1-2 - Add Reqruies: glib2-devel, dbus-glib-devel to -devel. * Thu Jun 12 2008 Akira TAGOH - 0.101.1-1 - New upstream release. - Add Requires pkgconfig to -devel. * Wed Jun 11 2008 Akira TAGOH - 0.101.0-1 - New upstream release. - Add Requires alternatives for %%post and %%postun. - Improve summary. - Remove imsettings-reload from %%post and %%postun. these are no longer needed. * Wed Jun 4 2008 Akira TAGOH - 0.100.0-1 - Initial package.