mana-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Summary: Mana - Kana-Kanji conversion engine
  2. Summary(ja): 真字 - 仮名漢字変換エンジン
  3. Name: mana
  4. Version: 0.2.1
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Libraries
  8. URL: http://sourceforge.jp/projects/shinji/
  9. Source: mana-%{version}.tar.bz2
  10. Patch0: mana-0.2.1-gdbm-1.8.0.patch
  11. Patch1: mana-0.2.0-schoca-OCaml-mk.patch
  12. Patch2: mana-0.2.0-prelude.patch
  13. #Patch3: mana-0.2.0-Makefile-nc.patch
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: ocaml, ocaml-camlp4, ocaml-findlib
  16. BuildRequires: gdbm-devel, automake14
  17. Requires: gdbm
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. Mana is Kana-Kanji conversion engine using Hidden Markov Model.
  22. %description -l ja
  23. 真字は、隠れマルコフモデルを用いて、より自然な変換結果を実現する
  24. 仮名漢字変換エンジンです。
  25. %prep
  26. %setup -q
  27. %patch0 -p1 -b .old-gdbm
  28. %patch1 -p1 -b .OCaml-mk
  29. %patch2 -p1 -b .prelude
  30. %build
  31. #%%configure --disable-debug --disable-profile
  32. ./configure \
  33. --prefix=%{_prefix} \
  34. --exec-prefix=%{_exec_prefix} \
  35. --bindir=%{_bindir} \
  36. --sbindir=%{_sbindir} \
  37. --sysconfdir=%{_sysconfdir} \
  38. --datadir=%{_datadir} \
  39. --includedir=%{_includedir} \
  40. --libdir=%{_libdir} \
  41. --libexecdir=%{_libexecdir} \
  42. --localstatedir=%{_localstatedir} \
  43. --sharedstatedir=%{_sharedstatedir} \
  44. --mandir=%{_mandir} \
  45. --infodir=%{_infodir} \
  46. --disable-debug --disable-profile
  47. %__make
  48. %install
  49. %__rm -rf %{buildroot}
  50. %makeinstall
  51. %__mkdir -p %{buildroot}%{_libdir}/mana/dic
  52. %__mkdir_p %{buildroot}%{_datadir}/mana
  53. %__install -p -m644 mana/mana-prelude.scm %{buildroot}%{_datadir}/mana
  54. %clean
  55. %__rm -rf %{buildroot}
  56. %files
  57. %defattr(-,root,root)
  58. %doc AUTHORS* COPYING* ChangeLog* NEWS* README*
  59. %{_bindir}/mana
  60. %{_bindir}/mana-config
  61. %dir %{_libdir}/mana
  62. %dir %{_libdir}/mana/dic
  63. %{_libexecdir}/mana
  64. %{_datadir}/mana
  65. %changelog
  66. * Fri Sep 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-1
  67. - new upstream release
  68. - updated Patch0
  69. - applied new versioning
  70. * Tue Dec 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl3
  71. - hold %%{_libdir}/mana, %%{_libdir}/mana/dic
  72. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl2
  73. - add prelude.patch (patch2), Makefile-nc.patch (patch3)
  74. - install mana-prelude.scm
  75. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl1
  76. - initial build