help2man-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. Name: help2man
  2. Summary: Create simple man pages from --help output
  3. Summary(ja): --help の出力から簡単なマニュアルページを生成するツール
  4. Version: 1.40.1
  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(it) %{_datadir}/locale/it/LC_MESSAGES/help2man.mo
  73. %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/help2man.mo
  74. %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
  75. %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/help2man.mo
  76. %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/help2man.mo
  77. %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo
  78. %lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/help2man.mo
  79. %lang(vi) %{_datadir}/locale/vi/LC_MESSAGES/help2man.mo
  80. %lang(de) %{_mandir}/de/man1/*
  81. %lang(el) %{_mandir}/el/man1/*
  82. %lang(eo) %{_mandir}/eo/man1/*
  83. %lang(fi) %{_mandir}/fi/man1/*
  84. %lang(fr) %{_mandir}/fr/man1/*
  85. %lang(it) %{_mandir}/it/man1/*
  86. %lang(ja) %{_mandir}/ja/man1/*
  87. %lang(pl) %{_mandir}/pl/man1/*
  88. %lang(pt_BR) %{_mandir}/pt_BR/man1/*
  89. %lang(ru) %{_mandir}/ru/man1/*
  90. %lang(sv) %{_mandir}/sv/man1/*
  91. %lang(uk) %{_mandir}/uk/man1/*
  92. %lang(vi) %{_mandir}/vi/man1/*
  93. %changelog
  94. * Tue May 31 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.40.1-1
  95. - new upstream release.(include Japanese locale)
  96. - delete Patch0. (fixed upstream)
  97. - translate description.
  98. * Fri May 06 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  99. - add Patch0. (use gettext for format of strftime.)
  100. - update translation.
  101. * Tue May 03 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  102. - update translation.(Fixed [JM:00259])
  103. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-2
  104. - update translation.(Fixed [VineSeed:23244])
  105. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-1
  106. - new upstream release.
  107. - add languages(de, el, eo, it, pt_BR, ru, uk, vi)
  108. - add Japanese translation.
  109. - stop to change encoding of manpages.
  110. - enable nls.
  111. - add Vendor, Distribution and Packager tag.
  112. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
  113. - rebuilt with new environment
  114. * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.36.4-1
  115. - initial build for Vine Linux
  116. * Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
  117. - Update license tag.
  118. - Convert THANKS to utf-8.
  119. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
  120. - Upstream update.
  121. - utf-8 encode l10n'd man pages.
  122. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
  123. - Upstream update.
  124. - Add build option --with nls.
  125. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
  126. - Fix disttag (#176473).
  127. - Cleanup spec.
  128. * Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
  129. - Update to 1.35.1
  130. - Minor spec fixes.