123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- %bcond_with systemd
- %bcond_with check
- %global cache /var/cache/man
- # Basic Information
- Name: man-db
- Summary: the man-db manual pager suite
- Summary(ja): man-dbマニュアルページャスイート
- Version: 2.13.1
- Release: 1%{?_dist_release}%{?with_systemd:.systemd}
- License: GPL
- Group: system,documentation
- Vendor: Project Vine
- Distribution: Vine Linux
- URL: https://savannah.nongnu.org/projects/man-db
- Source0: https://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.xz
- Source1: man-db.crondaily
- Source2: man-db.sysconfig
- Source5: man-db-cache-update.service
- Source6: man-db-restart-cache-update.service
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- # Dependency
- Requires: groff >= 1.20.1
- BuildRequires: groff >= 1.20.1
- Requires: gdbm
- BuildRequires: gdbm-devel
- BuildRequires: libpipeline-devel >= 1.1.0
- BuildRequires: pkgconfig(zlib)
- BuildRequires: po4a
- Obsoletes: man
- Provides: man
- %description
- This package provides the man command. This utility is the primary way of
- examining the on-line help files (manual pages). Other utilities provided
- include the whatis and apropos commands for searching the manual page
- database, the manpath utility for determining the manual page search path,
- and the maintenance utilities mandb, catman, and zsoelim. This package uses
- the groff suite of programs to format and display the manual pages.
- %description -l ja
- このパッケージは、man コマンドを提供します。このユーティリティの主な用途は
- ヘルプファイル(マニュアルページ)を調べることです。他のユーティリティとして
- マニュアルページデータベースを検索するための whatis と apropos コマンド、
- マニュアルページの検索パスを決定する manpath ユーティリティ、および
- メンテナンスユーティリティである mandb、catman および zsoelim を提供します。
- このパッケージは、マニュアルページを整形および表示するために groff プログラム
- スイートを利用しています。
- %debug_package
- %prep
- %autosetup -p1
- %build
- %configure \
- --disable-setuid --disable-cache-owner \
- --with-systemdsystemunitdir=no \
- --with-browser=elinks --with-lzip=lzip \
- --with-override-dir=overrides
- %{__make} %{?_smp_mflags}
- %install
- make install DESTDIR=%{buildroot} prefix=%{_prefix} INSTALL='install -p'
- # move the documentation to the relevant place
- mv %{buildroot}%{_datadir}/doc/man-db/* ./
- # remove zsoelim man page - part of groff package
- rm %{buildroot}%{_datadir}/man/man1/zsoelim.1
- # remove libtool archives
- rm %{buildroot}%{_libdir}/man-db/*.la
- %if %{with systemd}
- # man-db-cache-update.service and man-db-restart-cache-update.service
- install -D -p -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/man-db-cache-update.service
- install -D -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/man-db-restart-cache-update.service
- %else
- rm -f %{buildroot}/usr/lib/tmpfiles.d/man-db.conf
- # install cron script for man-db creation/update
- mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
- install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.daily/man-db.cron
- %endif
- # config for cron script
- mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
- install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/man-db
- # install cache directory
- install -d -m 0755 %{buildroot}%{cache}
- %find_lang %{name}
- %find_lang %{name}-gnulib
- %if %{with check}
- %check
- make check
- %endif
- %pre
- # stop and disable timer from previous builds
- if [ -e /usr/lib/systemd/system/mandb.timer ]; then
- if test -d /run/systemd; then
- systemctl stop man-db.timer >/dev/null 2>&1 || :
- systemctl -q disable man-db.timer >/dev/null 2>&1 || :
- fi
- fi
- %post
- # clear the old cache
- %{__rm} -rf %{cache}/*
- %transfiletriggerin -- %{_mandir}
- # update cache
- if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
- /usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update >/dev/null 2>&1 || :
- fi
- %transfiletriggerpostun -- %{_mandir}
- # update cache
- if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
- /usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update >/dev/null 2>&1 || :
- fi
- %files -f %{name}.lang -f %{name}-gnulib.lang
- %doc ChangeLog NEWS README
- %config(noreplace) %{_sysconfdir}/man_db.conf
- %config(noreplace) %{_sysconfdir}/sysconfig/man-db
- %if %{with systemd}
- %{_unitdir}/man-db-cache-update.service
- %{_unitdir}/man-db-restart-cache-update.service
- %config(noreplace) %{_tmpfilesdir}/man-db.conf
- %else
- %{_sysconfdir}/cron.daily/man-db.cron
- %endif
- %{_bindir}/apropos
- %{_bindir}/catman
- %{_bindir}/lexgrog
- %{_bindir}/man
- %{_bindir}/man-recode
- %{_bindir}/mandb
- %{_bindir}/manpath
- %{_bindir}/whatis
- %{_libdir}/man-db
- %{_libexecdir}/man-db
- %{_sbindir}/accessdb
- %{_defaultdocdir}/man-db
- %attr(0755,root,root) %dir %{cache}
- %lang(da) %{_mandir}/da/man*/*
- %lang(de) %{_mandir}/de/man*/*
- %lang(es) %{_mandir}/es/man*/*
- %lang(fr) %{_mandir}/fr/man*/*
- %lang(id) %{_mandir}/id/man*/*
- %lang(it) %{_mandir}/it/man*/*
- %lang(ja) %{_mandir}/ja/man*/*
- %lang(ko) %{_mandir}/ko/man*/*
- %lang(nl) %{_mandir}/nl/man*/*
- %lang(pl) %{_mandir}/pl/man*/*
- %lang(pt) %{_mandir}/pt/man*/*
- %lang(pt_BR) %{_mandir}/pt_BR/man*/*
- %lang(ru) %{_mandir}/ru/man*/*
- %lang(ro) %{_mandir}/ro/man*/*
- %lang(sr) %{_mandir}/sr/man*/*
- %lang(sv) %{_mandir}/sv/man*/*
- %lang(tr) %{_mandir}/tr/man*/*
- %lang(uk) %{_mandir}/uk/man*/*
- %lang(zh_CN) %{_mandir}/zh_CN/man*/*
- %{_mandir}/man1/apropos.1.*
- %{_mandir}/man1/lexgrog.1.*
- %{_mandir}/man1/man.1.*
- %{_mandir}/man1/man-recode.1*
- %{_mandir}/man1/manconv.1.*
- %{_mandir}/man1/manpath.1.*
- %{_mandir}/man1/whatis.1.*
- %{_mandir}/man5/manpath.5.*
- %{_mandir}/man8/accessdb.8.*
- %{_mandir}/man8/catman.8.*
- %{_mandir}/man8/mandb.8.*
- %changelog
- * Mon Jun 16 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.13.1-1
- - new upstream release.
- * Wed May 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.5-2
- - fixed options for configure.
- - imported Patch1 and 1 from rawhide.
- * Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.5-1
- - new upstream release.
- - added BR:zlib-devel.
- * Sat Jan 25 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.6-1
- - new upstream release
- * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.3-1
- - new upstream release
- - add BR: libpipeline-devel instead of libpipeline
- - add BR: po4a
- * Fri Sep 23 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.0.2-1
- - new upstream release.
- - remove Patch0.
- * Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.9-1
- - new upstream release.
- - add Source1,Source2 and Patch0 from fedora.
- * Tue Nov 16 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.8-1
- - initial build for Vine Linux
|