|
@@ -5,10 +5,10 @@ Summary(ja): ドキュメンテーション・ツール: man, apropos, whatis
|
|
|
|
|
|
Name: man
|
|
Name: man
|
|
Version: 1.5o
|
|
Version: 1.5o
|
|
-Release: 5%{?_dist_release}
|
|
+Release: 6%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
-License: GPL
|
|
+License: GPLv2
|
|
|
|
|
|
Source0: http://www.kernel.org/pub/linux/utils/man/man-%{version}.tar.bz2
|
|
Source0: http://www.kernel.org/pub/linux/utils/man/man-%{version}.tar.bz2
|
|
Source1: makewhatis.cronweekly
|
|
Source1: makewhatis.cronweekly
|
|
@@ -32,12 +32,25 @@ Patch108: man-1.5m2-no-mansearch.patch
|
|
Patch110: man-1.5o-tmpcache.patch
|
|
Patch110: man-1.5o-tmpcache.patch
|
|
Patch120: man-1.5o-convert-manpage-to-utf8.patch
|
|
Patch120: man-1.5o-convert-manpage-to-utf8.patch
|
|
Patch130: man-1.5o-utf8-msgs.patch
|
|
Patch130: man-1.5o-utf8-msgs.patch
|
|
|
|
+Patch140: man-1.5o-utf8-makewhatis.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: bzip2, gzip
|
|
+BuildRequires: bzip2
|
|
-Requires: groff, less, findutils, coreutils
|
|
+BuildRequires: gzip
|
|
|
|
+Requires: bzip2
|
|
|
|
+Requires: coreutils
|
|
|
|
+Requires: findutils
|
|
|
|
+Requires: gawk
|
|
|
|
+Requires: grep
|
|
|
|
+Requires: groff
|
|
|
|
+Requires: gzip
|
|
Requires: nkf
|
|
Requires: nkf
|
|
-Requires: bzip2, gzip
|
|
+# pager
|
|
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+Requires: lv
|
|
|
|
+%else
|
|
|
|
+Requires: less
|
|
|
|
+%endif
|
|
Requires(post): coreutils
|
|
Requires(post): coreutils
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -57,16 +70,16 @@ The man package should be installed on your system because it is the
|
|
primary way to find documentation on a Linux system.
|
|
primary way to find documentation on a Linux system.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-マニュアルページを表示するためのプログラム man の日本語対応版です.
|
|
+マニュアルページを表示するためのプログラム man の日本語対応版です.
|
|
-日本語対応の groffパッケージが必要です. 特定のキーワードに関連する文書
|
|
+日本語対応の groff パッケージが必要です.特定のキーワードに関連する文書
|
|
-を探すための whatis や apropos も含んでいます.
|
|
+を探すための whatis や apropos も含んでいます.
|
|
環境変数 LANG=ja_JP.* の時には、
|
|
環境変数 LANG=ja_JP.* の時には、
|
|
|
|
|
|
1.JMANプロジェクトまたはオリジナルソースに付随する日本語マニュアル
|
|
1.JMANプロジェクトまたはオリジナルソースに付随する日本語マニュアル
|
|
2.オリジナル・ソースに付随する英語マニュアル
|
|
2.オリジナル・ソースに付随する英語マニュアル
|
|
|
|
|
|
-という順でマニュアルの検索がなされます。英語マニュアルを見る場合は、
|
|
+という順でマニュアルの検索がなされます.英語マニュアルを見る場合は、
|
|
-LANG=C man などとして利用してください。
|
|
+LANG=C man などとして利用してください.
|
|
|
|
|
|
%package -n man2html
|
|
%package -n man2html
|
|
Summary: manroff to HTML converter
|
|
Summary: manroff to HTML converter
|
|
@@ -78,7 +91,7 @@ Requires: %{name} = %{version}-%{release}
|
|
This package contains manroff to HTML converter.
|
|
This package contains manroff to HTML converter.
|
|
|
|
|
|
%description -n man2html -l ja
|
|
%description -n man2html -l ja
|
|
-このパッケージには、manroff から HTMLへのコンバータが含まれています。
|
|
+このパッケージには、manroff から HTML へのコンバータが含まれています.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
@@ -101,6 +114,7 @@ This package contains manroff to HTML converter.
|
|
%patch110 -p1 -b .tmpcache
|
|
%patch110 -p1 -b .tmpcache
|
|
%patch120 -p1 -b .convert-man-to-utf8
|
|
%patch120 -p1 -b .convert-man-to-utf8
|
|
%patch130 -p1 -b .utf8-msgs
|
|
%patch130 -p1 -b .utf8-msgs
|
|
|
|
+%patch140 -p1 -b .utf8-makewhatis
|
|
|
|
|
|
pushd msgs
|
|
pushd msgs
|
|
%__mv mess.ja mess.ja_JP.eucJP
|
|
%__mv mess.ja mess.ja_JP.eucJP
|
|
@@ -115,19 +129,22 @@ make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE"
|
|
|
|
|
|
pushd src
|
|
pushd src
|
|
mv man.conf man.conf.orig
|
|
mv man.conf man.conf.orig
|
|
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+sed -e 's/less -is/lv -c/g' man.conf.orig > man.conf
|
|
|
|
+%else
|
|
sed -e 's/less -is/less -isMr/g' man.conf.orig > man.conf
|
|
sed -e 's/less -is/less -isMr/g' man.conf.orig > man.conf
|
|
-#sed -e 's/less -is/lv -c/g' man.conf.orig > man.conf
|
|
+%endif
|
|
popd
|
|
popd
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-mkdir -p %{buildroot}%{_sysconfdir}/cron.{daily,weekly}
|
|
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.{daily,weekly}
|
|
make install PREFIX=$RPM_BUILD_ROOT
|
|
make install PREFIX=$RPM_BUILD_ROOT
|
|
-%__mv %{buildroot}%{_mandir}/man5/man.conf.5 %{buildroot}%{_mandir}/man5/man.config.5
|
|
+%__mv $RPM_BUILD_ROOT%{_mandir}/man5/man.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/man.config.5
|
|
-%__mv %{buildroot}%{_mandir}/ja/man5/man.conf.5 %{buildroot}%{_mandir}/ja/man5/man.config.5
|
|
+%__mv $RPM_BUILD_ROOT%{_mandir}/ja/man5/man.conf.5 $RPM_BUILD_ROOT%{_mandir}/ja/man5/man.config.5
|
|
|
|
|
|
-install -m755 %{_sourcedir}/makewhatis.cronweekly %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis.cron
|
|
+install -m755 %{_sourcedir}/makewhatis.cronweekly $RPM_BUILD_ROOT%{_sysconfdir}/cron.weekly/makewhatis.cron
|
|
- install -m755 %{_sourcedir}/makewhatis.crondaily %{buildroot}%{_sysconfdir}/cron.daily/makewhatis.cron
|
|
+install -m755 %{_sourcedir}/makewhatis.crondaily $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/makewhatis.cron
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache/man/local
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache/man/local
|
|
@@ -241,6 +258,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5o-6
|
|
|
|
+- added Patch140 to convert /var/cache/man/whatis encodings to UTF-8 <BTS:846>
|
|
|
|
+- added Requires: gawk, grep (used at apropos, makewhatis)
|
|
|
|
+
|
|
* Fri Sep 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5o-5
|
|
* Fri Sep 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5o-5
|
|
- used less as pager again
|
|
- used less as pager again
|
|
- fixed SOURCE1, 2 <BTS:846>
|
|
- fixed SOURCE1, 2 <BTS:846>
|