help2man-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Supported build option:
  2. #
  3. # --with nls ... build this package with --enable-nls
  4. Name: help2man
  5. Summary: Create simple man pages from --help output
  6. Summary(ja): --help の出力から簡単なマニュアルページを生成するツール
  7. Version: 1.36.4
  8. Release: 2%{?_dist_release}
  9. Group: Development/Tools
  10. License: GPLv2+
  11. URL: http://www.gnu.org/software/help2man
  12. Source: ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. %{!?_with_nls:BuildArch: noarch}
  15. %{?_with_nls:BuildRequires: perl(Locale::gettext)}
  16. %{?_with_nls:Requires: perl(Locale::gettext)}
  17. Requires(post): /sbin/install-info
  18. Requires(preun): /sbin/install-info
  19. %description
  20. help2man is a script to create simple man pages from the --help and
  21. --version output of programs.
  22. Since most GNU documentation is now in info format, this provides a
  23. way to generate a placeholder man page pointing to that resource while
  24. still providing some useful information.
  25. %prep
  26. %setup -q -n help2man-%{version}
  27. iconv -f ISO-8859-1 -t utf-8 THANKS > THANKS~
  28. mv THANKS~ THANKS
  29. %build
  30. %configure %{!?_with_nls:--disable-nls}
  31. make %{?_smp_mflags}
  32. # Fix up manpage encoding
  33. for f in help2man.*.h2m; do
  34. b=$(basename $f .h2m);
  35. c=$(grep 'charset: ISO-*' $f | sed -e 's,^.*: ,,')
  36. iconv -f $c -t utf-8 -o $b.1~ $b.1
  37. mv $b.1~ $b.1
  38. done
  39. %install
  40. rm -fr $RPM_BUILD_ROOT
  41. make install DESTDIR=$RPM_BUILD_ROOT
  42. make install_l10n DESTDIR=$RPM_BUILD_ROOT
  43. %clean
  44. rm -fr $RPM_BUILD_ROOT
  45. %post
  46. /sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
  47. %preun
  48. if [ $1 -eq 0 ]; then
  49. /sbin/install-info --delete %{_infodir}/help2man.info \
  50. %{_infodir}/dir 2>/dev/null || :
  51. fi
  52. %files
  53. %defattr(-, root, root,-)
  54. %doc README NEWS THANKS
  55. %{_bindir}/help2man
  56. %{_infodir}/*
  57. %{_mandir}/man1/*
  58. %if "%{?_with_nls}"
  59. %{_libdir}/*.so
  60. %endif
  61. %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
  62. %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/help2man.mo
  63. %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/help2man.mo
  64. %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo
  65. %lang(pl) %{_mandir}/pl/man1/*
  66. %lang(fi) %{_mandir}/fi/man1/*
  67. %lang(fr) %{_mandir}/fr/man1/*
  68. %lang(sv) %{_mandir}/sv/man1/*
  69. %changelog
  70. * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
  71. - rebuilt with new environment
  72. * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.36.4-1
  73. - initial build for Vine Linux
  74. * Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
  75. - Update license tag.
  76. - Convert THANKS to utf-8.
  77. * Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
  78. - Upstream update.
  79. - utf-8 encode l10n'd man pages.
  80. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
  81. - Upstream update.
  82. - Add build option --with nls.
  83. * Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
  84. - Fix disttag (#176473).
  85. - Cleanup spec.
  86. * Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
  87. - Update to 1.35.1
  88. - Minor spec fixes.