help2man-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Name: help2man
  2. Summary: Create simple man pages from --help output
  3. Summary(ja): --help の出力から簡単なマニュアルページを生成するツール
  4. Version: 1.39.2
  5. Release: 4%{?_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.ja.po
  11. Patch0: help2man-fix-strftime.patch
  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. %prep
  28. %setup -q -n help2man-%{version}
  29. %patch0 -p1
  30. iconv -f ISO-8859-1 -t utf-8 THANKS > THANKS~
  31. mv THANKS~ THANKS
  32. %{__cp} %{SOURCE1} po/ja.po
  33. # add Japanese locale
  34. echo "ja ja_JP.utf8" >> locales
  35. %build
  36. %configure
  37. make %{?_smp_mflags}
  38. # Fix up manpage encoding
  39. #for f in help2man.*.h2m; do
  40. # b=$(basename $f .h2m);
  41. # c=$(grep 'charset: ISO-*' $f | sed -e 's,^.*: ,,')
  42. # iconv -f $c -t UTF-8 -o $b.1~ $b.1
  43. # mv $b.1~ $b.1
  44. #done
  45. %install
  46. rm -fr $RPM_BUILD_ROOT
  47. make install DESTDIR=$RPM_BUILD_ROOT
  48. make install_l10n DESTDIR=$RPM_BUILD_ROOT
  49. %clean
  50. rm -fr $RPM_BUILD_ROOT
  51. %post
  52. /sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
  53. %preun
  54. if [ $1 -eq 0 ]; then
  55. /sbin/install-info --delete %{_infodir}/help2man.info \
  56. %{_infodir}/dir 2>/dev/null || :
  57. fi
  58. %files
  59. %defattr(-, root, root,-)
  60. %doc README NEWS THANKS
  61. %{_bindir}/help2man
  62. %{_infodir}/*
  63. %{_mandir}/man1/*
  64. %{_libdir}/help2man
  65. %lang(de) %{_datadir}/locale/de/LC_MESSAGES/help2man.mo
  66. %lang(el) %{_datadir}/locale/el/LC_MESSAGES/help2man.mo
  67. %lang(eo) %{_datadir}/locale/eo/LC_MESSAGES/help2man.mo
  68. %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/help2man.mo
  69. %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/help2man.mo
  70. %lang(it) %{_datadir}/locale/it/LC_MESSAGES/help2man.mo
  71. %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/help2man.mo
  72. %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
  73. %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/help2man.mo
  74. %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/help2man.mo
  75. %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo
  76. %lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/help2man.mo
  77. %lang(vi) %{_datadir}/locale/vi/LC_MESSAGES/help2man.mo
  78. %lang(de) %{_mandir}/de/man1/*
  79. %lang(el) %{_mandir}/el/man1/*
  80. %lang(eo) %{_mandir}/eo/man1/*
  81. %lang(fi) %{_mandir}/fi/man1/*
  82. %lang(fr) %{_mandir}/fr/man1/*
  83. %lang(it) %{_mandir}/it/man1/*
  84. %lang(ja) %{_mandir}/ja/man1/*
  85. %lang(pl) %{_mandir}/pl/man1/*
  86. %lang(pt_BR) %{_mandir}/pt_BR/man1/*
  87. %lang(ru) %{_mandir}/ru/man1/*
  88. %lang(sv) %{_mandir}/sv/man1/*
  89. %lang(uk) %{_mandir}/uk/man1/*
  90. %lang(vi) %{_mandir}/vi/man1/*
  91. %changelog
  92. * Fri May 06 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  93. - add Patch0. (use gettext for format of strftime.)
  94. - update translation.
  95. * Tue May 03 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
  96. - update translation.(Fixed [JM:00259])
  97. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-2
  98. - update translation.(Fixed [VineSeed:23244])
  99. * Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-1
  100. - new upstream release.
  101. - add languages(de, el, eo, it, pt_BR, ru, uk, vi)
  102. - add Japanese translation.
  103. - stop to change encoding of manpages.
  104. - enable nls.
  105. - add Vendor, Distribution and Packager tag.
  106. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
  107. - rebuilt with new environment
  108. * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.36.4-1
  109. - initial build for Vine Linux
  110. * Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
  111. - Update license tag.
  112. - Convert THANKS to utf-8.
  113. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
  114. - Upstream update.
  115. - utf-8 encode l10n'd man pages.
  116. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
  117. - Upstream update.
  118. - Add build option --with nls.
  119. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
  120. - Fix disttag (#176473).
  121. - Cleanup spec.
  122. * Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
  123. - Update to 1.35.1
  124. - Minor spec fixes.