man-vl.spec 16 KB

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