groff-vl.spec 9.4 KB

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