packages: ibus-indic-table/ibus-indic-table-rhbz-683739.patch (NEW), ibus-i...

baggins baggins at pld-linux.org
Fri Jul 22 10:53:51 CEST 2011


Author: baggins                      Date: Fri Jul 22 08:53:51 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ibus-indic-table:
   ibus-indic-table-rhbz-683739.patch (NONE -> 1.1)  (NEW), ibus-indic-table-rhbz-703124.patch (NONE -> 1.1)  (NEW), ibus-indic-table.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ibus-indic-table/ibus-indic-table-rhbz-683739.patch
diff -u /dev/null packages/ibus-indic-table/ibus-indic-table-rhbz-683739.patch:1.1
--- /dev/null	Fri Jul 22 10:53:51 2011
+++ packages/ibus-indic-table/ibus-indic-table-rhbz-683739.patch	Fri Jul 22 10:53:46 2011
@@ -0,0 +1,16 @@
+diff -uNr ibus-indic-table-1.3.1/engine/tabcreatedb.py ibus-indic-table-1.3.1modified/engine/tabcreatedb.py
+--- ibus-indic-table-1.3.1/engine/tabcreatedb.py	2011-03-08 16:13:25.000000000 +0530
++++ ibus-indic-table-1.3.1modified/engine/tabcreatedb.py	2011-03-14 16:43:42.966279000 +0530
+@@ -172,7 +172,11 @@
+     def attribute_parser (f):
+         for l in f:
+             try:
+-                attr,val = unicode (l,"utf-8").strip().split ('=')
++                if len(unicode (l,"utf-8").strip().split ('='))==3:
++                    attr, val, dum = unicode (l,"utf-8").strip().split ('=')
++                    val=''.join([val,"=",dum])
++                else:
++                    attr,val = unicode (l,"utf-8").strip().split ('=')
+             except:
+                 attr,val = unicode (l,"utf-8").strip().split ('==')
+             attr = attr.strip()

================================================================
Index: packages/ibus-indic-table/ibus-indic-table-rhbz-703124.patch
diff -u /dev/null packages/ibus-indic-table/ibus-indic-table-rhbz-703124.patch:1.1
--- /dev/null	Fri Jul 22 10:53:51 2011
+++ packages/ibus-indic-table/ibus-indic-table-rhbz-703124.patch	Fri Jul 22 10:53:46 2011
@@ -0,0 +1,13 @@
+diff -rup ibus-indic-table-1.3.1/engine/tabsqlitedb.py ibus-indic-table-1.3.1_mod/engine/tabsqlitedb.py
+--- ibus-indic-table-1.3.1/engine/tabsqlitedb.py	2011-03-08 16:13:25.000000000 +0530
++++ ibus-indic-table-1.3.1_mod/engine/tabsqlitedb.py	2011-05-09 16:44:04.695463674 +0530
+@@ -678,7 +678,7 @@ class tabsqlitedb:
+             SELECT * FROM user_db.phrases WHERE mlen < %(mk)d %(condition)s 
+             UNION ALL
+             SELECT * FROM mudb.phrases WHERE mlen < %(mk)d %(condition)s )
+-            ORDER BY user_freq DESC, freq DESC, id ASC, mlen ASC limit 100;''' % { 'mk':_len+x_len, 'condition':_condition}
++            ORDER BY user_freq DESC, freq DESC, id ASC, mlen ASC limit 42;''' % { 'mk':_len+x_len, 'condition':_condition}
+             # we have redefine the __int__(self) in class tabdict.tab_key to return the key id, so we can use map to got key id :)
+             _tabkeys = map(int,tabkeys[:_len])
+             _tabkeys += _tabkeys + _tabkeys
+Only in ibus-indic-table-1.3.1_mod/engine: tabsqlitedb.py~

================================================================
Index: packages/ibus-indic-table/ibus-indic-table.spec
diff -u /dev/null packages/ibus-indic-table/ibus-indic-table.spec:1.1
--- /dev/null	Fri Jul 22 10:53:51 2011
+++ packages/ibus-indic-table/ibus-indic-table.spec	Fri Jul 22 10:53:46 2011
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+Summary:	The Table engine for IBus platform
+Name:		ibus-indic-table
+Version:	1.3.1
+Release:	0.1
+License:	LGPL v2+
+Group:		Libraries
+Source0:	http://fedorapeople.org/~nkumar/ibus-indic-table/ibus-indic-table-1.3.1/%{name}-%{version}.tar.gz
+# Source0-md5:	9ed4e163b6a877193571943d62542b28
+URL:		http://code.google.com/p/ibus/
+Patch0:		%{name}-rhbz-683739.patch
+Patch1:		%{name}-rhbz-703124.patch
+BuildRequires:	ibus-devel
+Requires:	ibus
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_libexecdir	%{_libdir}/ibus
+
+%description
+The Indic Table engine for IBus platform.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure \
+	--disable-additional
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	pkgconfigdir=%{_npkgconfigdir}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS README ChangeLog
+%attr(755,root,root) %{_bindir}/%{name}-createdb
+%attr(755,root,root) %{_libexecdir}/ibus-engine-indic-table
+%{_datadir}/ibus/component/indic-table.xml
+%{_datadir}/%{name}
+%{_npkgconfigdir}/%{name}.pc
+
+%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/22 08:53:46  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list