help2man-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. %global po_version 1.46.6
  2. Name: help2man
  3. Summary: Create simple man pages from --help output
  4. Summary(ja): --help の出力から簡単なマニュアルページを生成するツール
  5. Version: 1.47.10
  6. Release: 1%{?_dist_release}
  7. Group: Development/Tools
  8. License: GPLv2+
  9. URL: http://www.gnu.org/software/help2man
  10. Source: ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.xz
  11. Source1: help2man-%{po_version}.ja.po
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. Requires(post): /sbin/install-info
  14. Requires(preun): /sbin/install-info
  15. Requires: perl-gettext
  16. BuildRequires: perl-gettext
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: daisuke, yasumichi
  21. %description
  22. help2man is a script to create simple man pages from the --help and
  23. --version output of programs.
  24. Since most GNU documentation is now in info format, this provides a
  25. way to generate a placeholder man page pointing to that resource while
  26. still providing some useful information.
  27. %description -l ja
  28. help2man は、プログラムの --help および --version オプションの出力から
  29. 簡単なマニュアルページを生成するスクリプトです。
  30. ほとんどの GNU 文書は現在 info 形式であるため、有益な情報が info で提供
  31. されていることを指し示すセクションをマニュアルページに生成する方法も
  32. 提供しています。
  33. %prep
  34. %setup -q -n help2man-%{version}
  35. iconv -f ISO-8859-1 -t utf-8 THANKS > THANKS~
  36. mv THANKS~ THANKS
  37. %{__cp} %{SOURCE1} po/ja.po
  38. %build
  39. %configure
  40. make %{?_smp_mflags}
  41. # Fix up manpage encoding
  42. #for f in help2man.*.h2m; do
  43. # b=$(basename $f .h2m);
  44. # c=$(grep 'charset: ISO-*' $f | sed -e 's,^.*: ,,')
  45. # iconv -f $c -t UTF-8 -o $b.1~ $b.1
  46. # mv $b.1~ $b.1
  47. #done
  48. %install
  49. rm -fr $RPM_BUILD_ROOT
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. make install_l10n DESTDIR=$RPM_BUILD_ROOT
  52. %find_lang %{name}
  53. %clean
  54. rm -fr $RPM_BUILD_ROOT
  55. %post
  56. /sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
  57. %preun
  58. if [ $1 -eq 0 ]; then
  59. /sbin/install-info --delete %{_infodir}/help2man.info \
  60. %{_infodir}/dir 2>/dev/null || :
  61. fi
  62. %files -f %{name}.lang
  63. %defattr(-, root, root,-)
  64. %license COPYING
  65. %doc README NEWS THANKS
  66. %{_bindir}/help2man
  67. %{_infodir}/*
  68. %{_mandir}/man1/*
  69. %{_libdir}/help2man
  70. %lang(da) %{_mandir}/da/man1/*
  71. %lang(de) %{_mandir}/de/man1/*
  72. %lang(el) %{_mandir}/el/man1/*
  73. %lang(eo) %{_mandir}/eo/man1/*
  74. %lang(es) %{_mandir}/es/man1/*
  75. %lang(fi) %{_mandir}/fi/man1/*
  76. %lang(fr) %{_mandir}/fr/man1/*
  77. %lang(hr) %{_mandir}/hr/man1/*
  78. %lang(hu) %{_mandir}/hu/man1/*
  79. %lang(it) %{_mandir}/it/man1/*
  80. %lang(ja) %{_mandir}/ja/man1/*
  81. %lang(nb) %{_mandir}/nb/man1/*
  82. %lang(pl) %{_mandir}/pl/man1/*
  83. %lang(pt_BR) %{_mandir}/pt_BR/man1/*
  84. %lang(ru) %{_mandir}/ru/man1/*
  85. %lang(sr) %{_mandir}/sr/man1/*
  86. %lang(sv) %{_mandir}/sv/man1/*
  87. %lang(ta) %{_mandir}/ta/man1/*
  88. %lang(uk) %{_mandir}/uk/man1/*
  89. %lang(vi) %{_mandir}/vi/man1/*
  90. %lang(zh_CN) %{_mandir}/zh_CN/man1/*
  91. %changelog
  92. * Mon Aug 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.47.10-1
  93. - new upstream release.
  94. * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.43.2-2
  95. - rebuild with VineSeed environment
  96. * Fri Jun 07 2013 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.43.2-1
  97. - new upstream release.
  98. * Tue May 31 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.40.1-1
  99. - new upstream release.(include Japanese locale)
  100. - delete Patch0. (fixed upstream)
  101. - translate description.
  102. * Fri May 06 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  103. - add Patch0. (use gettext for format of strftime.)
  104. - update translation.
  105. * Tue May 03 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  106. - update translation.(Fixed [JM:00259])
  107. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-2
  108. - update translation.(Fixed [VineSeed:23244])
  109. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-1
  110. - new upstream release.
  111. - add languages(de, el, eo, it, pt_BR, ru, uk, vi)
  112. - add Japanese translation.
  113. - stop to change encoding of manpages.
  114. - enable nls.
  115. - add Vendor, Distribution and Packager tag.
  116. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
  117. - rebuilt with new environment
  118. * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.36.4-1
  119. - initial build for Vine Linux
  120. * Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
  121. - Update license tag.
  122. - Convert THANKS to utf-8.
  123. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
  124. - Upstream update.
  125. - utf-8 encode l10n'd man pages.
  126. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
  127. - Upstream update.
  128. - Add build option --with nls.
  129. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
  130. - Fix disttag (#176473).
  131. - Cleanup spec.
  132. * Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
  133. - Update to 1.35.1
  134. - Minor spec fixes.