Name: imsettings Version: 1.2.8.1 Release: 1%{?dist} License: LGPLv2+ URL: http://code.google.com/p/imsettings/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: intltool gettext BuildRequires: libtool automake autoconf BuildRequires: glib2 >= 2.26.0, gobject-introspection-devel, gtk3-devel >= 3.3.3 BuildRequires: libnotify-devel BuildRequires: libX11-devel, libgxim-devel >= 0.3.1 %if !0%{?rhel} BuildRequires: xfconf-devel %endif Source0: http://imsettings.googlecode.com/files/%{name}-%{version}.tar.bz2 Patch0: imsettings-constraint-of-language.patch Patch1: imsettings-disable-xim.patch Patch2: imsettings-xinput-xcompose.patch Patch3: imsettings-updates-po.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: imsettings-desktop-module = %{version}-%{release} Requires(post): /bin/dbus-send %{_sbindir}/alternatives 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.26.0 %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 xim Summary: XIM support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: im-chooser %description xim 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 module to get this working with XIM. %package gnome Summary: GNOME support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: im-chooser dconf Provides: imsettings-desktop-module = %{version}-%{release} %description gnome 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 module to get this working on GNOME. %package qt Summary: Qt support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: im-chooser Provides: imsettings-desktop-module = %{version}-%{release} %description qt 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 module to get this working on Qt applications. %if !0%{?rhel} %package xfce Summary: Xfce support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: im-chooser Requires: xfce4-settings >= 4.5.99.1-2 Provides: imsettings-desktop-module = %{version}-%{release} %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 module to get this working on Xfce. %package lxde Summary: LXDE support on imsettings Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: lxde-settings-daemon # Hack for upgrades: see https://bugzilla.redhat.com/show_bug.cgi?id=693809 Requires: lxsession Requires: /usr/bin/lxsession Provides: imsettings-desktop-module = %{version}-%{release} %description lxde 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 module to get this working on LXDE. %endif %prep %setup -q %patch0 -p1 -b .0-lang %patch1 -p1 -b .1-xim %patch2 -p1 -b .2-xcompose %patch3 -p1 -b .3-update-po %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}/imsettings/*.la %if 0%{?rhel} rm -f $RPM_BUILD_ROOT%{_libdir}/imsettings/libimsettings-{lxde,xfce}.so %endif %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post 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/xcompose.conf 20 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 || : %postun if [ "$1" = 0 ]; then alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xcompose.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 %dir %{_libdir}/imsettings %{_bindir}/imsettings-check %{_bindir}/imsettings-info %{_bindir}/imsettings-list %{_bindir}/imsettings-reload %{_bindir}/imsettings-switch %{_libexecdir}/imsettings-daemon %{_libexecdir}/xinputinfo.sh %{_datadir}/dbus-1/services/*.service %{_datadir}/pixmaps/*.png %{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh %{_sysconfdir}/X11/xinit/xinput.d %{_sysconfdir}/xdg/autostart/imsettings-start.desktop %files libs %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/libimsettings.so.* %files devel %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_includedir}/imsettings %{_libdir}/libimsettings.so %{_libdir}/pkgconfig/imsettings.pc %{_libdir}/girepository-*/IMSettings-*.typelib %{_datadir}/gir-*/IMSettings-*.gir %{_datadir}/gtk-doc/html/imsettings %files xim %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/imsettings-xim %{_libdir}/imsettings/libimsettings-xim.so %files gnome %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-gsettings.so %files qt %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-qt.so %if !0%{?rhel} %files xfce %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-xfce.so %files lxde %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_libdir}/imsettings/libimsettings-lxde.so %endif %changelog * Mon Mar 19 2012 Akira TAGOH - 1.2.8.1-1 - New upstream release. * Fri Mar 2 2012 Akira TAGOH - 1.2.8-2 - Update po files. * Fri Feb 10 2012 Akira TAGOH - 1.2.8-1 - New upstream release. - would possibly fix crash issues. (#772342, #766125, #757443, #740175, #720891) * Mon Jan 23 2012 Akira TAGOH - 1.2.7.1-1 - New upstream release. * Thu Jan 19 2012 Akira TAGOH - 1.2.7-1 - New upstream release. * Fri Jan 13 2012 Fedora Release Engineering - 1.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 16 2011 Akira TAGOH - 1.2.6-1 - New upstream release. * Tue Oct 11 2011 Akira TAGOH - 1.2.5-3 - Own %%{_libdir}/imsettings. (#744892) * Tue Oct 4 2011 Akira TAGOH - 1.2.5-2 - Add Requires: dconf to imsettings-gnome to ensure it works on KDE. (#742910) * Fri Sep 9 2011 Akira TAGOH - 1.2.5-1 - New upstream release. * Wed Jul 13 2011 Akira TAGOH - 1.2.4-1 - New upstream release. - Fix taking CPU load after killing IM process. (#718092) * Tue May 31 2011 Akira TAGOH - 1.2.3-1 - New upstream release. - Set some environment variables explicitly to avoid IM not working in some cases. (#700513) - Fix an abort issue. (#701431) - Support the latest LXDE. - Get rid of Qt dependency. * Tue May 10 2011 Bill Nottingham - 1.2.2-3 - further hacks for imsettings upgrades (#693809) * Tue May 10 2011 Akira TAGOH - 1.2.2-2 - Revert the dependency of im-chooser (#693809) * Tue Apr 26 2011 Akira TAGOH - 1.2.2-1 - New upstream release. - Fix an issue keeping alive the defunct process. - Stop a notification when no backend modules available. (#693809) - Better handling of detecting the supported toolkits/desktops. * Thu Apr 21 2011 Christopher Aillon - 1.2.1-2 - Bring in the correct desktop IM module (#693809) * Wed Mar 30 2011 Akira TAGOH - 1.2.1-1 - New upstream release. * Mon Feb 14 2011 Akira TAGOH - 1.2.0-1 - New upstream release. - Improve a performance. (#676813) - Do not update .xinputrc if -n option to imsettings-switch is given. - Stop the daemon process with the certain methods. * Wed Feb 09 2011 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Feb 3 2011 Akira TAGOH - 1.1.0-2 - Get rid of the debugging code to avoid the unnecessary warning. * Wed Feb 2 2011 Akira TAGOH - 1.1.0-1 - New upstream release. - Add GNOME3 support. * Mon Jan 31 2011 Akira TAGOH - 1.0.1-1 - New upstream release. - Fix an abort issue. (#670263) * Wed Jan 5 2011 Akira TAGOH - 1.0.0-1 - New upstream release. - fix a locale handling (#526205) * Thu Nov 4 2010 Akira TAGOH - 0.108.1-4 - Fix the build fail in the LXDE backend. * Wed Nov 3 2010 Matthias Clasen - rebuild against libnotify 0.7.0 (#649063) * Thu Aug 19 2010 Jens Petersen - add also am_ET, el_GR, and ru_RU to X compose lang list (#623931) * Tue Aug 10 2010 Jens Petersen - 0.108.1-2 - only enable XIM for X locale compose for necessary locales (#623931) (so far pt_BR and fi_FI): - drop imsettings-none.conf-gtk-xim-default.patch - add imsettings-xinput-xcompose.patch * Mon Aug 2 2010 Akira TAGOH - 0.108.1-1 - New upstream release. - Fix a crash with imsettings-lxde-helper. (#603582) - cleanup the unnecessary patches. * Thu Jun 24 2010 Akira TAGOH - 0.108.0-4 - Fix a segfault. (#599924) * Tue May 18 2010 Akira TAGOH - 0.108.0-3 - Don't restart the IM process when the exit status is 0. * Thu Apr 15 2010 Akira TAGOH - 0.108.0-2 - Fix issue the invocation of IM always fails in the internal status. (#582448) - Add imsettings-lxde subpackage. * Tue Mar 23 2010 Akira TAGOH - 0.108.0-1 - New upstream release. - Fix the abort issue. (#570462) - clean up the unnecessary patches. * Tue Feb 16 2010 Akira TAGOH - 0.107.4-8 - Fix a segfault issue when /bin/sh points to non-bash shell. (#553680) * Tue Feb 9 2010 Akira TAGOH - 0.107.4-7 - Add -lX11 to avoid DSO issue. * Fri Feb 5 2010 Akira TAGOH - 0.107.4-6 - Fix an abort issue on GConf backend. (#543005) * Mon Jan 4 2010 Akira TAGOH - 0.107.4-5 - Fix an abort issue. (#530357) * Tue Nov 24 2009 Akira TAGOH - 0.107.4-4 - Fix a segfault issue on XFCE desktop. (#540062) * Mon Nov 2 2009 Jens Petersen - 0.107.4-3 - none.conf: default GTK to xim if available like qt does to fix current missing X locale compose for gtk and X (#505100) * Fri Oct 16 2009 Akira TAGOH - 0.107.4-2 - Run IM for Maithili by default. (#529144) * Mon Sep 28 2009 Akira TAGOH - 0.107.4-1 - New upstream release. - Update the translations. - Remove the unnecessary patches: - imsettings-unref-notify.patch - imsettings-unref-later.patch - imsettings-update-info.patch - imsettings-close-fd.patch * Thu Sep 17 2009 Akira TAGOH - 0.107.3-5 - Fix taking too much CPU issue. * Tue Sep 15 2009 Akira TAGOH - 0.107.3-4 - Update the IM information as needed if the configuration file is written in the script. (#523349) * Fri Sep 11 2009 Akira TAGOH - 0.107.3-3 - Fix keeping IM process running as the defunct process. (#522689) * Tue Sep 8 2009 Akira TAGOH - 0.107.3-2 - Fix aborting after dbus session closed. (#520976) * Tue Sep 1 2009 Akira TAGOH - 0.107.3-1 - New upstream release. - Fix taking CPU load after switching IM. - Fix getting stuck after starting some IM. * Mon Aug 31 2009 Akira TAGOH - Add a conditional build to disable xfce module for RHEL. * Thu Aug 27 2009 Akira TAGOH - 0.107.2-1 - New upstream release. - Stop IM process properly with the DBus disconnect signal. (#518970) - Update the translation. (#517679) * Fri Aug 14 2009 Akira TAGOH - 0.107.1-2 - export the certain environment variables. * Fri Aug 14 2009 Akira TAGOH - 0.107.1-1 - New upstream release. - Fix memory leaks. * Wed Aug 12 2009 Akira TAGOH - 0.107.0-1 - New upstream release. - Pop up an error if failed to invoke IM. (#497946) - Fix the duplicate recommendation message issue. (#514852) * Thu Jul 27 2009 Akira TAGOH - 0.106.2-5 - Support immodule only configuration file. * Fri Jul 24 2009 Fedora Release Engineering - 0.106.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Jul 23 2009 Akira TAGOH - 0.106.2-3 - Support immodule only configuration file. * Mon Apr 13 2009 Akira TAGOH - 0.106.2-2 - Disable applet by default. * Tue Apr 7 2009 Akira TAGOH - 0.106.2-1 - New upstream release. - Fix a freeze issue on X applications with switching IM (#488877) - Fix a segfault issue with switching IM (#488899) - Fix not creating .xinputrc with disabiling IM first time (#490587) - Invoke IM for certain locales. (#493406) * Wed Mar 18 2009 Akira TAGOH - 0.106.1-2 - Fix XIM-related issues. - Fix a parser error during reading Compose data. (#484142) - Get rid of more debugging messages. * Tue Mar 10 2009 Akira TAGOH - 0.106.1-1 - New upstream release. - Fix a double-free issue. (#485595) - Workaround to get the accelerator keys working on X apps. (#488713) - Get rid of debugging messages (#489119) * Mon Feb 23 2009 Akira TAGOH - 0.106.0-1 - New upstream release. - Fix a parser error for Compose data. (#484142) - Allow a lowername or .conf name for IM name. (#471833) - Add Xfconf support. (#478669) - Remove unnecessary autostart files anymore. (#475907) * 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.