help2man-vl.spec 5.2 KB

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