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