rpms/uim/devel xinput.d-uim, NONE, 1.1 .cvsignore, 1.4, 1.5 uim.spec, 1.3, 1.4

Akira Tagoh (tagoh) fedora-extras-commits at redhat.com
Thu Feb 24 05:39:48 UTC 2005


Author: tagoh

Update of /cvs/extras/rpms/uim/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6882

Modified Files:
	.cvsignore uim.spec 
Added Files:
	xinput.d-uim 
Log Message:
* added xinput script support.


--- NEW FILE xinput.d-uim ---
XIM=uim
XIM_PROGRAM=uim-xim
GTK_IM_MODULE=uim


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/uim/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	24 Feb 2005 04:51:20 -0000	1.4
+++ .cvsignore	24 Feb 2005 05:39:46 -0000	1.5
@@ -1,3 +1,6 @@
+*.gz
+*.bz2
+*.rpm
 uim-0.4.5.tar.gz
 uim-0.4.5-autoreconf.patch.bz2
 uim-0.4.5.1.tar.gz


Index: uim.spec
===================================================================
RCS file: /cvs/extras/rpms/uim/devel/uim.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- uim.spec	24 Feb 2005 04:51:20 -0000	1.3
+++ uim.spec	24 Feb 2005 05:39:46 -0000	1.4
@@ -1,3 +1,7 @@
+%define uim_locale ja_JP ko_KR vi_VN zh_CN zh_TW
+%define inst_xinput for llcc in %{uim_locale}; do alternatives --install %{_sysconfdir}/X11/xinit/xinput.d/$llcc xinput-$llcc %{_sysconfdir}/X11/xinit/xinput.d/uim 50 ; done
+%define uninst_xinput for llcc in %{uim_locale}; do alternatives --remove xinput-$llcc %{_sysconfdir}/X11/xinit/xinput.d/uim ; done
+
 Summary:	A multilingual input method library
 Name:		uim
 Version:	0.4.5.1
@@ -6,9 +10,11 @@
 Group:		System Environment/Libraries
 URL:		http://freedesktop.org/Software/uim
 Source0:	http://freedesktop.org/Software/UimDownload/%{name}-%{version}.tar.gz
+Source1:	xinput.d-uim
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 BuildRequires:	gtk2-devel
 BuildRequires:	gnome-panel-devel
+Requires(post,postun): %{_sbindir}/alternatives
 
 %package	devel
 Summary:	Development files for the Uim library
@@ -117,6 +123,9 @@
 
 %makeinstall
 
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/uim
+
 %find_lang %{name}
 
 find $RPM_BUILD_ROOT -name "*.scm" -type f | egrep -v "(anthy|canna|skk|uim-sh)" > scm.list
@@ -130,9 +139,11 @@
 
 %post
 /sbin/ldconfig
+%{inst_xinput}
 
 %postun
 /sbin/ldconfig
+%{uninst_xinput}
 
 %post gtk2
 umask 022
@@ -190,6 +201,7 @@
 %{_libdir}/lib*.so.*
 %dir %{_datadir}/uim
 %{_datadir}/uim/tables
+%{_sysconfdir}/X11/xinit/xinput.d
 
 %files	devel
 %defattr (-, root, root)
@@ -239,6 +251,7 @@
 * Thu Feb 24 2005 Akira TAGOH <tagoh at redhat.com> - 0.4.5.1-1
 - New upstream release.
   - security fix.
+- support xinput script.
 
 * Sun Feb 20 2005 Thorsten Leemhuis <fedora[AT]leemhuis[dot]info 0.4.5-2
 - Added autoreconf-patch; fixes build on x86_64




More information about the fedora-extras-commits mailing list