nkf-vl.spec 6.3 KB

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