man-db-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. %bcond_with check
  2. %global cache /var/cache/man
  3. # Basic Information
  4. Name: man-db
  5. Version: 2.8.5
  6. Release: 2%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Base
  9. Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
  10. Source1: man-db.crondaily
  11. Source2: man-db.sysconfig
  12. Patch0: man-db-2.8.3-change-owner-of-man-cache.patch
  13. # http://lists.nongnu.org/archive/html/man-db-devel/2017-01/msg00013.html
  14. Patch1: man-db-2.7.6.1-fix-override-dir-handling.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: yasumichi
  19. Summary: the man-db manual pager suite
  20. Summary(ja): man-dbマニュアルページャスイート
  21. # Dependency
  22. Requires: groff >= 1.20.1
  23. BuildRequires: groff >= 1.20.1
  24. Requires: gdbm
  25. BuildRequires: gdbm-devel
  26. BuildRequires: libpipeline-devel >= 1.1.0
  27. BuildRequires: zlib-devel
  28. BuildRequires: po4a
  29. Obsoletes: man
  30. Provides: man
  31. %description
  32. This package provides the man command. This utility is the primary way of
  33. examining the on-line help files (manual pages). Other utilities provided
  34. include the whatis and apropos commands for searching the manual page
  35. database, the manpath utility for determining the manual page search path,
  36. and the maintenance utilities mandb, catman, and zsoelim. This package uses
  37. the groff suite of programs to format and display the manual pages.
  38. %description -l ja
  39. このパッケージは、man コマンドを提供します。このユーティリティの主な用途は
  40. ヘルプファイル(マニュアルページ)を調べることです。他のユーティリティとして
  41. マニュアルページデータベースを検索するための whatis と apropos コマンド、
  42. マニュアルページの検索パスを決定する manpath ユーティリティ、および
  43. メンテナンスユーティリティである mandb、catman および zsoelim を提供します。
  44. このパッケージは、マニュアルページを整形および表示するために groff プログラム
  45. スイートを利用しています。
  46. %prep
  47. %autosetup -p1
  48. %build
  49. %configure \
  50. --disable-setuid --disable-cache-owner \
  51. --with-browser=elinks --with-lzip=lzip \
  52. --with-override-dir=overrides
  53. %{__make} %{?_smp_mflags}
  54. %install
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
  57. # move the documentation to the relevant place
  58. mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
  59. # remove zsoelim man page - part of groff package
  60. rm $RPM_BUILD_ROOT%{_datadir}/man/man1/zsoelim.1
  61. # remove libtool archives
  62. rm $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
  63. # install cron script for man-db creation/update
  64. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
  65. install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/man-db.cron
  66. # config for cron script
  67. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
  68. install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/man-db
  69. # install cache directory
  70. install -d -m 0755 $RPM_BUILD_ROOT%{cache}
  71. %find_lang %{name}
  72. %find_lang %{name}-gnulib
  73. # drop files for systemd
  74. rm -rf %{buildroot}/lib/systemd
  75. rm -rf %{buildroot}%{_prefix}/lib/tmpfiles.d
  76. %if %{with check}
  77. %check
  78. make check
  79. %endif
  80. %clean
  81. %{__rm} -rf ${RPM_BUILD_ROOT}
  82. # clear the old cache
  83. %post
  84. %{__rm} -rf %{cache}/*
  85. %files -f %{name}.lang -f %{name}-gnulib.lang
  86. %defattr(-,root,root)
  87. %doc ChangeLog NEWS README
  88. %config(noreplace) %{_sysconfdir}/man_db.conf
  89. %config(noreplace) %{_sysconfdir}/sysconfig/man-db
  90. %{_sysconfdir}/cron.daily/man-db.cron
  91. %{_bindir}/apropos
  92. %{_bindir}/catman
  93. %{_bindir}/lexgrog
  94. %{_bindir}/man
  95. %{_bindir}/mandb
  96. %{_bindir}/manpath
  97. %{_bindir}/whatis
  98. %{_libdir}/man-db
  99. %{_libexecdir}/man-db
  100. %{_sbindir}/accessdb
  101. %{_defaultdocdir}/man-db
  102. %attr(0755,root,root) %dir %{cache}
  103. %lang(da) %{_mandir}/da/man*/*
  104. %lang(de) %{_mandir}/de/man*/*
  105. %lang(es) %{_mandir}/es/man*/*
  106. %lang(fr) %{_mandir}/fr/man*/*
  107. %lang(id) %{_mandir}/id/man*/*
  108. %lang(it) %{_mandir}/it/man*/*
  109. %lang(ja) %{_mandir}/ja/man*/*
  110. %lang(nl) %{_mandir}/nl/man*/*
  111. %lang(pl) %{_mandir}/pl/man*/*
  112. %lang(pt) %{_mandir}/pt/man*/*
  113. %lang(pt_BR) %{_mandir}/pt_BR/man*/*
  114. %lang(ru) %{_mandir}/ru/man*/*
  115. %lang(sr) %{_mandir}/sr/man*/*
  116. %lang(sv) %{_mandir}/sv/man*/*
  117. %lang(tr) %{_mandir}/tr/man*/*
  118. %lang(zh_CN) %{_mandir}/zh_CN/man*/*
  119. %{_mandir}/man1/apropos.1.*
  120. %{_mandir}/man1/lexgrog.1.*
  121. %{_mandir}/man1/man.1.*
  122. %{_mandir}/man1/manconv.1.*
  123. %{_mandir}/man1/manpath.1.*
  124. %{_mandir}/man1/whatis.1.*
  125. %{_mandir}/man5/manpath.5.*
  126. %{_mandir}/man8/accessdb.8.*
  127. %{_mandir}/man8/catman.8.*
  128. %{_mandir}/man8/mandb.8.*
  129. %changelog
  130. * Wed May 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.5-2
  131. - fixed options for configure.
  132. - imported Patch1 and 1 from rawhide.
  133. * Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.5-1
  134. - new upstream release.
  135. - added BR:zlib-devel.
  136. * Sat Jan 25 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.6-1
  137. - new upstream release
  138. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.3-1
  139. - new upstream release
  140. - add BR: libpipeline-devel instead of libpipeline
  141. - add BR: po4a
  142. * Fri Sep 23 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.0.2-1
  143. - new upstream release.
  144. - remove Patch0.
  145. * Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.9-1
  146. - new upstream release.
  147. - add Source1,Source2 and Patch0 from fedora.
  148. * Tue Nov 16 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.5.8-1
  149. - initial build for Vine Linux