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

Revision 695, 9.4 KB checked in by kazutaka, 14 years ago (diff)

Import from latest srpm

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