kakasi-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. %define tkver 2.04
  2. %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
  3. Summary: Filter to convert Kanji to Hiragana, Katakana or Romaji
  4. Summary(ja): 漢字かなまじり文をひらがな文やローマ字文に変換するフィルタ
  5. Name: kakasi
  6. Version: 2.3.4
  7. Release: 2%{?_dist_release}
  8. Group: Applications/Text
  9. License: GPLv2+
  10. URL: http://kakasi.namazu.org/
  11. Source: ftp://kakasi.namazu.org/pub/kakasi/kakasi-%{version}.tar.gz
  12. Source1: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Text-Kakasi-%{tkver}.tar.gz
  13. Patch0: kakasi-2.3.4-strdup.patch
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: perl >= 1:5.10.0
  16. Provides: perl-Text-Kakasi = %{tkver}
  17. %description
  18. KAKASI is the language processing filter to convert Kanji characters
  19. to Hiragana, Katakana or Romaji(1) and may be helpful to read Japanese
  20. documents. perl module for kakasi is also involved.
  21. %description -l ja
  22. KAKASI は漢字かなまじり文をひらがな文やローマ字文に変換することを
  23. 目的として作成したプログラムと辞書の総称です。
  24. このパッケージには、kakasi を perlで用いるモジュール Text-Kakasi-%{tkver}
  25. も含んでいます。
  26. %package devel
  27. Summary: Libraries and include files of KAKASI
  28. Group: Development/Libraries
  29. Summary(ja): KAKASIのライブラリとヘッダファイル
  30. %description devel
  31. Libraries and include files of KAKASI
  32. %description devel -l ja
  33. KAKASI のライブラリとヘッダファイルです
  34. %prep
  35. %setup -q -a 1
  36. find . -type d -name CVS | xargs -r rm -frv
  37. %patch0 -p1 -b .strdup
  38. %build
  39. %configure --disable-static
  40. make
  41. # build Text-Kakasi
  42. cd Text-Kakasi-%{tkver}
  43. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  44. make INC=-I../lib/ LDFLAGS=-L../lib/
  45. make test
  46. cd -
  47. %install
  48. rm -rf %{buildroot}
  49. %makeinstall
  50. # install manual page
  51. mkdir -p %{buildroot}%{_mandir}/ja/man1
  52. install -p -m 644 doc/kakasi.1 %{buildroot}%{_mandir}/ja/man1
  53. # install Text-Kakasi
  54. cd Text-Kakasi-%{tkver}
  55. make DESTDIR=$RPM_BUILD_ROOT install
  56. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  57. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  58. rm -rf ../Text-Kakasi
  59. mkdir -p ../Text-Kakasi
  60. cp -a README* COPYING* MANIFEST ../Text-Kakasi
  61. cd -
  62. # removed unpackaed files
  63. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
  64. %clean
  65. rm -rf %{buildroot}
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root)
  70. %doc doc Text-Kakasi
  71. %doc README* AUTHORS COPYING ChangeLog TODO NEWS
  72. %{_bindir}/*
  73. %{_libdir}/libkakasi.so.*
  74. %dir %{_datadir}/kakasi
  75. %{_datadir}/kakasi/*
  76. %{perl_vendorarch}/Text/Kakasi.pm
  77. %{perl_vendorarch}/Text/Kakasi/JP.pod
  78. %{perl_vendorarch}/auto/Text/Kakasi
  79. %{_mandir}/man3/*
  80. %{_mandir}/ja/man1/kakasi.1*
  81. %files devel
  82. %defattr(-,root,root)
  83. %{_includedir}/*
  84. %{_libdir}/libkakasi.so
  85. %changelog
  86. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-2
  87. - spec in utf-8
  88. - remove static library
  89. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.4-1vl5
  90. - rebuilt with perl 5.10.0
  91. - applied new versioning policy
  92. - removed lib*.la from devel package
  93. - fixed %%doc section
  94. - fixed %%changelog typo
  95. * Wed Mar 15 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.3.4-0vl7
  96. - add strdup.patch (patch0) to avoid segmentation fault
  97. * Wed Feb 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.4-0vl6
  98. - rebuilt with new toolchains and perl-5.8.6
  99. - updated Text-Kakasi source and its URL
  100. - added Provides: perl-Text-Kakasi
  101. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.3.4-0vl5
  102. - rebuilt on perl-5.8.2
  103. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.3.4-0vl4
  104. - rebuilt on perl-5.8.1
  105. * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 2.3.4-0vl3
  106. - rebuild with perl-5.8.0
  107. * Mon Jan 28 2002 Toru Sagami <sagami@vinelinux.org> 2.3.4-0vl2
  108. - make sure thet libkakasi.{a,la,so} are splitted into devel subpackage
  109. * Fri Sep 7 2001 Jun Nishii <jun@vinelinux.org> - 2.3.4-0vl1
  110. - ver.up
  111. - ver.up Text-Kakasi
  112. * Sat Jun 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  113. - 2.3.3-0vl4
  114. - rebuilt with perl-5.6.1
  115. * Wed Jun 13 2001 Jun Nishii <jun@vinelinux.org> 2.3.3-0vl3
  116. - modify perl version dependency
  117. * Fri May 11 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  118. - 2.3.3-0vl2
  119. - TextKakasi VersionDown(1.05 -> 1.04)
  120. * Mon May 7 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  121. - 2.3.3-0vl1
  122. - update to 2.3.3(TextKakasi 1.04 -> 1.05)
  123. * Sat Jan 13 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  124. - 2.3.2-0vl3
  125. - use better macros, _mandir
  126. - dont pack CVS directory
  127. * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  128. - 2.3.2-0vl2
  129. - modified %files section to handle compressed man page(s)
  130. * Sat May 27 2000 Jun Nishii <jun@vinelinux.org>
  131. - 2.3.2-0vl1
  132. - merge Text Kakasi
  133. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  134. - change group
  135. - strip bins
  136. * Fri Oct 29 1999 Jun Nishii <jun@flatout.org>
  137. - updated to 2.3.1
  138. * Thu Oct 28 1999 Jun Nishii <jun@flatout.org>
  139. - updated to 2.3.0
  140. - separate devel
  141. * Mon Sep 20 1999 Jun Nishii <jun@flatout.org>
  142. - added %defattr
  143. * Wed Jul 28 1999 Jun Nishii <jun@flatout.org>
  144. - rebuild for Vine-1.9