%{!?with_x:%define with_x 1} Summary: A document formatting system. Name: groff Version: 1.18.1.1 Release: 8 License: GPL Group: Applications/Publishing Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz Source3: mandocj.tar.gz Source4: man-pages-ja-GNU_groff-20000115.tar.gz Source6: hyphen.cs Source7: nroff Patch1: groff-1.16-safer.patch Patch3: groff_1.18.1-15.diff Patch4: groff-1.18-info.patch Patch5: groff-1.18-nohtml.patch Patch6: groff-1.18-pfbtops_cpp.patch Patch7: groff-1.18-gzip.patch Patch9: groff-1.18.1-fixminus.patch Patch11: groff-1.18.1-8bit.patch Patch12: groff-1.18.1-korean.patch Patch13: groff-1.18.1-gzext.patch Patch14: groff-xlibs.patch Patch15: groff-1.18.1-fix15.patch Patch16: groff-1.18.1-devutf8.patch Patch17: groff-1.18.1.1-revision.patch Patch18: groff-1.18.1.1-do_char.patch Patch19: groff-1.18.1.1-grn.patch Patch20: groff-1.18.1.1-tempfile.patch Patch21: groff-1.18.1.1-gcc41.patch Patch22: groff-1.18.1.1-bigendian.patch Patch23: groff-1.18.1.1-spacefix.patch URL: ftp://ftp.gnu.org/gnu/groff/ Requires: mktemp Prereq: /sbin/install-info Buildroot: %{_tmppath}/%{name}-root Obsoletes: groff-tools Provides: nroff-i18n BuildRequires: netpbm-progs zlib-devel texinfo BuildPrereq: byacc %description Groff is a document formatting system. Groff takes standard text and formatting commands as input and produces formatted output. The created documents can be shown on a display or printed on a printer. Groff's formatting commands allow you to specify font type and size, bold type, italic type, the number and size of columns on a page, and more. Groff can also be used to format man pages. If you are going to use groff with the X Window System, you will also need to install the groff-gxditview package. %package perl Summary: Parts of the groff formatting system that require Perl. Group: Applications/Publishing %description perl The groff-perl package contains the parts of the groff text processor package that require Perl. These include the afmtodit font processor for creating PostScript font files, the grog utility that can be used to automatically determine groff command-line options, and the troff-to-ps print filter. %if %{with_x} %package gxditview Summary: An X previewer for groff text processor output. Group: Applications/Publishing BuildRequires: imake xorg-x11-proto-devel libX11-devel libXaw-devel BuildRequires: libXt-devel libXpm-devel libXp-devel libXext-devel %description gxditview Gxditview displays the groff text processor's output on an X Window System display. %endif %prep %setup -q -a 4 %patch1 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch9 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 -b .gzext %patch14 -p1 %patch15 -p1 -b .fix9 %patch16 -p1 -b .devutf8 %patch17 -p1 -b .revision %patch18 -p1 -b .do_char %patch19 -p1 -b .grn %patch20 -p1 -b .tempfile %patch21 -p1 -b .gcc41 %patch22 -p1 -b .bigendian %patch23 -p1 -b .spacefix for i in contrib/mm/{groff_mm,groff_mmse,mmroff}.man \ src/devices/grolbp/grolbp.man; do iconv -f iso-8859-1 -t utf-8 < "$i" > "${i}_" mv "${i}_" "$i" done %build #PATH=$PATH:%{_prefix}/X11R6/bin #autoconf %configure --enable-japanese --enable-multibyte make (cd doc && makeinfo groff.texinfo) %if %{with_x} cd src/xditview xmkmf && make %endif %install rm -rf ${RPM_BUILD_ROOT} #PATH=$PATH:%{_prefix}/X11R6/bin mkdir -p ${RPM_BUILD_ROOT}%{_prefix} ${RPM_BUILD_ROOT}%{_infodir} %makeinstall manroot=${RPM_BUILD_ROOT}/%{_mandir} #install -m 644 doc/groff.info* ${RPM_BUILD_ROOT}/%{_infodir} %if %{with_x} cd src/xditview %makeinstall DESTDIR=$RPM_BUILD_ROOT cd ../.. %endif #mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_prefix}/share ln -s s.tmac ${RPM_BUILD_ROOT}%{_datadir}/groff/%version/tmac/gs.tmac ln -s mse.tmac ${RPM_BUILD_ROOT}%{_datadir}/groff/%version/tmac/gmse.tmac ln -s m.tmac ${RPM_BUILD_ROOT}%{_datadir}/groff/%version/tmac/gm.tmac ln -s troff ${RPM_BUILD_ROOT}%{_bindir}/gtroff ln -s tbl ${RPM_BUILD_ROOT}%{_bindir}/gtbl ln -s pic ${RPM_BUILD_ROOT}%{_bindir}/gpic ln -s eqn ${RPM_BUILD_ROOT}%{_bindir}/geqn ln -s neqn ${RPM_BUILD_ROOT}%{_bindir}/gneqn ln -s refer ${RPM_BUILD_ROOT}%{_bindir}/grefer ln -s lookbib ${RPM_BUILD_ROOT}%{_bindir}/glookbib ln -s indxbib ${RPM_BUILD_ROOT}%{_bindir}/gindxbib ln -s soelim ${RPM_BUILD_ROOT}%{_bindir}/gsoelim ln -s soelim ${RPM_BUILD_ROOT}%{_bindir}/zsoelim ln -s nroff ${RPM_BUILD_ROOT}%{_bindir}/gnroff # Build system is compressing man-pages ln -s eqn.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/geqn.1.gz ln -s indxbib.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gindxbib.1.gz ln -s lookbib.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/glookbib.1.gz ln -s nroff.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gnroff.1.gz ln -s pic.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gpic.1.gz ln -s refer.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/grefer.1.gz ln -s soelim.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gsoelim.1.gz ln -s soelim.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/zsoelim.1.gz ln -s tbl.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gtbl.1.gz ln -s troff.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gtroff.1.gz ln -s devnippon ${RPM_BUILD_ROOT}%{_datadir}/groff/%{version}/font/devkorean cat debian/mandoc.local >> ${RPM_BUILD_ROOT}%{_datadir}/groff/site-tmac/mdoc.local cat debian/mandoc.local >> ${RPM_BUILD_ROOT}%{_datadir}/groff/site-tmac/man.local find ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_mandir} -type f -o -type l | \ grep -v afmtodit | grep -v grog | grep -v mdoc.samples |\ grep -v mmroff |\ sed "s|${RPM_BUILD_ROOT}||g" | sed "s|\.[0-9]|\.*|g" > groff-files install -m 644 %SOURCE6 $RPM_BUILD_ROOT%{_datadir}/groff/%version/tmac/hyphen.cs install -m 755 %SOURCE7 $RPM_BUILD_ROOT%{_bindir}/nroff ln -sf doc.tmac $RPM_BUILD_ROOT%{_datadir}/groff/%version/tmac/docj.tmac # installed, but not packaged in rpm rm -fr $RPM_BUILD_ROOT%{_datadir}/doc/groff $RPM_BUILD_ROOT%{_infodir}/dir $RPM_BUILD_ROOT/usr/lib/X11/app-defaults %clean rm -rf ${RPM_BUILD_ROOT} %post /sbin/install-info %{_infodir}/groff.gz %{_infodir}/dir exit 0 %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/groff.gz %{_infodir}/dir fi %files -f groff-files %defattr(-,root,root) %doc BUG-REPORT NEWS PROBLEMS README TODO VERSION %doc doc/meintro.me doc/meref.me doc/pic.ms %{_datadir}/groff %{_infodir}/groff* %files perl %defattr(-,root,root) %{_bindir}/grog %{_bindir}/mmroff %{_bindir}/afmtodit %{_mandir}/man1/afmtodit.* %{_mandir}/man1/grog.* %{_mandir}/man1/mmroff* %if %{with_x} %files gxditview %defattr(-,root,root) %{_bindir}/gxditview %{_datadir}/X11/app-defaults/GXditview %endif %changelog * Fri Jan 12 2006 Miroslav Lichvar - 1.18.1.1-8 - fix segfault in grotty on 64-bit big endian machines (#176904) - fix assertion failure on abort message (#141912) - attempt to fix a space problem with several european languages (#137728) * Fri Jan 06 2006 Jindrich Novy - 1.18.1.1-7 - require X dependencies only for gxditview (#177118) - work if bash's noclobber is on (#127492) * Thu Jan 05 2006 Jindrich Novy - 1.18.1.1-6 - add BuildRequires imake and update dependencies for modular X - spec cleanup - fix compilation with gcc-4.1.0 * Wed Nov 24 2004 Miloslav Trmac - 1.18.1.1-5 - Convert also mmroff.1 to UTF-8 * Sat Nov 20 2004 Miloslav Trmac - 1.18.1.1-4 - Convert man pages to UTF-8 * Tue Oct 19 2004 Thomas Woerner 1.18.1.1-3 - fixed groffer scripte security problem (#136314) * Thu Sep 16 2004 Thomas Woerner 1.18.1.1-2 - fixed DoCharacter calls in xditview (#110812) - fixed fclose called once too often (#132690): thanks to Ulrich Drepper for the bug hunting * Tue Jun 29 2004 Thomas Woerner 1.18.1.1-1 - new version 1.18.1.1 (fixed groffer script) * Tue Jun 15 2004 Elliot Lee - rebuilt * Mon Jun 7 2004 Thomas Woerner 1.18.1-35 - fixed build prereq and requires * Mon Mar 8 2004 Thomas Woerner 1.18.1-34 - new debian groff patch: groff_1.18.1-15.diff - new fix for debian patch: groff-1.18.1-fix15.patch - fixed width in devutf8 font M: groff-1.18.1-devutf8.patch - removed iconv patch * Mon Mar 1 2004 Thomas Woerner 1.18.1-33 - fixed nroff script: convert output to locale charmap * Wed Feb 25 2004 Thomas Woerner 1.18.1-32 - fixed nroff script input (#116596) * Fri Feb 13 2004 Elliot Lee - rebuilt * Mon Feb 09 2004 Adrian Havill - provide I18N version of nroff that accepts --legacy parameter (used by man-1.5m2-2) * Thu Dec 18 2003 Thomas Woerner - fixed missing BuildRequires (#110574) * Tue Sep 23 2003 Florian La Roche - allow compiling this without XFree86 * Wed Aug 6 2003 Thomas Woerner 1.18.1-28.2 - new devutf8 font description - use -Tutf8 for ru_*.UTF-8 in nroff.sh - fixes #88618 (ru_RU man pages in cambridge are using UTF-8, now) * Fri Jun 13 2003 Thomas Woerner 1.18.1-28 - rebuild (debian-9) * Tue Jun 10 2003 Thomas Woerner 1.18.1-27 - going back to 1.18.1-4 from debian (the newer versions did not work properly) - fixed nroff.sh for ru_RU.(!UTF-8) * Mon May 19 2003 Thomas Woerner 1.18.1-26 - fix input and output handler for 1.18.1-9 to be compatible with 1.18.1-4 * Tue Apr 29 2003 Florian La Roche - 1.18.1-9 from debian * Tue Apr 15 2003 Florian La Roche - 1.18.1-8 from debian: use latin1 instead of C locale * Sun Mar 09 2003 Florian La Roche - update to debian patch 1.18.1-7 located at ftp://ftp.debian.org/debian/pool/main/g/groff/ * Thu Feb 13 2003 Elliot Lee 1.18.1-21 - groff-xlibs.patch to fix ppc64 builds * Wed Feb 12 2003 Tim Waugh 1.18.1-20 - Make the iconv patch a little less broken (bug #84132). * Tue Feb 11 2003 Thomas Woerner 1.18.1-19 - added new iconv patch * Tue Feb 11 2003 Florian La Roche - disable the iconv patch, this will go into a wrapper within the man rpm * Mon Feb 10 2003 Thomas Woerner 1.18.1-17 - fixed source of gzipped files * Mon Feb 10 2003 Florian La Roche - add Korean support from ynakai@redhat.com, #83933 * Sun Feb 09 2003 Florian La Roche - remove automatic conversion for ru_* and cz_* - add 8bit patch - update to 1.18.1-4 debian patch - disable Patch8: groff-1.18.1-multichar.patch for now - add ugly patch within the iconv patch to partly fix display of russian man-pages with "-Tnippon" * Thu Feb 6 2003 Tim Waugh 1.18.1-11 - Unbreak EUC-JP (bug #83608). * Mon Feb 3 2003 Thomas Woerner 1.18.1-10 - fixed missing minus - added iconv conversion script * Fri Jan 31 2003 Tim Waugh 1.18.1-9 - Fix UTF-8. * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Jan 15 2003 Florian La Roche - also add hyphen changes to man.local in addition to mdoc.local * Tue Jan 14 2003 Florian La Roche - really include mdoc.local changes from debian * Sat Jan 11 2003 Florian La Roche - fix #81401, maybe also #57410 * Fri Jan 03 2003 Florian La Roche - add more documentation #80729 * Wed Jan 01 2003 Florian La Roche - hot fix for devascii8 breakage * Sun Dec 29 2002 Florian La Roche - update to debian patch 1.18.1-2 located at ftp://ftp.debian.org/debian/pool/main/g/groff/ * Mon Nov 18 2002 Florian La Roche - update to 1.18.1 - use newest debian patch on top of it * Mon Nov 04 2002 Florian La Roche - add gzip decompression patch * Sat Nov 02 2002 Florian La Roche - update to 1.18.1 - apply groff_1.18-7 from debian - remove some not-packaged files - rm old printfilters completely * Fri Oct 04 2002 Elliot Lee 1.18-7 - Patch7 - move pfbtops to CCPROGDIRS (it needs to link to C++ stuff) * Sat Aug 31 2002 Florian La Roche - add patch for #72924 * Mon Aug 26 2002 Florian La Roche - remove README.A4 #65920 * Sun Aug 11 2002 Florian La Roche - use info files as installed by groff package - completely disable older printconf stuff * Thu Aug 8 2002 Yukihiro Nakai - link docj.tmac to doc.tmac #57560 * Thu Aug 1 2002 Harald Hoyer - update to 1.18 - mmroff(7) is now mmroff(1) * Tue Jul 23 2002 Tim Powers - build using gcc-3.2-0.1 * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 12 2002 Florian La Roche - prereq install-info and add post/preun for info files * Wed May 29 2002 Florian La Roche - add info files #64667 * Fri Feb 22 2002 Florian La Roche - rebuild in new environment * Sun Feb 17 2002 Florian La Roche - update to newest debian patch 1.17.2-16 - patch4 is already included in that * Thu Jan 31 2002 Florian La Roche - disable printconf support, but do not yet delete it from the source rpm * Wed Jan 09 2002 Tim Powers - automated rebuild * Mon Jan 07 2002 Florian La Roche - check string input * Sat Jan 05 2002 Florian La Roche - add URL tag * Sat Jan 05 2002 Florian La Roche - update to newest debian patch 1.17.2-13 * Thu Dec 06 2001 Florian La Roche - update to newest debian patch 1.17.2-12 * Wed Aug 15 2001 Mike A. Harris 1.17.2-3 - Added symlink from soelim to zsoelim, fixing bug (#51037) * Tue Aug 14 2001 Florian La Roche - fixes security bug #50494 * Sun Aug 12 2001 Florian La Roche - update to 1.17.2 - strerror patch is not needed anymore - apply newest debian patch * Fri Apr 27 2001 Bill Nottingham - rebuild for C++ exception handling on ia64 * Tue Apr 03 2001 Florian La Roche - do not change groff to use /etc/papersize. Deleted the changes in the debian patch. * Fri Mar 30 2001 Trond Eivind Glomsrød - Add hyphen.cs - file generated as described in Czech how-to, 6.7 * Wed Mar 28 2001 Florian La Roche - updated to newest debian patch to get nippon/ascii8 support better working * Fri Feb 9 2001 Crutcher Dunnavant - switch to printconf filtration rules * Tue Jan 09 2001 Florian La Roche - change app-defaults to /usr/X11R6/lib/X11/app-defaults/ and do not mark it as config file * Thu Dec 14 2000 Yukihiro Nakai - Add Japanese patch from RHL7J * Fri Aug 4 2000 Florian La Roche - update to bug-fix release 1.16.1 * Fri Jul 28 2000 Tim Waugh - Install troff-to-ps.fpi in /usr/lib/rhs-printfilters (#13634). * Wed Jul 19 2000 Jeff Johnson - rebuild with gcc-2.96-41. * Mon Jul 17 2000 Jeff Johnson - rebuild to fix miscompilation manifesting in alpha build of tcltk. * Thu Jul 13 2000 Prospector - automatic rebuild * Tue Jul 4 2000 Jakub Jelinek - Rebuild with new C++ * Fri Jun 9 2000 Bill Nottingham - move mmroff to -perl * Wed Jun 7 2000 Bernhard Rosenkraenzer - Fix build - FHS - 1.16 * Sun May 14 2000 Jeff Johnson - install tmac.mse (FWIW tmac.se looks broken) to fix dangling symlink (#10757). - add README.A4, how to set up for A4 paper (#8276). - add other documents to package. * Thu Mar 2 2000 Jeff Johnson - permit sourcing on regular files within cwd tree (unless -U specified). * Wed Feb 9 2000 Jeff Johnson - fix incorrectly installed tmac.m file (#8362). * Mon Feb 7 2000 Florian La Roche - check if build system is sane again * Thu Feb 03 2000 Cristian Gafton - fix description and summary - man pages are compressed. This is ugly. * Mon Jan 31 2000 Bill Nottingham - put the binaries actually in the package *oops* * Fri Jan 28 2000 Bill Nottingham - split perl components into separate subpackage * Wed Dec 29 1999 Bill Nottingham - update to 1.15 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 9) * Tue Feb 16 1999 Cristian Gafton - glibc 2.1 patch for xditview (#992) * Thu Oct 22 1998 Bill Nottingham - build for Raw Hide * Thu Sep 10 1998 Cristian Gafton - fix makefiles to work with bash2 * Fri May 08 1998 Prospector System - translations modified for de, fr, tr * Thu Apr 30 1998 Cristian Gafton - use g++ for C++ code * Wed Apr 08 1998 Cristian Gafton - manhattan and buildroot * Mon Nov 3 1997 Michael Fulbright - made xdefaults file a config file * Thu Oct 23 1997 Erik Troan - split perl components into separate subpackage * Tue Oct 21 1997 Michael Fulbright - updated to 1.11a - added safe troff-to-ps.fpi * Tue Oct 14 1997 Michael Fulbright - removed troff-to-ps.fpi for security reasons. * Fri Jun 13 1997 Erik Troan - built against glibc