nkf-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. %define locale_ja ja
  2. %define sourcever 2.1.3
  3. %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
  4. Summary: Network Kanji code conversion Filter.
  5. Summary(ja): ネットワーク用漢字コード変換フィルタ
  6. Name: nkf
  7. Epoch: 1
  8. Version: %{sourcever}
  9. Release: 3%{?_dist_release}
  10. License: BSD
  11. Group: Applications/Text
  12. Url: http://sourceforge.jp/projects/nkf/
  13. Source0: http://prdownloads.sourceforge.jp/nkf/26243/%{name}-%{version}.tar.gz
  14. Source1: nkf.1j
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. Requires: perl >= 5.8.2
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. BuildRequires: perl >= 1:5.10.0
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Nkf is a yet another kanji code converter among networks, hosts and termi-
  23. nals. It converts input kanji code to designated kanji code such as 7-bit
  24. JIS, MS-kanji (shifted-JIS) or EUC.
  25. One of the most unique facicility of nkf is the guess of the input kanji
  26. code. It currently recognizes 7-bit JIS, MS-kanji (shifted-JIS) and EUC.
  27. So users needn't the input kanji code specification.
  28. By default X0201 kana is converted into X0208 kana. For X0201 kana, SO/SI,
  29. SSO and ESC-(-I methods are supported. For automatic code detection, nkf
  30. assumes no X0201 kana in MS-Kanji. To accept X0201 in MS-Kanji, use -X, -x
  31. or -S.
  32. #'
  33. %description -l ja
  34. nkf はネットワークでメールやニュースの読み書きをするために作られた、
  35. 漢字コードの変換フィルタです。
  36. nkf の特徴としては、入力漢字コード系の統計的な自動認識機能です。
  37. このため、利用者は、入力漢字コード系が何であるかを知らなくても、
  38. 出力漢字コード系のみ指定すれば良いことになります。この判定機構は、
  39. 理論的には完全ではありませんが、通常のニュースやメールのメッセージに
  40. ついては確実に動作する安全なものにはなっています。
  41. 現在、nkf が認識できる入力の漢字コード系は、いわゆる「JISコード」(ISO-
  42. 2022-JPに基づくもの)、MS 漢字コード(シフトJIS)、日本語EUC(AT&Tコード)のい
  43. ずれかです。出力する漢字コード系も、この3種類でです。
  44. 入力は、ファイルを指定しなければ、標準入力となります。出力は標準出力です。
  45. %prep
  46. %setup -q -n nkf-%{sourcever}
  47. cp -f %{SOURCE1} .
  48. %build
  49. make CC=gcc CFLAGS="$RPM_OPT_FLAGS" PERL=perl
  50. ./nkf -w8 nkf.1j > t
  51. mv t nkf.1j
  52. ## for NKF.pm
  53. pushd NKF.mod
  54. perl Makefile.PL INSTALLDIRS="vendor"
  55. make
  56. make test
  57. popd
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/{man1,%{locale_ja}/man1}}
  61. install -s -m 755 nkf $RPM_BUILD_ROOT%{_bindir}
  62. install -p -m 644 nkf.1 $RPM_BUILD_ROOT%{_mandir}/man1/nkf.1
  63. install -p -m 644 nkf.1j $RPM_BUILD_ROOT%{_mandir}/%{locale_ja}/man1/nkf.1
  64. ## make NKF.pm
  65. pushd NKF.mod;
  66. make DESTDIR=%{buildroot} install
  67. popd
  68. find $RPM_BUILD_ROOT -name 'perllocal.pod' -type f -exec rm -rf {} \;
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %files
  72. %defattr(-,root,root)
  73. %doc nkf.doc
  74. %{_bindir}/nkf
  75. %{perl_vendorarch}/NKF.pm
  76. %{perl_vendorarch}/auto/*
  77. %{_mandir}/man1/*
  78. %{_mandir}/man3/*
  79. %{_mandir}/%{locale_ja}/man1/*
  80. %changelog
  81. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1:2.1.3-3
  82. - build with Perl 5.16
  83. * Sat Feb 15 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1:2.1.3-2
  84. - replaced nkf.1j
  85. * Sun Nov 24 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1:2.1.3-1
  86. - new upstream release
  87. * Fri Apr 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1:2.1.2-1
  88. - new upstream release
  89. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.1.1-2vl6
  90. - build with perl 5.12.3
  91. - add Requires: perl(:MODULE_COMPAT_...)
  92. - add Vendor and Distribution tags
  93. * Tue Dec 07 2010 Shu KONNO <owa@bg.wakwak.com> 2.1.1-1
  94. - updated nkf to 2.1.1
  95. - changed spec-name to vine style
  96. * Mon Nov 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.0-1
  97. - new upstream release
  98. - now, nkf.1j converts to UTF-8
  99. * Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8b-3
  100. - spec in utf-8
  101. * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.8b-2vl5
  102. - rebuild with perl 5.10
  103. * Fri Mar 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.8b-1vl5
  104. - new upstream release
  105. - added Epoch:1
  106. * Thu Jul 06 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.07-0vl1
  107. - source update
  108. - s/Copyright/License/
  109. * Sat Nov 12 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.05-0vl1
  110. - source update
  111. - installed perl module into vendor_perl
  112. * Tue Jun 15 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.04-0vl1
  113. - source update
  114. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.02-0vl3
  115. - built on perl-5.8.2
  116. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.02-0vl2
  117. - rebuilt on perl-5.8.1
  118. * Wed Jun 4 2003 Jun NISHII <jun@vinelinux.org> 2.02-0vl1
  119. - ver.up
  120. * Tue Apr 22 2003 IWAI Masaharu <iwai@alib.jp> 1.92-0vl8
  121. - rebuild with perl-5.8.0
  122. * Fri Sep 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.92-0vl7
  123. - added Patch10 to fix double-byte space problem
  124. (from http://www.namazu.org/ml/namazu-devel-ja/msg01599.html)
  125. * Sat Jun 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  126. - 1.92-0vl6
  127. - rebuilt with perl-5.6.1
  128. * Sat Jun 16 2001 Yasuhide OMORI <dasen@icntv.ne.jp>
  129. - 1.92-0vl5
  130. - do not include %%{perl_sitearch}/auto/
  131. * Wed Jun 13 2001 Jun Nishii <jun@vinelinux.org> 1.92-0vl4
  132. - build with perl-5.6
  133. * Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
  134. - use better macros
  135. - added more docs
  136. * Mon Jul 3 2000 Lisa Sagami <czs14350@nifty.ne.jp>
  137. - [1.92-0vl2]
  138. - added defattr *after* files, not after doc
  139. - a bit fixed: RPM_OPT_FLAGS and cp -p
  140. * Sat May 27 2000 Jun Nishii <jun@vinelinux.org>
  141. - mv from ja_JP.ujis to ja
  142. - added documents
  143. * Mon Dec 27 1999 Norihito Ohmori <nono@vinelinux.org>
  144. - fix manpage
  145. * Tue Nov 23 1999 Norihito Ohmori <ohmori@flatout.org>
  146. - modify for Vine Linux.
  147. * Sun Nov 7 1999 Toru Hoshina <t@kondara.org>
  148. - be a NoSrc :-P
  149. * Sat Nov 6 1999 Tenkou N. Hattori <tnh@kondara.org>
  150. - convart nkf.1j to EUC-JP code.
  151. * Tue Nov 2 1999 Norihito Ohmori <ohmori@flatout.org>
  152. - update to nkf-1.90