groff-vl.spec 9.7 KB

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