man-vl.spec 15 KB

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