LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File zinnia.spec of Package zinnia (Project home:swyear)

#
# 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
Url:		http://zinnia.sourceforge.net/
#PreReq:
#Provides:
BuildRequires: gcc-c++ python-devel
Source:		http://downloads.sourceforge.net/project/zinnia/zinnia/0.05/zinnia-0.05.tar.gz
#Patch:
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
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.

Authors:
--------
    Taku Kudo <taku@chasen.org> 

%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.

%prep
%setup

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall

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

%clean
rm -rf $RPM_BUILD_ROOT

%post
%postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING AUTHORS 
%{_bindir}/zinnia
%{_bindir}/zinnia_convert
%{_bindir}/zinnia_learn
%{_libdir}/libzinnia*

%files devel
%defattr(-,root,root)
%{_includedir}/zinnia.h
%dir %{_includedir}/zinnia
%{_includedir}/zinnia/zinnia.h
%{_libdir}/pkgconfig/zinnia.pc

%files -n python-%name
%defattr (-,root,root)
%{python_sitearch}/*

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