Name: WritRecogn Version: 0.1.1 Release: 4%{?dist} Summary: Handwriting recognizer for CJK characters Group: System Environment/Libraries License: GPLv2+ URL: http://sourceforge.net/projects/writrecogn Source0: http://downloads.sourceforge.net/writrecogn/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel >= 2.10 libxml2-devel >= 2.6 sqlite-devel >= 3.0 libtool >= 1.5 BuildRequires: desktop-file-utils Summary(zh_TW): WritRecogn 中日韓手寫輸入 %description writRecogn recognizes East Asian handwritten characters for Chinese, Japanese, and Korean (CJK). Unlike some implementations which require to build a huge set of character recognition rules, we recognize radicals of Chinese characters, i.e. the word root of the character,then use a character-structure-based input method to search for the word. This saves us from writing recognition rules for tens of thousands of CJK characters. This should provide better recognition accuracy than current open source handwriting recognition libraries. %description -l zh_TW writrecogn 能夠辨識中日韓等東亞語言的手寫輸入。日後將提供 SCIM 支援。 %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f ${RPM_BUILD_ROOT}%{_libdir}/%{name}/libWritRecogn.la desktop-file-install --delete-original --vendor=fedora \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ ${RPM_BUILD_ROOT}/%{_datadir}/applications/WritRecogn.desktop %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog %{_bindir}/WritRecogn %{_bindir}/WritRecogn-manager %{_libdir}/%{name} %{_datadir}/%{name} %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/applications/fedora-%{name}.desktop %changelog * Thu Feb 26 2008 Ding-Yi Chen - 0.1.1-4 - Update icon cache when installing or unstalling * Thu Feb 26 2008 Ding-Yi Chen - 0.1.1-3 - Add a desktop file [Bug 434954] - Own datadir directory * Thu Feb 26 2008 Ding-Yi Chen - 0.1.1-2 - Fix formatting of description [Bug 434954] * Wed Feb 26 2008 Ding-Yi Chen - 0.1.1-1 - Review cleanup [Bug 434954] * Tue Feb 26 2008 Ding-Yi Chen - 0.1.1-0 - Initial packaging * Mon Jan 21 2008 Ding-Yi Chen - 0.1 - Start from May 07 2007 Ding-Yi Chen - Project begin - GObjectize RawCharacter, RawStroke, CharacterMatcher, StrokeRecognizer, StrokeNoiseReducer - SQLite backend - Can import from SCIM Tomoe XML data base. - Initial packaging