tegaki-recognize-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # -*- coding: utf-8 -*-
  2. Summary: Open-Source Chinese and Japanese Handwriting Recognition
  3. Summary: オープンソースの中国語/日本語手書き認識
  4. Name: tegaki-recognize
  5. Version: 0.3.1.2
  6. Release: 1%{?_dist_release}
  7. License: GPLv2
  8. Group: Applications/System
  9. URL: http://www.tegaki.org/
  10. Source0: http://www.tegaki.org/releases/%{version}/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  12. BuildRequires: python-devel
  13. BuildRequires(check): desktop-file-utils
  14. Requires: tegaki-pygtk >= 0.2
  15. Requires: tegaki-model
  16. BuildArch: noarch
  17. %description
  18. Open-Source Chinese and Japanese Handwriting Recognition
  19. %description -l ja
  20. オープンソースの中国語/日本語手書き認識
  21. %prep
  22. %setup -q
  23. %build
  24. %{__python} setup.py build
  25. %install
  26. %{__rm} -rf %{buildroot}
  27. %{__python} setup.py install --prefix %{buildroot}%{_prefix}
  28. %check
  29. %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
  30. %clean
  31. %{__rm} -rf %{buildroot}
  32. %post
  33. if [ -x %{_bindir}/update-desktop-database ] ; then
  34. %{_bindir}/update-desktop-database %{_datadir}/applications
  35. fi
  36. %postun
  37. if [ -x %{_bindir}/update-desktop-database ] ; then
  38. %{_bindir}/update-desktop-database %{_datadir}/applications
  39. fi
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc AUTHORS COPYRIGHT README COPYING ChangeLog
  43. %{_bindir}/%{name}
  44. %{_datadir}/applications/%{name}.desktop
  45. %{_datadir}/menu/tegaki-recognize
  46. %{_datadir}/pixmaps/tegaki-recognize.svg
  47. %changelog
  48. * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 0.3.1.2-1
  49. - Initial build.