kakasi-vl.spec 5.2 KB

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