|
@@ -1,3 +1,5 @@
|
|
|
|
+%global cache /var/cache/man
|
|
|
|
+
|
|
# Basic Information
|
|
# Basic Information
|
|
Name: man-db
|
|
Name: man-db
|
|
Version: 2.5.9
|
|
Version: 2.5.9
|
|
@@ -5,6 +7,8 @@ Release: 1%{?_dist_release}
|
|
License: GPL
|
|
License: GPL
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
+Source1: man-db.crondaily
|
|
|
|
+Source2: man-db.sysconfig
|
|
Patch0: man-db-2.5.9-config.patch
|
|
Patch0: man-db-2.5.9-config.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
@@ -16,12 +20,12 @@ Summary: the man-db manual pager suite
|
|
Summary(ja): man-dbマニュアルページャスイート
|
|
Summary(ja): man-dbマニュアルページャスイート
|
|
|
|
|
|
# Dependency
|
|
# Dependency
|
|
-# 以下に依存関係を記述してください。
|
|
|
|
Requires: groff >= 1.20.1
|
|
Requires: groff >= 1.20.1
|
|
BuildRequires: groff >= 1.20.1
|
|
BuildRequires: groff >= 1.20.1
|
|
Requires: gdbm
|
|
Requires: gdbm
|
|
BuildRequires: gdbm-devel
|
|
BuildRequires: gdbm-devel
|
|
|
|
|
|
|
|
+Obsoletes: man
|
|
Provides: man
|
|
Provides: man
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -32,14 +36,21 @@ database, the manpath utility for determining the manual page search path,
|
|
and the maintenance utilities mandb, catman, and zsoelim. This package uses
|
|
and the maintenance utilities mandb, catman, and zsoelim. This package uses
|
|
the groff suite of programs to format and display the manual pages.
|
|
the groff suite of programs to format and display the manual pages.
|
|
|
|
|
|
-#%%description -l ja
|
|
+%description -l ja
|
|
|
|
+このパッケージは、man コマンドを提供します。このユーティリティの主な用途は
|
|
|
|
+ヘルプファイル(マニュアルページ)を調べることです。他のユーティリティとして
|
|
|
|
+マニュアルページデータベースを検索するための whatis と apropos コマンド、
|
|
|
|
+マニュアルページの検索パスを決定する manpath ユーティリティ、および
|
|
|
|
+メンテナンスユーティリティである mandb、catman および zsoelim を提供します。
|
|
|
|
+このパッケージは、マニュアルページを整形および表示するために groff プログラム
|
|
|
|
+スイートを利用しています。
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch0 -p1 -b .conf
|
|
%patch0 -p1 -b .conf
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure
|
|
+%configure --disable-setuid
|
|
%{__make} %{?_smp_mflags}
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -52,6 +63,16 @@ the groff suite of programs to format and display the manual pages.
|
|
%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/man-db/libman.la
|
|
%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/man-db/libman.la
|
|
%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/man-db/libmandb.la
|
|
%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/man-db/libmandb.la
|
|
|
|
|
|
|
|
+# install cache directory
|
|
|
|
+install -d -m 0755 $RPM_BUILD_ROOT%{cache}
|
|
|
|
+
|
|
|
|
+# install cron script for man-db creation/update
|
|
|
|
+install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
|
|
|
|
+
|
|
|
|
+# config for cron script
|
|
|
|
+install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
|
|
|
|
+
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
@@ -59,7 +80,9 @@ the groff suite of programs to format and display the manual pages.
|
|
%files -f %{name}.lang -f %{name}-gnulib.lang
|
|
%files -f %{name}.lang -f %{name}-gnulib.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog NEWS README
|
|
%doc ChangeLog NEWS README
|
|
-%{_sysconfdir}/man_db.conf
|
|
+%config(noreplace) %{_sysconfdir}/man_db.conf
|
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
|
|
|
+%{_sysconfdir}/cron.daily/man-db.cron
|
|
%{_bindir}/apropos
|
|
%{_bindir}/apropos
|
|
%{_bindir}/catman
|
|
%{_bindir}/catman
|
|
%{_bindir}/lexgrog
|
|
%{_bindir}/lexgrog
|
|
@@ -72,59 +95,28 @@ the groff suite of programs to format and display the manual pages.
|
|
%{_libexecdir}/man-db
|
|
%{_libexecdir}/man-db
|
|
%{_sbindir}/accessdb
|
|
%{_sbindir}/accessdb
|
|
%{_defaultdocdir}/man-db
|
|
%{_defaultdocdir}/man-db
|
|
-%{_mandir}/de/man1/apropos.1.gz
|
|
+%attr(0755,root,root) %dir %{cache}
|
|
-%{_mandir}/de/man1/man.1.gz
|
|
+%{_mandir}/de/man*/*
|
|
-%{_mandir}/de/man1/manpath.1.gz
|
|
+%{_mandir}/es/man*/*
|
|
-%{_mandir}/de/man1/whatis.1.gz
|
|
+%{_mandir}/it/man*/*
|
|
-%{_mandir}/de/man1/zsoelim.1.gz
|
|
+%{_mandir}/ja/man*/*
|
|
-%{_mandir}/de/man5/manpath.5.gz
|
|
+%{_mandir}/man1/apropos.1.*
|
|
-%{_mandir}/de/man8/accessdb.8.gz
|
|
+%{_mandir}/man1/lexgrog.1.*
|
|
-%{_mandir}/de/man8/catman.8.gz
|
|
+%{_mandir}/man1/man.1.*
|
|
-%{_mandir}/de/man8/mandb.8.gz
|
|
+%{_mandir}/man1/manconv.1.*
|
|
-%{_mandir}/es/man1/apropos.1.gz
|
|
+%{_mandir}/man1/manpath.1.*
|
|
-%{_mandir}/es/man1/man.1.gz
|
|
+%{_mandir}/man1/whatis.1.*
|
|
-%{_mandir}/es/man1/manpath.1.gz
|
|
+%{_mandir}/man1/zsoelim.1.*
|
|
-%{_mandir}/es/man1/whatis.1.gz
|
|
+%{_mandir}/man5/manpath.5.*
|
|
-%{_mandir}/es/man1/zsoelim.1.gz
|
|
+%{_mandir}/man8/accessdb.8.*
|
|
-%{_mandir}/es/man5/manpath.5.gz
|
|
+%{_mandir}/man8/catman.8.*
|
|
-%{_mandir}/es/man8/accessdb.8.gz
|
|
+%{_mandir}/man8/mandb.8.*
|
|
-%{_mandir}/es/man8/catman.8.gz
|
|
|
|
-%{_mandir}/es/man8/mandb.8.gz
|
|
|
|
-%{_mandir}/it/man1/apropos.1.gz
|
|
|
|
-%{_mandir}/it/man1/man.1.gz
|
|
|
|
-%{_mandir}/it/man1/manpath.1.gz
|
|
|
|
-%{_mandir}/it/man1/whatis.1.gz
|
|
|
|
-%{_mandir}/it/man1/zsoelim.1.gz
|
|
|
|
-%{_mandir}/it/man5/manpath.5.gz
|
|
|
|
-%{_mandir}/it/man8/accessdb.8.gz
|
|
|
|
-%{_mandir}/it/man8/catman.8.gz
|
|
|
|
-%{_mandir}/it/man8/mandb.8.gz
|
|
|
|
-%{_mandir}/ja/man1/apropos.1.gz
|
|
|
|
-%{_mandir}/ja/man1/man.1.gz
|
|
|
|
-%{_mandir}/ja/man1/manpath.1.gz
|
|
|
|
-%{_mandir}/ja/man1/whatis.1.gz
|
|
|
|
-%{_mandir}/ja/man1/zsoelim.1.gz
|
|
|
|
-%{_mandir}/ja/man5/manpath.5.gz
|
|
|
|
-%{_mandir}/ja/man8/accessdb.8.gz
|
|
|
|
-%{_mandir}/ja/man8/catman.8.gz
|
|
|
|
-%{_mandir}/ja/man8/mandb.8.gz
|
|
|
|
-%{_mandir}/man1/apropos.1.gz
|
|
|
|
-%{_mandir}/man1/lexgrog.1.gz
|
|
|
|
-%{_mandir}/man1/man.1.gz
|
|
|
|
-%{_mandir}/man1/manconv.1.gz
|
|
|
|
-%{_mandir}/man1/manpath.1.gz
|
|
|
|
-%{_mandir}/man1/whatis.1.gz
|
|
|
|
-%{_mandir}/man1/zsoelim.1.gz
|
|
|
|
-%{_mandir}/man5/manpath.5.gz
|
|
|
|
-%{_mandir}/man8/accessdb.8.gz
|
|
|
|
-%{_mandir}/man8/catman.8.gz
|
|
|
|
-%{_mandir}/man8/mandb.8.gz
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
* Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.9-1
|
|
* Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.9-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
-- add Patch0 from fedora.
|
|
+- add Source1,Source2 and Patch0 from fedora.
|
|
|
|
|
|
* Tue Nov 16 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.8-1
|
|
* Tue Nov 16 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.8-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|