File zinnia.spec of Package zinnia

# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# norootforbuild
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name:           zinnia
Version:	0.05
Release:	1
Summary:	Hand recognition system based on Support Vector Machines
Group:		System/I18n/Chinese
License:	 BSD License
BuildRequires: gcc-c++ python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

Zinnia is a simple, customizable and portable online hand recognition system based on Support Vector Machines. Zinnia simply receives user pen strokes as a sequence of coordinate data and outputs n-best characters sorted by SVM confidence. To keep portability, Zinnia doesn't have any rendering functionality. In addition to recognition, Zinnia provides training module that allows us to create any hand-written recognition systems with low-cost.

    Taku Kudo <> 

%package devel  
Summary:    Development tools for zinnia
Group:      Development/Libraries  
Requires:   %{name} = %{version}-%{release}

%description devel  
The zinnia-devel package contains the header files and developer  
docs for zinnia.

%package -n python-%name
Summary:        Python bindings for %name
Group:          Development/Python
Requires:       %name = %version

%description -n python-%name
This package contains python bindings for %name.


make %{?jobs:-j%jobs}


pushd python
CFLAGS="%{optflags} -I../" LDFLAGS="-L../.libs" python install --prefix=/usr --root=%{buildroot}




%files devel
%dir %{_includedir}/zinnia

%files -n python-%name
%defattr (-,root,root)

* Fri Feb 19 2010 ray@linux-gqn0
- first build