packages: iok/iok-fix-non-standard-keymap-path.patch (NEW), iok/iok.spec (N...
baggins
baggins at pld-linux.org
Wed Jul 20 13:02:55 CEST 2011
Author: baggins Date: Wed Jul 20 11:02:55 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
packages/iok:
iok-fix-non-standard-keymap-path.patch (NONE -> 1.1) (NEW), iok.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/iok/iok-fix-non-standard-keymap-path.patch
diff -u /dev/null packages/iok/iok-fix-non-standard-keymap-path.patch:1.1
--- /dev/null Wed Jul 20 13:02:55 2011
+++ packages/iok/iok-fix-non-standard-keymap-path.patch Wed Jul 20 13:02:50 2011
@@ -0,0 +1,49 @@
+Index: src/interface.c
+===================================================================
+--- src/interface.c (revision 171)
++++ src/interface.c (working copy)
+@@ -1395,7 +1395,7 @@
+ {
+ home_dir=getenv("HOME");
+ strcpy(hfile_path,home_dir);
+- strcat(hfile_path,"/.m17n/");
++ strcat(hfile_path,"/.m17n.d/");
+ strncat(hfile_path,mfile,strlen(mfile));
+ strcat(hfile_path,".mim");
+
+@@ -1791,7 +1791,7 @@
+ cnt=0;
+ home_dir=getenv("HOME");
+ strcpy(custom_dir_path,home_dir);
+- strcat(custom_dir_path,"/.m17n/");
++ strcat(custom_dir_path,"/.m17n.d/");
+
+ n = scandir(custom_dir_path, &namelist, 0, alphasort);
+ if (n < 0)
+@@ -2736,7 +2736,7 @@
+ lc=get_iso_code(current_mim);
+ sprintf(imname,"(input-method %s %s-inscript)\n\n",lc,filenameprefix);
+ strcpy(hdirpath,home_dir);
+- strcat(hdirpath,"/.m17n/");
++ strcat(hdirpath,"/.m17n.d/");
+
+ if ( stat (hdirpath , &buf ) != 0 )
+ {
+@@ -2747,7 +2747,7 @@
+
+ }
+
+- sprintf(nfilepath,"%s/.m17n/%s-%s-inscript.mim",home_dir,lc,filenameprefix);
++ sprintf(nfilepath,"%s/.m17n.d/%s-%s-inscript.mim",home_dir,lc,filenameprefix);
+ nfilepath[strlen(nfilepath)]='\0';
+ fpm = fopen(nfilepath, "w+");
+
+@@ -2904,7 +2904,7 @@
+
+ home_dir=getenv("HOME");
+ strcpy(sdirpath,home_dir);
+- strcat(sdirpath,"/.m17n/");
++ strcat(sdirpath,"/.m17n.d/");
+
+ if ( stat (sdirpath , &buf ) != 0 )
+ {
================================================================
Index: packages/iok/iok.spec
diff -u /dev/null packages/iok/iok.spec:1.1
--- /dev/null Wed Jul 20 13:02:55 2011
+++ packages/iok/iok.spec Wed Jul 20 13:02:50 2011
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+Summary: Indic Onscreen Virtual Keyboard
+Name: iok
+Version: 1.3.12
+Release: 1
+License: GPL v2+
+Group: Applications/System
+URL: http://iok.sourceforge.net
+Source0: https://fedorahosted.org/releases/i/o/iok/%{name}-%{version}.tar.gz
+# Source0-md5: 872c12f7c08764ae978efa3fa234f7e9
+Patch0: %{name}-1.3.12-fix-non-standard-keymap-path.patch
+BuildRequires: gettext
+BuildRequires: gtk+2-devel
+BuildRequires: intltool
+BuildRequires: libxml2-devel
+BuildRequires: libunique-devel
+BuildRequires: xorg-lib-libXtst-devel
+Requires: xkeyboard-config
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+iok is Indic Onscreen Keyboard. It provides virtual Keyboard
+functionality. It currently works with Inscript and xkb keymaps for
+Indian languages. iok can even try to parse non-inscript keymaps and
+show them in iok.
+
+%prep
+%setup -q
+%patch0 -p0
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc COPYING AUTHORS ChangeLog README
+%attr(755,root,root) %{_bindir}/iok
+%{_desktopdir}/fedora-iok.desktop
+%{_pixmapsdir}/iok.xpm
+%{_mandir}/man1/iok.1*
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/20 11:02:50 baggins
+- initial revision
+
================================================================
More information about the pld-cvs-commit
mailing list