mana-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Summary: Kana-Kanji conversion engine
  2. Summary(ja): 仮名漢字変換エンジン
  3. Name: mana
  4. Version: 0.2.1
  5. Release: 2%{?_dist_release}
  6. License: GPLv2
  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. iconv README -f euc-jp -t utf-8 -o README.utf8
  31. mv README.utf8 README
  32. %build
  33. #%%configure --disable-debug --disable-profile
  34. ./configure \
  35. --prefix=%{_prefix} \
  36. --exec-prefix=%{_exec_prefix} \
  37. --bindir=%{_bindir} \
  38. --sbindir=%{_sbindir} \
  39. --sysconfdir=%{_sysconfdir} \
  40. --datadir=%{_datadir} \
  41. --includedir=%{_includedir} \
  42. --libdir=%{_libdir} \
  43. --libexecdir=%{_libexecdir} \
  44. --localstatedir=%{_localstatedir} \
  45. --sharedstatedir=%{_sharedstatedir} \
  46. --mandir=%{_mandir} \
  47. --infodir=%{_infodir} \
  48. --disable-debug --disable-profile
  49. %__make
  50. %install
  51. %__rm -rf %{buildroot}
  52. %makeinstall
  53. %__mkdir -p %{buildroot}%{_libdir}/mana/dic
  54. %__mkdir_p %{buildroot}%{_datadir}/mana
  55. %__install -p -m644 mana/mana-prelude.scm %{buildroot}%{_datadir}/mana
  56. %clean
  57. %__rm -rf %{buildroot}
  58. %files
  59. %defattr(-,root,root)
  60. %doc AUTHORS* COPYING* ChangeLog* NEWS* README*
  61. %{_bindir}/mana
  62. %{_bindir}/mana-config
  63. %dir %{_libdir}/mana
  64. %dir %{_libdir}/mana/dic
  65. %{_libexecdir}/mana
  66. %{_datadir}/mana
  67. %changelog
  68. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-2
  69. - rebuilt with current VineSeed
  70. - changed README encoding to UTF-8
  71. * Fri Sep 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-1
  72. - new upstream release
  73. - updated Patch0
  74. - applied new versioning
  75. * Tue Dec 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl3
  76. - hold %%{_libdir}/mana, %%{_libdir}/mana/dic
  77. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl2
  78. - add prelude.patch (patch2), Makefile-nc.patch (patch3)
  79. - install mana-prelude.scm
  80. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl1
  81. - initial build