man-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. %define _mandir %{_datadir}/man
  2. Summary: A set of documentation tools: man, apropos and whatis.
  3. Summary(ja): ドキュメンテーション・ツール: man, apropos, whatis
  4. Name: man
  5. Version: 1.5o
  6. Release: 4%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Base
  9. Source0: http://www.kernel.org/pub/linux/utils/man/man-%{version}.tar.bz2
  10. Source1: makewhatis.cronweekly
  11. Source2: makewhatis.crondaily
  12. Patch1: man-1.5m2-confpath.patch
  13. Patch5: man-1.5i-nonascii.patch
  14. Patch6: man-1.5m2-security.patch
  15. Patch7: man-1.5m2-mandirs.patch
  16. Patch8: man-1.5h1-bug11621.patch
  17. Patch9: man-1.5m2-sofix.patch
  18. Patch10: man-1.5m2-buildroot.patch
  19. Patch12: man-1.5m2-ro-usr.patch
  20. Patch15: man-1.5h1-lookon.patch
  21. Patch17: man-1.5m2-utf8.patch
  22. # Vine Source(s)/Patch(es)
  23. Patch101: man-1.5h1-gencat.patch
  24. Patch106: man-man2html_aux_path.patch
  25. Patch107: man-1.5m2-hman-use-w3m.patch
  26. Patch108: man-1.5m2-no-mansearch.patch
  27. Patch110: man-1.5o-tmpcache.patch
  28. Patch120: man-1.5o-convert-manpage-to-utf8.patch
  29. Patch130: man-1.5o-utf8-msgs.patch
  30. Buildroot: %{_tmppath}/%{name}-%{version}-root
  31. Requires(post): coreutils
  32. Requires: groff, lv, findutils, coreutils
  33. Requires: nkf
  34. Requires: bzip2, gzip
  35. BuildPreReq: bzip2, gzip
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: shaolin, daisuke
  39. %description
  40. The man package includes three tools for finding information and/or
  41. documentation about your Linux system: man, apropos and whatis. The
  42. man system formats and displays on-line manual pages about commands or
  43. functions on your system. Apropos searches the whatis database
  44. (containing short descriptions of system commands) for a string.
  45. Whatis searches its own database for a complete word.
  46. The man package should be installed on your system because it is the
  47. primary way to find documentation on a Linux system.
  48. %description -l ja
  49. マニュアルページを表示するためのプログラムmanの日本語対応版です.
  50. 日本語対応のgroffパッケージが必要です. 特定のキーワードに関連する文書
  51. を探すための whatis や apropos も含んでいます.
  52. 環境変数 LANG=ja_JP.* の時には、
  53. 1.JMANプロジェクトまたはオリジナルソースに付随する日本語マニュアル
  54. 2.オリジナル・ソースに付随する英語マニュアル
  55. という順でマニュアルの検索がなされます。英語マニュアルを見る場合は、
  56. LANG=C man などとして利用してください。
  57. %package -n man2html
  58. Summary: manroff to HTML converter
  59. Summary(ja): manroff から HTML への変換器
  60. Group: Applications/System
  61. Requires: %{name} = %{version}-%{release}
  62. %description -n man2html
  63. This package contains manroff to HTML converter.
  64. %description -n man2html -l ja
  65. このパッケージには、manroff から HTMLへのコンバータが含まれています。
  66. %prep
  67. %setup -q
  68. %patch1 -p1 -b .confpath
  69. %patch6 -p1 -b .security
  70. %patch7 -p1 -b .mandirs
  71. %patch9 -p1 -b .sofix
  72. %patch10 -p1 -b .less
  73. %patch12 -p1 -b .usr
  74. %patch101 -p1
  75. %patch17 -p1 -b .utf8
  76. %patch106 -p1 -b .aux
  77. %patch107 -p1 -b .w3m
  78. %if ! 0%{?mansearch}
  79. %patch108 -p1 -b .search
  80. %endif
  81. %patch110 -p1 -b .tmpcache
  82. %patch120 -p1 -b .convert-man-to-utf8
  83. %patch130 -p1 -b .utf8-msgs
  84. pushd msgs
  85. %__mv mess.ja mess.ja_JP.eucJP
  86. %__mv mess.ja.codeset mess.ja_JP.eucJP.codeset
  87. iconv -f euc-jp -t utf-8 mess.ja_JP.eucJP > mess.ja
  88. echo "$ codeset=utf-8" > mess.ja.codeset
  89. popd
  90. %build
  91. ./configure -default +fhs +lang en,ja,ja_JP.eucJP -confdir %{_sysconfdir}
  92. make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE"
  93. # use lv as PAGER instead of less
  94. pushd src
  95. mv man.conf man.conf.orig
  96. #sed -e 's/less -is/less -isMr/g' man.conf.orig > man.conf
  97. sed -e 's/less -is/lv -c/g' man.conf.orig > man.conf
  98. popd
  99. %install
  100. rm -rf $RPM_BUILD_ROOT
  101. mkdir -p %{buildroot}%{_sysconfdir}/cron.{daily,weekly}
  102. make install PREFIX=$RPM_BUILD_ROOT
  103. %__mv %{buildroot}%{_mandir}/man5/man.conf.5 %{buildroot}%{_mandir}/man5/man.config.5
  104. %__mv %{buildroot}%{_mandir}/ja/man5/man.conf.5 %{buildroot}%{_mandir}/ja/man5/man.config.5
  105. install -m755 %{_sourcedir}/makewhatis.cronweekly %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis.cron
  106. install -m755 %{_sourcedir}/makewhatis.crondaily %{buildroot}%{_sysconfdir}/cron.daily/makewhatis.cron
  107. mkdir -p $RPM_BUILD_ROOT/var/cache
  108. mkdir -p $RPM_BUILD_ROOT/var/cache/man/local
  109. mkdir -p $RPM_BUILD_ROOT/var/cache/man/X11R6
  110. mkdir -p $RPM_BUILD_ROOT/var/cache/ja
  111. mkdir -p $RPM_BUILD_ROOT/var/cache/man/local/ja
  112. mkdir -p $RPM_BUILD_ROOT/var/cache/man/X11R6/ja
  113. for i in 1 2 3 4 5 6 7 8 9 n; do
  114. mkdir -p $RPM_BUILD_ROOT/var/cache/man/cat$i
  115. mkdir -p $RPM_BUILD_ROOT/var/cache/man/local/cat$i
  116. mkdir -p $RPM_BUILD_ROOT/var/cache/man/X11R6/cat$i
  117. mkdir -p $RPM_BUILD_ROOT/var/cache/man/ja/cat$i
  118. mkdir -p $RPM_BUILD_ROOT/var/cache/man/local/ja/cat$i
  119. mkdir -p $RPM_BUILD_ROOT/var/cache/man/X11R6/ja/cat$i
  120. done
  121. # added man2html stuff
  122. cd man2html
  123. make install PREFIX=$RPM_BUILD_ROOT
  124. # symlinks for manpath
  125. ( cd $RPM_BUILD_ROOT
  126. ln -s man ./usr/bin/manpath
  127. ln -s man.1.gz .%{_mandir}/man1/manpath.1.gz
  128. ln -s man.1.gz .%{_mandir}/ja/man1/manpath.1.gz
  129. )
  130. # symlinks for compatibility
  131. ln -s man $RPM_BUILD_ROOT/usr/bin/jman
  132. %preun
  133. # Clean up accumulated cat litter.
  134. rm -f /var/cache/man/cat[123456789n]/*
  135. rm -f /var/cache/man/local/cat[123456789n]/*
  136. rm -f /var/cache/man/X11R6/cat[123456789n]/*
  137. rm -f /var/cache/man/ja/cat[123456789n]/*
  138. rm -f /var/cache/man/local/ja/cat[123456789n]/*
  139. rm -f /var/cache/man/X11R6/ja/cat[123456789n]/*
  140. %post
  141. rm -f /var/cache/man/cat[123456789n]/*
  142. rm -f /var/cache/man/local/cat[123456789n]/*
  143. rm -f /var/cache/man/X11R6/cat[123456789n]/*
  144. rm -f /var/cache/man/ja/cat[123456789n]/*
  145. rm -f /var/cache/man/local/ja/cat[123456789n]/*
  146. rm -f /var/cache/man/X11R6/ja/cat[123456789n]/*
  147. %clean
  148. rm -rf $RPM_BUILD_ROOT
  149. %files
  150. %defattr(-,root,root)
  151. %doc README* COPYING HISTORY INSTALL LSM TODO
  152. %config(noreplace) %{_sysconfdir}/cron.weekly/makewhatis.cron
  153. %config(noreplace) %{_sysconfdir}/cron.daily/makewhatis.cron
  154. %attr(2755,root,man) /usr/bin/man
  155. /usr/bin/jman
  156. /usr/bin/manpath
  157. /usr/bin/apropos
  158. /usr/bin/whatis
  159. /usr/sbin/makewhatis
  160. %config(noreplace) %{_sysconfdir}/man.config
  161. #%config(noreplace) %{_sysconfdir}/man-j.config
  162. %{_mandir}/man1/man.1*
  163. %{_mandir}/man1/manpath.1*
  164. %{_mandir}/man1/apropos.1*
  165. %{_mandir}/man1/whatis.1*
  166. %{_mandir}/man5/man.config.5*
  167. %{_mandir}/man8/makewhatis.8*
  168. %{_mandir}/ja/man1/man.1*
  169. %{_mandir}/ja/man1/manpath.1*
  170. %{_mandir}/ja/man1/apropos.1*
  171. %{_mandir}/ja/man1/whatis.1*
  172. %{_mandir}/ja/man5/man.config.5*
  173. /usr/share/locale/*/man
  174. %attr(0775,root,man) %dir /var/cache/man
  175. %attr(0775,root,man) %dir /var/cache/man/cat[123456789n]
  176. %attr(0775,root,man) %dir /var/cache/man/local
  177. %attr(0775,root,man) %dir /var/cache/man/local/cat[123456789n]
  178. %attr(0775,root,man) %dir /var/cache/man/X11R6
  179. %attr(0775,root,man) %dir /var/cache/man/X11R6/cat[123456789n]
  180. %attr(0775,root,man) %dir /var/cache/man/ja
  181. %attr(0775,root,man) %dir /var/cache/man/ja/cat[123456789n]
  182. %attr(0775,root,man) %dir /var/cache/man/local/ja
  183. %attr(0775,root,man) %dir /var/cache/man/local/ja/cat[123456789n]
  184. %attr(0775,root,man) %dir /var/cache/man/X11R6/ja
  185. %attr(0775,root,man) %dir /var/cache/man/X11R6/ja/cat[123456789n]
  186. %files -n man2html
  187. %defattr(-,root,root)
  188. %doc man2html/README man2html/TODO
  189. /usr/bin/man2html
  190. %{_mandir}/man1/man2html.1*
  191. %if 0%{?mansearch}
  192. /home/httpd/cgi-bin/man/mansearch
  193. /home/httpd/cgi-bin/man/mansearchhelp
  194. %{_datadir}/man2html/mansearch.aux
  195. %{_datadir}/man2html/mansearchhelp.aux
  196. /var/man2html/.glimpse_filters
  197. %endif
  198. %changelog
  199. * Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5o-4
  200. - remove Patch120(run-groff-in-eucjp)
  201. - add new Patch120 to convert manpage to utf8 before formatting.
  202. - add Requires: nkf
  203. * Wed Jul 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5o-3
  204. - remove jman and man-j.config
  205. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5o-2
  206. - spec in utf-8
  207. - drop man2html cgi script
  208. * Sat May 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5o-1
  209. - add Patch120 to run groff in eucJP locale if current locale
  210. is eucJP or not.
  211. - add Patch130 to add utf8 messages
  212. - use lv as pager
  213. - add lv to Requires, remove less.
  214. * Sun Dec 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5o-0vl5
  215. - update man[-j].config (using -r option instead of -R on less)
  216. * Sun Sep 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5o-0vl4
  217. - update man[-j].config (less option @ PAGER)
  218. * Wed Dec 20 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.5o-0vl3
  219. - update makewhatis.cronweekly: always use -w option. <BTS:VineLinux:336>
  220. * Sat Dec 16 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.5o-0vl2
  221. - update Source1 & 2: set LANG variable for makewhatis. <BTS:VineLinux:336>
  222. - add patch110 to make makewhatis -u works correctly. <BTS:VineLinux:336>
  223. * Mon Aug 30 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.5o-0vl1
  224. - update to 1.5o
  225. - remove patches reflected in base: 105(mansec-loop), 109(man-ja-typo).
  226. - remove patch104(msgs): resolved by adding codeset to gencat.
  227. * Fri Jun 18 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.5m2-0vl2
  228. - separate man2html package for man2html and CGI scripts,
  229. and make it depends on apache.
  230. - change owner of /var/man2html from nobody to apache
  231. - Patch107: hman use w3m by default
  232. - Patch108: remove mansearch CGI because it does not work without glimpse
  233. - Patch106: move cgi-aux directory to %{_datadir}/man2html (from PLD Linux)
  234. - Patch105: fix a fatal bug in mansec CGI
  235. - Patch109: fix typo in Japanese man.1 man page
  236. - re-enable Patch17(utf) not to output latin-1 to euc-jp terminal
  237. - add Japanese manpath.1 man page
  238. - add docs
  239. - add dependencies to bzip2 and gzip
  240. * Wed May 26 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.5m2-0vl1
  241. - update to 1.5m2
  242. - remove patches reflected in base:
  243. 2(i18n) 14(newline) 18(root) 19(overflow)
  244. 20(quote) 21(fixcache) 22(nocache) 100(ja)
  245. - default config change to create cache
  246. - makewhatis now does not read Japanese man pages by default
  247. - noreplace config files
  248. - drop Patch5(nonascii): grep -a is not needed for most non-ASCII text
  249. - drop Patch8(bug11621): less -r is not needed and rather dangerous
  250. - drop Patch15(lookon): incorporated but disabled because of its disadvantage
  251. - drop Patch17(utf8) and Patch103(configure.nroff): they canceled each other
  252. - modify patches (1,6,7,9,10,12) to apply to 1.5m2
  253. - rename man page of man.config by mv, not patch(3,4)
  254. - give owner/group of buildroot/var/man2html as parameters instead of patch102
  255. - gencat now requires LC_CTYPE is set properly
  256. - add Patch104(msgs): only make catalogs of specified languages
  257. * Mon Dec 31 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5i-0vl5
  258. - Oh my /usr/share/locale/{en,ja}/man were missing. Fixed.
  259. * Thu Oct 18 2001 Jun Nishii <jun@vinelinux.org> 1.5i-0vl4
  260. - added PATH in makewhatis.cron*
  261. * Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
  262. - 1.5i-0vl3: fix grammatical error in makewhatis
  263. * Sat Sep 1 2001 Jun Nishii <jun@vinelinux.org>
  264. - build for VineSeed
  265. * Sat Sep 1 2001 Jun Nishii <jun@vinelinux.org> 1.5i-0vl1
  266. - follow up with rawhide for security fix
  267. * Thu Jul 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  268. - added makewhatis (8) man.
  269. - modified security patch for cache path.
  270. * Wed Jul 13 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  271. - renew SPEC from rawhide.
  272. - removed /home/httpd/cgi-{bin|aux}/man* from %files that does not exist.
  273. - modified ja patch to recognize "/jman/" dir as Japanese manual.
  274. - remove unnecessary SGID from jman command.
  275. * Mon Jun 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  276. - gzip the man pages manually - since file doesn't recognize them as
  277. man pages, the build root policy doesn't do it (Bug #12015)
  278. * Tue May 16 2000 Preston Brown <pbrown@redhat.com>
  279. - default man path is now /usr/share/man. /usr/man maintained for compat.
  280. - remove +sgid option to allow builds as a normal user. SPEC file maintains
  281. proper permissions.
  282. * Tue May 9 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  283. - modified man-ja patch to fix my stupid mistake of makewhatis.sh.
  284. * Tue Apr 18 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  285. - modified jman-vine.sh to set ja_JP.eucJP locale.
  286. * Tue Apr 18 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  287. - updated to 1.5h1
  288. - modified man-j.config to sync with man-1.5h1 default.
  289. - renew SPEC from RH6.2
  290. * Wed Mar 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  291. - Add kerberos man paths to man.config (Bug #11168 + extra fixes)
  292. * Tue Feb 29 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  293. - 1.5h1 - this has a better fix for the security problems.
  294. - remove manpath patch (now in base)
  295. - remove loop patch (now in base)
  296. * Mon Feb 28 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  297. - Fix security problems related to buffer overruns caused by oversized
  298. enviroment variables
  299. * Thu Feb 3 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  300. - deal with rpm gziping man pages
  301. - fix file locking (Bug #8947)
  302. * Thu Dec 23 1999 Yasuyuki Furukawa <furukawa@vinelinux.org>
  303. - replace jman script to keep orignal man binary.
  304. - renew man-ja patch
  305. * Fri Nov 12 1999 Jun Nishii <jun@flatout.org>
  306. - ported for Vine Linux
  307. * Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
  308. - strip man2html
  309. * Fri Sep 10 1999 Cristian Gafton <gafton@redhat.com>
  310. - revert to latin1 instead of ascii
  311. * Wed Jun 16 1999 Cristian Gafton <gafton@redhat.com>
  312. - fixed man2html loop on terminfo.5 (patrch from the author; #3316)
  313. * Mon May 10 1999 Michael K. Johnson <johnsonm@redhat.com>
  314. - fixed #2532 by adding /usr/local/sbin as a MANPATH_MAP
  315. * Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
  316. - cron.weekly rebuilds, cron.daily updates in minimal time
  317. * Fri Apr 09 1999 Preston Brown <pbrown@redhat.com>
  318. - man 1.5g bugfix release
  319. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  320. - auto rebuild in the new build environment (release 5)
  321. * Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com>
  322. - add manpath symlinks (#1138).
  323. * Fri Feb 12 1999 Michael Maher <mike@redhat.com>
  324. - fixed bug #792
  325. - added man2html files
  326. * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
  327. - build for 6.0
  328. - upgraded to 1.5e
  329. - properly buildrooted
  330. * Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
  331. - enable fsstnd organization
  332. - change /var/catman/X11 to X11R6
  333. - %post/%preun to clean up cat litter
  334. * Tue Jun 02 1998 Prospector System <bugs@redhat.com>
  335. - translations modified for de
  336. * Tue Jun 02 1998 Erik Troan <ewt@redhat.com>
  337. - you can't do free(malloc(10) + 4) <sigh>
  338. * Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
  339. - upgraded to 1.5d
  340. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  341. - translations modified for de, fr, tr
  342. * Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
  343. - updated to 1.5a
  344. * Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
  345. - uses a build root
  346. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  347. - updated to man-1.4j, which fixes some security problems; release 1 is
  348. for RH 4.2, release 2 is for glibc
  349. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  350. - built against glibc
  351. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  352. - Added /usr/lib/perl5/man to default manpath