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