[1183] | 1 | Summary: Online handwriting recognition system with machine learning |
---|
| 2 | Summary: 機械学習ベースのポータブルなオンライン手書き文字認識エンジン |
---|
| 3 | Name: zinnia |
---|
| 4 | Version: 0.06 |
---|
[5701] | 5 | Release: 4%{?_dist_release} |
---|
[1183] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: BSD |
---|
| 8 | URL: http://zinnia.sourceforge.net/ |
---|
| 9 | Source0: http://downloads.sourceforge.net/zinnia/%{name}-%{version}.tar.gz |
---|
| 10 | Source1: http://zinnia.svn.sourceforge.net/viewvc/zinnia/zinnia/tomoe2s.pl |
---|
| 11 | Source2: Makefile.tomoe |
---|
| 12 | Patch0: zinnia-0.05-bindings.patch |
---|
| 13 | Patch1: zinnia-0.06-fixes-ppc-float.patch |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 15 | BuildRequires: db4-devel, python-devel |
---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 17 | BuildRequires: tomoe |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Zinnia provides a simple, customizable, and portable dynamic OCR |
---|
| 21 | system for hand-written input, based on Support Vector Machines. |
---|
| 22 | |
---|
| 23 | Zinnia simply receives user pen strokes as coordinate data and outputs |
---|
| 24 | the best matching characters sorted by SVM confidence. To maintain |
---|
| 25 | portability, it has no rendering functionality. In addition to |
---|
| 26 | recognition, Zinnia provides a training module capable of creating |
---|
| 27 | highly efficient handwriting recognition models. |
---|
| 28 | |
---|
| 29 | This package contains the shared libraries. |
---|
| 30 | |
---|
| 31 | %description -l ja |
---|
| 32 | Zinniaは機械学習アルゴリズム SVM を用いたポータブルで汎用的なオンライン手書き文字認識 |
---|
| 33 | エンジンです。Zinniaは組み込みの容易さと汎用性を高めるために、文字のレンダリング機能は |
---|
| 34 | 持っていません。Zinniaは文字のストローク情報を座標の連続として受け取り、確からしい順に |
---|
| 35 | スコア付きでN文字の認識結果を返すだけに機能を限定しています。また、認識エンジンは完全に |
---|
| 36 | 機械学習ベースであるために、文字のみならずユーザの任意のマウス・ペンストロークに対して |
---|
| 37 | 任意の文字列をマッピングするような認識エンジンを小コスト作成することができます。 |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development files for %{name} |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | Requires: %{name} = %{version}-%{release} |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | The %{name}-devel package contains libraries and header files for |
---|
| 46 | developing applications that use %{name}. |
---|
| 47 | |
---|
| 48 | %package utils |
---|
| 49 | Summary: Utils for the zinnia library |
---|
| 50 | Group: Applications/System |
---|
| 51 | Requires: %{name} = %{version}-%{release} |
---|
| 52 | |
---|
| 53 | %description utils |
---|
| 54 | The %{name}-utils package provides utilities for zinnia library that |
---|
| 55 | use %{name}. |
---|
| 56 | |
---|
| 57 | %package doc |
---|
| 58 | Summary: Documents for the zinnia library |
---|
| 59 | Group: Development/Libraries |
---|
| 60 | Requires: %{name} = %{version}-%{release} |
---|
| 61 | #BuildArch: noarch |
---|
| 62 | |
---|
| 63 | %description doc |
---|
| 64 | The %{name}-doc package provide documents for zinnia library that |
---|
| 65 | use %{name}. |
---|
| 66 | |
---|
| 67 | %package perl |
---|
| 68 | Summary: Perl bindings for %name |
---|
| 69 | Group: Development/Libraries |
---|
| 70 | Requires: %{name} = %{version}-%{release} |
---|
| 71 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %description perl |
---|
| 75 | This package contains perl bindings for %{name}. |
---|
| 76 | |
---|
| 77 | %package python |
---|
| 78 | Summary: Python bindings for %{name} |
---|
| 79 | Group: Development/Libraries |
---|
| 80 | Requires: %{name} = %{version}-%{release} |
---|
| 81 | Provides: tegaki-recognition-engine |
---|
| 82 | |
---|
| 83 | %description python |
---|
| 84 | This package contains python bindings for %{name}. |
---|
| 85 | |
---|
| 86 | %package tomoe |
---|
| 87 | Summary: Tomoe Ja model file for %{name} |
---|
| 88 | Group: System Environment/Libraries |
---|
| 89 | Requires: %{name} = %{version}-%{release} |
---|
| 90 | Provides: %{name}-model |
---|
| 91 | Provides: %{name}-tomoe-ja |
---|
| 92 | #BuildArch: noarch |
---|
| 93 | |
---|
| 94 | %description tomoe |
---|
| 95 | This package contains tomoe Ja model files for %{name}. |
---|
| 96 | |
---|
| 97 | %package tomoe-zh_CN |
---|
| 98 | Summary: Tomoe model zh_CN file for %{name} |
---|
| 99 | Group: System Environment/Libraries |
---|
| 100 | Requires: %{name} = %{version}-%{release} |
---|
| 101 | Provides: %{name}-model |
---|
| 102 | #BuildArch: noarch |
---|
| 103 | |
---|
| 104 | %description tomoe-zh_CN |
---|
| 105 | This package contains tomoe zh_CN model files for %{name}. |
---|
| 106 | |
---|
| 107 | %prep |
---|
| 108 | %setup -q -n %{name}-%{version} |
---|
| 109 | %patch0 -p1 -b .bindings |
---|
| 110 | %patch1 -p1 -b .ppc |
---|
| 111 | find . -type f -name ChangeLog -size 0c -exec rm -f {} ';' |
---|
| 112 | find . -type f -name "*.pyc" -exec rm -f {} ';' |
---|
| 113 | cp %{SOURCE1} . |
---|
| 114 | cp %{SOURCE2} . |
---|
| 115 | pushd doc |
---|
| 116 | iconv -f latin1 -t utf8 zinnia.css > zinnia.css.bak |
---|
| 117 | mv -f zinnia.css.bak zinnia.css |
---|
| 118 | popd |
---|
| 119 | |
---|
| 120 | %build |
---|
| 121 | %configure --disable-static |
---|
| 122 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 123 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 124 | make %{?_smp_mflags} |
---|
| 125 | make -f Makefile.tomoe build |
---|
| 126 | |
---|
| 127 | pushd perl |
---|
| 128 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 129 | make %{?_smp_mflags} |
---|
| 130 | popd |
---|
| 131 | |
---|
| 132 | pushd python |
---|
| 133 | CFLAGS="$RPM_OPT_FLAGS -I../" LDFLAGS="-L../.libs" python setup.py build |
---|
| 134 | popd |
---|
| 135 | |
---|
| 136 | %install |
---|
| 137 | rm -rf $RPM_BUILD_ROOT |
---|
| 138 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 139 | make -f Makefile.tomoe install DESTDIR=$RPM_BUILD_ROOT |
---|
| 140 | |
---|
| 141 | #install -d -m 0755 -p $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
| 142 | #cp -pfr doc $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
| 143 | |
---|
| 144 | pushd perl |
---|
| 145 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
| 146 | popd |
---|
| 147 | |
---|
| 148 | pushd python |
---|
| 149 | python setup.py install --root $RPM_BUILD_ROOT |
---|
| 150 | pushd |
---|
| 151 | |
---|
| 152 | #remove something unnecessary |
---|
| 153 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
| 154 | find $RPM_BUILD_ROOT -type f -name "*.bs" -size 0c -exec rm -f {} ';' |
---|
| 155 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
| 156 | |
---|
| 157 | #change the privilege of some files |
---|
| 158 | chmod 0755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{name}/%{name}.so |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | %clean |
---|
| 162 | rm -rf $RPM_BUILD_ROOT |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | %post -p /sbin/ldconfig |
---|
| 166 | |
---|
| 167 | %postun -p /sbin/ldconfig |
---|
| 168 | |
---|
| 169 | |
---|
| 170 | %files |
---|
| 171 | %defattr(-,root,root,-) |
---|
| 172 | %doc README COPYING |
---|
| 173 | %{_libdir}/*.so.* |
---|
| 174 | |
---|
| 175 | %files devel |
---|
| 176 | %defattr(-,root,root,-) |
---|
| 177 | %{_includedir}/* |
---|
| 178 | %{_libdir}/lib%{name}.so |
---|
| 179 | |
---|
| 180 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 181 | |
---|
| 182 | %files utils |
---|
| 183 | %defattr(-,root,root,-) |
---|
| 184 | %{_bindir}/zinnia |
---|
| 185 | %{_bindir}/zinnia_convert |
---|
| 186 | %{_bindir}/zinnia_learn |
---|
| 187 | |
---|
| 188 | %files doc |
---|
| 189 | %defattr(-,root,root,-) |
---|
| 190 | %doc doc/* |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | %files perl |
---|
| 194 | %defattr(-,root,root,-) |
---|
| 195 | %{perl_vendorarch}/auto/%{name}/ |
---|
| 196 | %{perl_vendorarch}/%{name}.pm |
---|
| 197 | |
---|
| 198 | %files python |
---|
| 199 | %defattr(-,root,root,-) |
---|
| 200 | %{python_sitearch}/_%{name}.so |
---|
| 201 | %{python_sitearch}/%{name}* |
---|
| 202 | |
---|
| 203 | %files tomoe |
---|
| 204 | %defattr(-,root,root,-) |
---|
| 205 | %dir %{_datadir}/zinnia/model/tomoe/ |
---|
| 206 | %{_datadir}/zinnia/model/tomoe/handwriting-ja.model |
---|
| 207 | |
---|
| 208 | %files tomoe-zh_CN |
---|
| 209 | %defattr(-,root,root,-) |
---|
| 210 | %dir %{_datadir}/zinnia/model/tomoe/ |
---|
| 211 | %{_datadir}/zinnia/model/tomoe/handwriting-zh_CN.model |
---|
| 212 | |
---|
| 213 | %changelog |
---|
[5701] | 214 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.06-4 |
---|
| 215 | - rebuild with python-2.7.2 |
---|
| 216 | |
---|
[3279] | 217 | * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 0.06-3vl6 |
---|
| 218 | - build with perl 5.12.3 |
---|
| 219 | |
---|
[1901] | 220 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.06-2 |
---|
| 221 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 222 | |
---|
[1183] | 223 | * Tue Jun 8 2010 IWAI, Masaharu <iwai@alib.jp> 0.06-1 |
---|
| 224 | - initial build for Vine Linux |
---|
| 225 | |
---|
| 226 | * Fri Jun 04 2010 Peng Wu <pwu@redhat.com> - 0.06-4 |
---|
| 227 | - Add a patch(zinnia-0.06-fixes-ppc-float.patch), |
---|
| 228 | to fixes ppc/ppc64 zinnia tomoe model generating error. |
---|
| 229 | |
---|
| 230 | * Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-3 |
---|
| 231 | - Mass rebuild with perl-5.12.0 |
---|
| 232 | |
---|
| 233 | * Thu May 20 2010 Peng Wu <pwu@redhat.com> - 0.06-2 |
---|
| 234 | - Auto generate zinnia tomoe model files, |
---|
| 235 | and includes all model files in zinnia-tomoe noarch sub-package. |
---|
| 236 | |
---|
| 237 | * Thu May 20 2010 Peng Wu <pwu@redhat.com> - 0.06-1 |
---|
| 238 | - Update to version 0.06. |
---|
| 239 | |
---|
| 240 | * Wed Mar 10 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-4 |
---|
| 241 | - Fix the bugs of SPEC file |
---|
| 242 | |
---|
| 243 | * Fri Mar 04 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-3 |
---|
| 244 | - Fix something wrong of spec file |
---|
| 245 | |
---|
| 246 | * Wed Mar 02 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-2 |
---|
| 247 | - Rename Subpackage for perl and python |
---|
| 248 | |
---|
| 249 | * Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-1 |
---|
| 250 | - Initial Package |
---|