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