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

Revision 1889, 14.9 KB checked in by inagaki, 14 years ago (diff)

updated: less, man

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