source: projects/specs/trunk/g/groff/groff-vl.spec @ 729

Revision 729, 9.7 KB checked in by kazutaka, 14 years ago (diff)

Import from latest srpm

Line 
1%define ver 1.18.1
2# clean old caches when groff =< %{cache_clean_ver}
3# is uninstalled.
4%define cache_clean_ver 1.18.1.1-4%{?_dist_release}
5
6Summary: A document formatting system.
7Summary(ja): GNU groff 日本語対応版
8Name: groff
9Version: 1.18.1.1
10Release: 5%{?_dist_release}
11License: GPL
12Group: Applications/Publishing
13
14Vendor: Project Vine
15Distribution: Vine Linux
16
17Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
18Source1: troff-to-ps.fpi
19Source2: groff-tmac-ja.tar.gz
20# Japanese Patch from Debian
21Patch1: groff_1.18.1.1-20.diff.gz
22Patch2: groff-1.18.1.1-fix-minus-char.patch
23
24Buildroot: %{_tmppath}/%{name}-%{version}-root
25BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXext-devel
26BuildRequires: libXmu-devel, libXpm-devel, libXt-devel
27BuildRequires: libXaw-devel >= 1.0.5
28BuildRequires: psutils, byacc, imake, netpbm-progs, ghostscript
29Requires(post,preun): install-info
30Obsoletes: groff-tools
31
32
33%description
34Groff is a document formatting system.  Groff takes standard text and
35formatting commands as input and produces formatted output.  The
36created documents can be shown on a display or printed on a printer.
37Groff's formatting commands allow you to specify font type and size, bold
38type, italic type, the number and size of columns on a page, and more.
39
40You should install groff if you want to use it as a document formatting
41system.  Groff can also be used to format man pages. If you are going
42to use groff with the X Window System, you'll also need to install the
43groff-gxditview package.
44
45%description -l ja
46GNU roff (groff) 日本語対応版です。日本語で書かれたマニュアルを表示す
47るのに必要です.
48
49
50%package perl
51Summary: Parts of the groff formatting system that require Perl.
52Group: Applications/Publishing
53Requires: %{name} = %{version}
54Requires: mktemp
55
56%description perl
57The groff-perl package contains the parts of the groff text processor
58package that require Perl. These include the afmtodit font processor
59for creating PostScript font files, the grog utility that can be used
60to automatically determine groff command-line options, and the
61troff-to-ps print filter.
62
63
64%package gxditview
65Summary: An X previewer for groff text processor output.
66Group: Applications/Publishing
67Requires: %{name} = %{version}
68
69%description gxditview
70Gxditview displays the groff text processor's output on an X Window
71System display.
72
73If you are going to use groff as a text processor, you should install
74gxditview so that you preview your processed text files in X.  You'll also
75need to install the groff package and the X Window System.
76
77
78%prep
79%setup -q -n groff-%{version}
80%patch1 -p1 -b .debian
81%patch2 -p0 -b .fix-minus
82
83
84%build
85PATH=$PATH:/usr/X11R6/bin
86#autoconf
87#configure --enable-japanese
88%configure --enable-multibyte
89make
90
91cd src/xditview
92xmkmf
93make
94cd ../..
95
96
97%install
98[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
99PATH=$PATH:/usr/X11R6/bin
100mkdir -p $RPM_BUILD_ROOT%{_prefix}
101mkdir -p $RPM_BUILD_ROOT%{_mandir}
102%makeinstall manroot=$RPM_BUILD_ROOT%{_mandir}
103
104# install xditview
105cd src/xditview
106make install DESTDIR=$RPM_BUILD_ROOT
107cd ../..
108
109# for groff-ja
110#mkdir -p $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}
111#tar xzf %{SOURCE2} -C $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}
112
113ln -s s.tmac    $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gs
114ln -s mse.tmac  $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gmse
115ln -s m.tmac    $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gm
116ln -s troff     $RPM_BUILD_ROOT%{_bindir}/gtroff
117ln -s tbl       $RPM_BUILD_ROOT%{_bindir}/gtbl
118ln -s pic       $RPM_BUILD_ROOT%{_bindir}/gpic
119ln -s eqn       $RPM_BUILD_ROOT%{_bindir}/geqn
120ln -s neqn      $RPM_BUILD_ROOT%{_bindir}/gneqn
121ln -s refer     $RPM_BUILD_ROOT%{_bindir}/grefer
122ln -s lookbib   $RPM_BUILD_ROOT%{_bindir}/glookbib
123ln -s indxbib   $RPM_BUILD_ROOT%{_bindir}/gindxbib
124ln -s soelim    $RPM_BUILD_ROOT%{_bindir}/gsoelim
125ln -s soelim    $RPM_BUILD_ROOT%{_bindir}/zsoelim
126ln -s nroff     $RPM_BUILD_ROOT%{_bindir}/gnroff
127
128# whether or not build system is compressing man-pages
129ln -s eqn.1     %{buildroot}%{_mandir}/man1/geqn.1
130ln -s indxbib.1 %{buildroot}%{_mandir}/man1/gindxbib.1
131ln -s lookbib.1 %{buildroot}%{_mandir}/man1/glookbib.1
132ln -s neqn.1    %{buildroot}%{_mandir}/man1/gneqn.1
133ln -s nroff.1   %{buildroot}%{_mandir}/man1/gnroff.1
134ln -s pic.1     %{buildroot}%{_mandir}/man1/gpic.1
135ln -s refer.1   %{buildroot}%{_mandir}/man1/grefer.1
136ln -s soelim.1  %{buildroot}%{_mandir}/man1/gsoelim.1
137ln -s soelim.1  %{buildroot}%{_mandir}/man1/zsoelim.1
138ln -s tbl.1     %{buildroot}%{_mandir}/man1/gtbl.1
139ln -s troff.1   %{buildroot}%{_mandir}/man1/gtroff.1
140
141mkdir -p $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
142install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
143
144# document files
145mkdir -p docs-to-install
146cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/%{ver}/* docs-to-install
147rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
148
149#
150rm -f $RPM_BUILD_ROOT%{_infodir}/dir
151rm -rf $RPM_BUILD_ROOT/%{_prefix}/lib/X11/app-defaults
152
153%clean
154[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
155
156%post
157/sbin/install-info --info-dir=%{_infodir} %{_infodir}/groff.gz
158
159%preun
160if [ "$1" = 0 ]; then
161    /sbin/install-info --delete \
162        --info-dir=%{_infodir} %{_infodir}/groff.gz
163fi
164
165%triggerpostun -- %{name} <= %{cache_clean_ver}
166find %{_var}/cache/man -type f -name "*.bz2" -exec %{__rm} -f {} \;
167
168# -f groff-files
169%files
170%defattr(-,root,root)
171%doc BUG-REPORT COPYING ChangeLog NEWS PROBLEMS README TODO
172%doc README.jp ChangeLog.jp docs-to-install/*
173%{_bindir}/*
174%exclude %{_bindir}/gxditview
175%{_datadir}/groff
176%{_libdir}/rhs/*/*
177%{_mandir}/man?/*
178%{_infodir}/*
179%exclude %{_bindir}/afmtodit
180%exclude %{_bindir}/grog
181%exclude %{_bindir}/mmroff
182%exclude %{_mandir}/man1/afmtodit.*
183%exclude %{_mandir}/man1/grog.*
184%exclude %{_mandir}/man1/mmroff.*
185
186
187%files perl
188%defattr(-,root,root)
189%{_bindir}/afmtodit
190%{_bindir}/grog
191%{_bindir}/mmroff
192%{_mandir}/man1/afmtodit.*
193%{_mandir}/man1/grog.*
194%{_mandir}/man1/mmroff.*
195
196
197%files gxditview
198%defattr(-,root,root)
199%{_bindir}/gxditview
200%config %{_sysconfdir}/X11/app-defaults/GXditview
201
202
203%changelog
204* Fri Apr 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.18.1.1-5
205- add %posttriggerun to clean old caches (<BTS:VineLinux:960>)
206
207* Tue Mar 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.18.1.1-4
208- add Patch2 to fix minus/hyphen character width (<BTS:VineLinux:960>)
209- add BuildRequires: psutils, byacc, imake, netpbm-progs, ghostscript
210
211* Tue Apr 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-3
212- remove gxditview from main package
213
214* Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-2
215- rebuild with libXaw.so.7 (libXaw-1.0.5)
216
217* Sat May 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-1
218- rebuild with new versioning policy
219- update Debian patch
220
221* Sat Sep 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.18.1.1-0vl1
222- rebuilt with new toolchain
223- updated source and Japanese patch based on Debian
224- added BuildRequires: XOrg-devel
225
226* Fri Sep 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.2-0vl7
227- rebuild to add gpg sign
228
229* Tue Apr  8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.17.2-0vl6
230- rebuild
231
232* Mon Nov 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.17.2-0vl5
233- rebuilt with new toolchain
234
235* Wed Mar 06 2002 Toru Sagami <sagami@vinelinux.org> 1.17.2-0vl4
236- corrected zsoelim.1 symlink in %%{_mandir}
237
238* Mon Feb 11 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl3
239- fixed symlink of *.tmac
240
241* Mon Jan 21 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl2
242- build on VineSeed
243
244* Mon Jan 21 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl1
245- updated groff-1.17.2
246    -- security fixed of CAN-2002-0003
247    -- changed japanese patch to debian patch
248    -- modified spec file
249
250* Mon Sep 10 2001 Toru Sagami <sagami@vinelinux.org>
251- 1.16.1-0vl1: split perl components into separate subpackage
252
253* Tue Jul 17 2001 <sagami@vinelinux.org>
254- 1.16.1: version up to 1.16.1
255- add groff-1.16.1-japanese.patch originally taken from Kondara
256- use %%configure after autoconf, %%makeinstall
257
258* Tue Jan 23 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
259- 1.15_jp-7
260- built on egcs-1.1/libstdc++2_9-2.9.0
261- fixed: whether or not build system compress man pages
262
263* Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 1.15_jp-6
264- some fixes to handle man pages correctly
265
266* Sat Nov 11 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.15_jp-5
267- build on gcc-2.95.3
268- partially used macros
269
270* Mon Aug  7 2000 Jun Nishii <jun@vinelinux.org>
271- 1.15_jp-4
272- follow up to RHL62 (1.15-8)
273
274* Thu Feb 24 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
275- 1.15_jp-3
276- modified ja patch, namely lib.h
277
278* Sun Jan  9 2000 Jun Nishii <jun@vinelinux.org>
279- groff-tmac-ja was lacked in Source entry(;_;) fixed!
280
281* Tue Jan  4 2000 Jun Nishii <jun@vinelinux.org>
282- build for Vine Linux 2.0 with ja patch
283
284* Wed Dec 29 1999 Bill Nottingham <notting@redhat.com>
285- update to 1.15
286
287* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
288- auto rebuild in the new build environment (release 9)
289
290* Tue Feb 16 1999 Cristian Gafton <gafton@redhat.com>
291- glibc 2.1 patch for xditview (#992)
292
293* Thu Oct 22 1998 Bill Nottingham <notting@redhat.com>
294- build for Raw Hide
295
296* Thu Sep 10 1998 Cristian Gafton <gafton@redhat.com>
297- fix makefiles to work with bash2
298
299* Fri May 08 1998 Prospector System <bugs@redhat.com>
300- translations modified for de, fr, tr
301
302* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
303- use g++ for C++ code
304
305* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
306- manhattan and buildroot
307
308* Mon Nov  3 1997 Michael Fulbright <msf@redhat.com>
309- made xdefaults file a config file
310
311* Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
312- split perl components into separate subpackage
313
314* Tue Oct 21 1997 Michael Fulbright <msf@redhat.com>
315- updated to 1.11a
316- added safe troff-to-ps.fpi
317
318* Tue Oct 14 1997 Michael Fulbright <msf@redhat.com>
319- removed troff-to-ps.fpi for security reasons.
320
321* Fri Jun 13 1997 Erik Troan <ewt@redhat.com>
322- built against glibc
323
Note: See TracBrowser for help on using the repository browser.