mecab-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. %bcond_with bootstrap
  2. Summary: Yet Another Part-of-Speech and Morphological Analyzer
  3. Summary(ja): もう一つの形態素解析器
  4. Name: mecab
  5. Version: 0.996
  6. Release: 4%{?_dist_release}
  7. Group: office
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: GPL/LGPL/BSD
  11. URL: https://taku910.github.io/mecab/
  12. # https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE
  13. Source0: %{name}-%{version}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: perl, gcc-c++
  16. %if !%{with bootstrap}
  17. Requires: mecab-naist-jdic
  18. %endif
  19. %description
  20. MeCab is Yet Another Part-of-Speech and Morphological, developed
  21. as the unit project of Graduate School of Informatics, Kyoto
  22. University and NTT Communication Science Laboratories. It is designed
  23. basically general and independent of language, dictionary, and corpus.
  24. It uses Conditional Random Fields (CRF) for parameter estimation,
  25. which is more efficient than Hidden Markov Model, which is used in
  26. ChaSen. MeCab works normally faster than ChaSen, Juman, and KAKASI.
  27. %description -l ja
  28. MeCab は 京都大学情報学研究科−日本電信電話株式会社コミュニケーション
  29. 科学基礎研究所共同研究ユニットプロジェクトの一環として開発された
  30. オープンソース形態素解析エンジンです. 言語, 辞書,コーパスに依存しない
  31. 汎用的な設計を基本方針としています. パラメータの推定に Conditional
  32. Rondom Fields (CRF) を用いており, ChaSenが採用している隠れマルコフ
  33. モデルに比べ性能が向上しています。また、平均的に ChaSen, Juman, KAKASI
  34. より高速に動作します. ちなみに和布蕪(めかぶ)は, 作者の好物です.
  35. %package devel
  36. Summary: Header files and libraries for developing apps which use MeCab
  37. Summary(ja): MeCabの開発用ヘッダファイル及びライブラリ
  38. Group: programming
  39. Requires: %{name} = %{version}-%{release}
  40. %description devel
  41. Header files and libraries for developing apps which use MeCab
  42. %description devel -l ja
  43. MeCabの開発用ヘッダファイル及びライブラリ
  44. %debug_package
  45. %prep
  46. %setup -q
  47. mv -f doc/doxygen .
  48. find . -name \*.cpp -print0 | xargs -0 %{__chmod} 0644
  49. # compiler flags fix
  50. %{__sed} -i.flags \
  51. -e '/-O3/s|CFLAGS=\"\(.*\)\"|CFLAGS=\${CFLAGS:-\1}|' \
  52. -e '/-O3/s|CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\${CFLAGS:-\1}|' \
  53. -e '/MECAB_LIBS/s|-lstdc++||' \
  54. configure
  55. # multilib change
  56. %{__sed} -i.multilib \
  57. -e 's|@prefix@/lib/mecab|%{_libdir}/mecab|' \
  58. -e 's|/dic/ipadic|/dic/naist-jdic|' \
  59. mecab-config.in mecabrc.in
  60. %build
  61. %configure --with-charset=utf8 --disable-static
  62. # remove rpath from libtool
  63. %{__sed} -i.rpath \
  64. -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  65. -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
  66. libtool
  67. %make_build
  68. %install
  69. make DESTDIR=$RPM_BUILD_ROOT install
  70. # create directory
  71. %{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/mecab/dic/
  72. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  73. %files
  74. %defattr(-,root,root)
  75. %license COPYING GPL LGPL BSD
  76. %doc README AUTHORS ChangeLog INSTALL NEWS doc/*.html
  77. %config(noreplace) %{_sysconfdir}/mecabrc
  78. %{_bindir}/mecab
  79. %{_libdir}/*.so.*
  80. %{_libexecdir}/mecab
  81. %{_mandir}/man?/*
  82. %dir %{_libdir}/%{name}/
  83. %dir %{_libdir}/%{name}/dic/
  84. %files devel
  85. %defattr(-,root,root)
  86. %{_bindir}/mecab-config
  87. %{_includedir}/*
  88. %{_libdir}/*.so
  89. %changelog
  90. * Fri Mar 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.996-4
  91. - rebuilt with current environment.
  92. - dropped ldconfig scriptlets.
  93. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.996-3
  94. - rebuilt with current environment.
  95. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.996-2
  96. - rebuilt with new toolchain.
  97. * Tue Dec 31 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.996-1
  98. - update to 0.996
  99. * Sat Dec 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.994-1
  100. - new upstream release.
  101. * Sat Dec 31 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99-1
  102. - new upstream release
  103. - add Patch0 (mecab-0.99-mecabrc.patch)
  104. * Mon Mar 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.98-1
  105. - new upstream release
  106. - added --with-charset=utf8
  107. - built with new toolchain
  108. * Mon May 4 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-2
  109. - spec in UTF-8
  110. - removed lib*.a files from devel package
  111. * Sat May 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-1
  112. - new upstream release
  113. - removed lib*.la files from devel package
  114. * Wed Jun 20 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.96-0vl2
  115. - upstream release
  116. * Sat May 19 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.95-0vl3
  117. - rebuilt with new toolchain
  118. * Sat Mar 24 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.95-0vl2
  119. - upstream release
  120. - drop Patch0 (merged into upstream source)
  121. - add Patch1: mecab-0.95-bufferoverflow.patch
  122. (for details, see [mecab-usres 258])
  123. * Sat Mar 3 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.94-0vl2
  124. - upstream release
  125. - change Source0 and URL
  126. - add Patch0: mecab-0.94-cpp-template.patch
  127. * Thu Sep 7 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.93-0vl2
  128. - upstream release
  129. - changed License from LGPL to GPL/LGPL/BSD (upstream change)
  130. - add LGPL, GPL, BSD to %%doc
  131. * Sat Sep 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl3
  132. - changed devel Group to Development/Libraries
  133. - added %post and %postun section
  134. * Mon May 1 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.91-0vl2
  135. - upstream release
  136. * Sun Apr 9 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.90-0vl3
  137. - change Group: Applications/Other
  138. * Fri Mar 31 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.90-0vl2
  139. - upstream release
  140. - divide dictionary into another package (mecab-ipadic)
  141. - change description
  142. - fix Source: URL
  143. - add BuildRequires: perl, gcc-c++
  144. * Sun Jun 26 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.81-0vl2
  145. - initial build for VineSeedPlus