tegaki-recognize-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # -*- coding: utf-8 -*-
  2. Name: tegaki-recognize
  3. Version: 0.3.1.2
  4. Release: 2%{?_dist_release}
  5. Summary: Open-Source Chinese and Japanese Handwriting Recognition
  6. Summary(ja): オープンソースの中国語/日本語手書き認識
  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}-root
  12. BuildRequires: python-devel
  13. BuildRequires: desktop-file-utils
  14. Requires(post): desktop-file-utils
  15. Requires(postun): desktop-file-utils
  16. Requires: tegaki-pygtk >= 0.2
  17. Requires: tegaki-model
  18. BuildArch: noarch
  19. %description
  20. Open-Source Chinese and Japanese Handwriting Recognition
  21. %description -l ja
  22. オープンソースの中国語/日本語手書き認識
  23. %prep
  24. %setup -q
  25. %build
  26. %{__python} setup.py build
  27. %install
  28. %{__rm} -rf %{buildroot}
  29. %{__python} setup.py install --prefix %{buildroot}%{_prefix}
  30. %check
  31. %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
  32. %clean
  33. %{__rm} -rf %{buildroot}
  34. %post
  35. if [ -x %{_bindir}/update-desktop-database ] ; then
  36. %{_bindir}/update-desktop-database %{_datadir}/applications
  37. fi
  38. %postun
  39. if [ -x %{_bindir}/update-desktop-database ] ; then
  40. %{_bindir}/update-desktop-database %{_datadir}/applications
  41. fi
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc AUTHORS COPYRIGHT README COPYING ChangeLog
  45. %{_bindir}/%{name}
  46. %{_datadir}/applications/%{name}.desktop
  47. %{_datadir}/menu/tegaki-recognize
  48. %{_datadir}/pixmaps/tegaki-recognize.svg
  49. %{python_sitelib}/tegaki_recognize*.egg-info
  50. %changelog
  51. * Fri Jun 19 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.1.2-2
  52. - rebuilt on current VineSeed
  53. * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 0.3.1.2-1
  54. - Initial build.