chasen-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. Name: chasen
  2. Summary: Japanese Morphological Analysis System, ChaSen
  3. Summary(ja): 茶筌 - 日本語形態素解析システム
  4. Version: 2.4.4
  5. Release: 3%{?_dist_release}
  6. License: BSD, Other License(s), see package
  7. Group: Applications/Text
  8. URL: http://chasen-legacy.sourceforge.jp/
  9. Source0: %{name}-%{version}.tar.gz
  10. # secutiry patch
  11. Patch100: chasen244-secfix.diff
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: darts-devel >= 0.32
  14. Requires: ipadic
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: inagaki
  18. %description
  19. Japanese Morphological Analysis System, ChaSen
  20. ChaSen version 1.0 is officially released on 19 February 1997 by
  21. Computational Linguistics Laboratory, Graduate School of Information
  22. Science, Nara Institute of Science and Technology (NAIST). It is a
  23. FREE Japanese Morphological analyser. It grows out of developing JUMAN
  24. version 2.0 and has made a significant improvement in system
  25. performance. Origin of Package Name
  26. Where NAIST is situated (Takayama, Nara) is famous for producing a tea
  27. whisk used in traditional Japanese tea ceremony. The Japanese name for
  28. the tea whisk is called "chasen" and that is the reason for naming
  29. ChaSen for this package developed in NAIST.
  30. %package devel
  31. Summary: Libraries and header files for ChaSen developers.
  32. Summary(ja): 茶筌の開発用ライブラリおよびヘッダファイル
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: darts >= 0.32
  36. %description devel
  37. Libraries and header files for ChaSen developers.
  38. %prep
  39. %setup -q
  40. %patch100 -p1 -b .cve-2011-4000
  41. %build
  42. %configure --with-darts=%{_includedir} --disable-static
  43. make
  44. %install
  45. [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
  46. %makeinstall
  47. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  48. %clean
  49. [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
  50. %post -p /sbin/ldconfig
  51. %postun -p /sbin/ldconfig
  52. %files
  53. %defattr(-,root,root)
  54. %doc AUTHORS COPYING ChangeLog NEWS README
  55. %doc doc/*.tex doc/*.pdf
  56. %{_bindir}/*
  57. %{_libdir}/*.so.*
  58. %{_libexecdir}/chasen
  59. %files devel
  60. %defattr(-,root,root)
  61. %{_includedir}/*
  62. %{_libdir}/*.so
  63. #{_libdir}/*.a
  64. #{_libdir}/*.la
  65. %changelog
  66. * Fri Dec 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-3
  67. - added Patch100 for CVE-2011-4000
  68. * Thu Apr 28 2011 Shu KONNO <owa@bg.wakwak.com> 2.4.4-2
  69. - rebuilt
  70. * Sun Jun 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-1
  71. - new upstream release
  72. - spec in UTF-8
  73. * Sat May 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.2-1
  74. - applied new versioning policy
  75. * Sat Mar 08 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.2-0vl1
  76. - new upstream release
  77. - updated url
  78. - fixed typo of kanji(ChaSen)
  79. - added %%{post,postun}
  80. * Sat May 19 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.0-0vl1
  81. - new upstream release
  82. - rebuilt with new toolchain
  83. * Mon Dec 19 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.3-0vl3
  84. - added Japanese summary
  85. - changed Group:
  86. * Tue May 25 2004 Satoshi MACHINO <machino@vinelinux.org> 2.3.3-0vl2
  87. - added BuildPrereq and Requires
  88. * Mon May 10 2004 Satoshi MACHINO <machino@vinelinux.org> 2.3.3-0vl1
  89. - intilal release