[1183] | 1 | Summary: Online handwriting recognition system with machine learning |
---|
[10446] | 2 | Summary(ja): 機械学習ベースのポータブルなオンライン手書き文字認識エンジン |
---|
[1183] | 3 | Name: zinnia |
---|
[10446] | 4 | Version: 0.07 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[1183] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: BSD |
---|
| 8 | URL: http://zinnia.sourceforge.net/ |
---|
[10446] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
| 12 | Source0: http://downloads.sourceforge.net/zinnia/%{name}-%{version}.tar.xz |
---|
[1183] | 13 | Source1: http://zinnia.svn.sourceforge.net/viewvc/zinnia/zinnia/tomoe2s.pl |
---|
| 14 | Source2: Makefile.tomoe |
---|
| 15 | Patch0: zinnia-0.05-bindings.patch |
---|
[9077] | 16 | |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: libdb-devel |
---|
[1183] | 19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
[9077] | 20 | BuildRequires: python-devel |
---|
[1183] | 21 | BuildRequires: tomoe |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | Zinnia provides a simple, customizable, and portable dynamic OCR |
---|
| 25 | system for hand-written input, based on Support Vector Machines. |
---|
| 26 | |
---|
| 27 | Zinnia simply receives user pen strokes as coordinate data and outputs |
---|
| 28 | the best matching characters sorted by SVM confidence. To maintain |
---|
| 29 | portability, it has no rendering functionality. In addition to |
---|
| 30 | recognition, Zinnia provides a training module capable of creating |
---|
| 31 | highly efficient handwriting recognition models. |
---|
| 32 | |
---|
| 33 | This package contains the shared libraries. |
---|
| 34 | |
---|
| 35 | %description -l ja |
---|
[9077] | 36 | Zinnia は機械学習アルゴリズム SVM を用いたポータブルで汎用的なオンライン手書き文字認識エンジンです。 |
---|
| 37 | Zinniaは組み込みの容易さと汎用性を高めるために、文字のレンダリング機能は持っていません。Zinniaは文字のストローク情報を座標の連続として受け取り、確からしい順にスコア付きでN文字の認識結果を返すだけに機能を限定しています。また、認識エンジンは完全に機械学習ベースであるために、文字のみならずユーザの任意のマウス・ペンストロークに対して任意の文字列をマッピングするような認識エンジンを小コスト作成することができます。 |
---|
[1183] | 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development files for %{name} |
---|
[9077] | 41 | Summary(ja): %{name} の開発用ファイル |
---|
[1183] | 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | |
---|
| 45 | %description devel |
---|
| 46 | The %{name}-devel package contains libraries and header files for |
---|
| 47 | developing applications that use %{name}. |
---|
| 48 | |
---|
| 49 | %package utils |
---|
| 50 | Summary: Utils for the zinnia library |
---|
| 51 | Group: Applications/System |
---|
| 52 | Requires: %{name} = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description utils |
---|
| 55 | The %{name}-utils package provides utilities for zinnia library that |
---|
| 56 | use %{name}. |
---|
| 57 | |
---|
| 58 | %package doc |
---|
| 59 | Summary: Documents for the zinnia library |
---|
[9077] | 60 | Group: Documentation |
---|
[1183] | 61 | Requires: %{name} = %{version}-%{release} |
---|
| 62 | #BuildArch: noarch |
---|
| 63 | |
---|
| 64 | %description doc |
---|
| 65 | The %{name}-doc package provide documents for zinnia library that |
---|
| 66 | use %{name}. |
---|
| 67 | |
---|
| 68 | %package perl |
---|
[9077] | 69 | Summary: Perl bindings for %{name} |
---|
[1183] | 70 | Group: Development/Libraries |
---|
| 71 | Requires: %{name} = %{version}-%{release} |
---|
| 72 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[9077] | 73 | Provides: perl-zinnia = %{version}-%{release} |
---|
[1183] | 74 | |
---|
| 75 | %description perl |
---|
| 76 | This package contains perl bindings for %{name}. |
---|
| 77 | |
---|
| 78 | %package python |
---|
| 79 | Summary: Python bindings for %{name} |
---|
| 80 | Group: Development/Libraries |
---|
| 81 | Requires: %{name} = %{version}-%{release} |
---|
| 82 | Provides: tegaki-recognition-engine |
---|
| 83 | |
---|
| 84 | %description python |
---|
| 85 | This package contains python bindings for %{name}. |
---|
| 86 | |
---|
| 87 | %package tomoe |
---|
| 88 | Summary: Tomoe Ja model file for %{name} |
---|
| 89 | Group: System Environment/Libraries |
---|
| 90 | Requires: %{name} = %{version}-%{release} |
---|
| 91 | Provides: %{name}-model |
---|
| 92 | Provides: %{name}-tomoe-ja |
---|
| 93 | #BuildArch: noarch |
---|
| 94 | |
---|
| 95 | %description tomoe |
---|
| 96 | This package contains tomoe Ja model files for %{name}. |
---|
| 97 | |
---|
| 98 | %package tomoe-zh_CN |
---|
| 99 | Summary: Tomoe model zh_CN file for %{name} |
---|
| 100 | Group: System Environment/Libraries |
---|
| 101 | Requires: %{name} = %{version}-%{release} |
---|
| 102 | Provides: %{name}-model |
---|
| 103 | #BuildArch: noarch |
---|
| 104 | |
---|
| 105 | %description tomoe-zh_CN |
---|
| 106 | This package contains tomoe zh_CN model files for %{name}. |
---|
| 107 | |
---|
| 108 | %prep |
---|
[10446] | 109 | %setup -q -n %{name} |
---|
[1183] | 110 | %patch0 -p1 -b .bindings |
---|
| 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 | %files perl |
---|
| 193 | %defattr(-,root,root,-) |
---|
| 194 | %{perl_vendorarch}/auto/%{name}/ |
---|
| 195 | %{perl_vendorarch}/%{name}.pm |
---|
| 196 | |
---|
| 197 | %files python |
---|
| 198 | %defattr(-,root,root,-) |
---|
| 199 | %{python_sitearch}/_%{name}.so |
---|
| 200 | %{python_sitearch}/%{name}* |
---|
| 201 | |
---|
| 202 | %files tomoe |
---|
| 203 | %defattr(-,root,root,-) |
---|
| 204 | %dir %{_datadir}/zinnia/model/tomoe/ |
---|
| 205 | %{_datadir}/zinnia/model/tomoe/handwriting-ja.model |
---|
| 206 | |
---|
| 207 | %files tomoe-zh_CN |
---|
| 208 | %defattr(-,root,root,-) |
---|
| 209 | %dir %{_datadir}/zinnia/model/tomoe/ |
---|
| 210 | %{_datadir}/zinnia/model/tomoe/handwriting-zh_CN.model |
---|
| 211 | |
---|
[9077] | 212 | |
---|
[1183] | 213 | %changelog |
---|
[10446] | 214 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.07-1 |
---|
| 215 | - new upstream release. |
---|
| 216 | - dropped Patch1: fixed in upstream. |
---|
| 217 | |
---|
[9077] | 218 | * Mon Nov 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.06-5 |
---|
| 219 | - rebuilt with perl 5.16.3 |
---|
| 220 | |
---|
[5701] | 221 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.06-4 |
---|
| 222 | - rebuild with python-2.7.2 |
---|
| 223 | |
---|
[3279] | 224 | * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 0.06-3vl6 |
---|
| 225 | - build with perl 5.12.3 |
---|
| 226 | |
---|
[1901] | 227 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.06-2 |
---|
| 228 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 229 | |
---|
[1183] | 230 | * Tue Jun 8 2010 IWAI, Masaharu <iwai@alib.jp> 0.06-1 |
---|
| 231 | - initial build for Vine Linux |
---|
| 232 | |
---|
| 233 | * Fri Jun 04 2010 Peng Wu <pwu@redhat.com> - 0.06-4 |
---|
| 234 | - Add a patch(zinnia-0.06-fixes-ppc-float.patch), |
---|
| 235 | to fixes ppc/ppc64 zinnia tomoe model generating error. |
---|
| 236 | |
---|
| 237 | * Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-3 |
---|
| 238 | - Mass rebuild with perl-5.12.0 |
---|
| 239 | |
---|
| 240 | * Thu May 20 2010 Peng Wu <pwu@redhat.com> - 0.06-2 |
---|
| 241 | - Auto generate zinnia tomoe model files, |
---|
| 242 | and includes all model files in zinnia-tomoe noarch sub-package. |
---|
| 243 | |
---|
| 244 | * Thu May 20 2010 Peng Wu <pwu@redhat.com> - 0.06-1 |
---|
| 245 | - Update to version 0.06. |
---|
| 246 | |
---|
| 247 | * Wed Mar 10 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-4 |
---|
| 248 | - Fix the bugs of SPEC file |
---|
| 249 | |
---|
[10446] | 250 | * Thu Mar 04 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-3 |
---|
[1183] | 251 | - Fix something wrong of spec file |
---|
| 252 | |
---|
[10446] | 253 | * Tue Mar 02 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-2 |
---|
[1183] | 254 | - Rename Subpackage for perl and python |
---|
| 255 | |
---|
| 256 | * Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> - 0.05-1 |
---|
| 257 | - Initial Package |
---|