mana-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Summary: Kana-Kanji conversion engine
  2. Summary(ja): 仮名漢字変換エンジン
  3. Name: mana
  4. Version: 0.2.1
  5. Release: 3%{?_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-camlp4-devel, 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. %prep
  25. %setup -q
  26. %patch0 -p1 -b .old-gdbm
  27. %patch1 -p1 -b .OCaml-mk
  28. %patch2 -p1 -b .prelude
  29. iconv README -f euc-jp -t utf-8 -o README.utf8
  30. mv README.utf8 README
  31. %build
  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. * Thu Jan 29 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.1-3
  67. - rebuilt on current VineSeed
  68. - BR: ocaml-camlp4-devel instead of ocaml-camlp4
  69. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-2
  70. - rebuilt with current VineSeed
  71. - changed README encoding to UTF-8
  72. * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-2
  73. - rebuilt with current VineSeed
  74. - changed README encoding to UTF-8
  75. * Fri Sep 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.1-1
  76. - new upstream release
  77. - updated Patch0
  78. - applied new versioning
  79. * Tue Dec 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl3
  80. - hold %%{_libdir}/mana, %%{_libdir}/mana/dic
  81. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl2
  82. - add prelude.patch (patch2), Makefile-nc.patch (patch3)
  83. - install mana-prelude.scm
  84. * Sun May 28 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.0-0vl1
  85. - initial build