rpms/scim-anthy/FC-4 scim-anthy.spec,1.9,1.10

Ryo Dairiki (ryo) fedora-extras-commits at redhat.com
Fri Jul 29 14:31:29 UTC 2005


Author: ryo

Update of /cvs/extras/rpms/scim-anthy/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30963

Modified Files:
	scim-anthy.spec 
Log Message:
Add xinput-scim entry



Index: scim-anthy.spec
===================================================================
RCS file: /cvs/extras/rpms/scim-anthy/FC-4/scim-anthy.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- scim-anthy.spec	29 Jul 2005 11:07:14 -0000	1.9
+++ scim-anthy.spec	29 Jul 2005 14:31:26 -0000	1.10
@@ -9,6 +9,7 @@
 Source0:        http://sourceforge.jp/projects/scim-imengine/files/%{name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Provides:       scim-ja_JP
 Requires:       anthy
 BuildRequires:  scim-devel anthy-devel
 
@@ -38,6 +39,23 @@
 rm -rf $RPM_BUILD_ROOT
 
 
+%post
+%{_sbindir}/alternatives --install /etc/X11/xinit/xinput.d/ja_JP xinput-ja_JP /etc/X11/xinit/xinput.d/scim 90
+
+
+%postun
+if [ "$1" = 0 ]
+then
+	if ! rpm -q --whatprovides scim-ja_JP
+	then
+		%{_sbindir}/alternatives --remove xinput-ja_JP /etc/X11/xinit/xinput.d/scim
+		if [ `readlink %{_sysconfdir}/alternatives/xinput-ja_JP` = "%{_sysconfdir}/X11/xinit/xinput.d/scim" ]
+		then
+			%{_sbindir}/alternatives --auto xinput-ja_JP
+		fi
+	fi
+fi
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README TODO
@@ -48,6 +66,7 @@
 %changelog
 * Fri Jul 29 2005 Jens Petersen <petersen at redhat.com> - 0.5.3-1
 - update to 0.5.3 release
+- add xinput-scim entry (Ryo Diairki)
 
 * Tue Jul 26 2005 Ryo Dairiki <ryo-dairiki at mbm.nifty.com> - 0.5.2-1
 - update to 0.5.2 release




More information about the fedora-extras-commits mailing list