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