groff-vl.spec 9.0 KB

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