source: projects/specs/trunk/m/man/man-vl.spec @ 3632

Revision 3632, 15.6 KB checked in by iwaim, 13 years ago (diff)

man-1.5o-7

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