OBS User unknown 2006-12-18 23:16:43 +00:00 committed by Git OBS Bridge
commit 7f180cbfe1
22 changed files with 1534 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

62
SuSEconfig.groff Normal file
View File

@ -0,0 +1,62 @@
#!/bin/bash
#
# Copyright (c) 1998 S.u.S.E. Gmbh Fuerth, Germany.
# 2002 SuSE Linux AG, Nuernberg, Germany.
#
# please send bugfixes or comments to <feedback@suse.de>
#
# Authors: Werner Fink, <werner@suse.de>
# Mike Fabian <mfabian@suse.de>
# only one of UID and USER must be set correctly
if test "$UID" != 0 -a "$USER" != root; then
echo "You must be root to start $0."
exit 1
fi
test -f $ROOT/etc/sysconfig/suseconfig || {
echo "No /etc/sysconfig/suseconfig found." && exit 1 ;
}
. $ROOT/etc/sysconfig/suseconfig
test -f /lib/YaST/SuSEconfig.functions || {
echo "ERROR - can not find /lib/YaST/SuSEconfig.functions!!"
echo "This should not happen. Exit..."
exit 1
}
. /lib/YaST/SuSEconfig.functions
test -n "$UPDATE_GROFF_CONF" -a "$UPDATE_GROFF_CONF" = "yes" || exit 0
function get_paper () {
(
. /etc/sysconfig/language &> /dev/null
read h w r < <(LANG=$RC_LANG LC_ALL=$RC_LC_ALL LC_PAPER=$RC_LC_PAPER locale -k LC_PAPER)
case "$h" in
height=297) echo a4 ;;
*) echo letter ;;
esac
)
}
# first get the paper size from the locale information
PAPER_SIZE=$(get_paper)
# if GROFF_PAGESIZE is set, it overrides the locale information:
if [ -n "$GROFF_PAGESIZE" ] ; then
# make GROFF_PAGESIZE lower case only:
GROFF_PAGESIZE=$( echo $GROFF_PAGESIZE | tr '[:upper:]' '[:lower:]' )
case $GROFF_PAGESIZE in
a4|letter)
PAPER_SIZE=$GROFF_PAGESIZE
;;
*)
echo "illegal value of GROFF_PAGESIZE, using 'a4' instead."
PAPER_SIZE=a4
;;
esac
fi
echo "$PAPER_SIZE" > /etc/papersize
exit 0

12
debian-fix.patch Normal file
View File

@ -0,0 +1,12 @@
diff -ru groff-1.18.1.1.orig/src/xditview/lex.c groff-1.18.1.1/src/xditview/lex.c
--- groff-1.18.1.1.orig/src/xditview/lex.c 2004-07-13 17:16:27.036918000 +0200
+++ groff-1.18.1.1/src/xditview/lex.c 2004-07-13 17:19:37.526695651 +0200
@@ -155,6 +155,7 @@
return i;
}
/* NOT REACHED */
+ return 0;
}
int

10
double-free.patch Normal file
View File

@ -0,0 +1,10 @@
--- src/preproc/grn/hdb.cc
+++ src/preproc/grn/hdb.cc
@@ -115,7 +115,6 @@
type = DBGetType(string); /* interpret element type */
if (type < 0) { /* no more data */
done = TRUE;
- (void) fclose(file);
} else {
#ifdef UW_FASTSCAN
(void) xscanf(file, &x, &y); /* always one point */

138
gcc4.patch Normal file
View File

@ -0,0 +1,138 @@
diff -prN groff-1.18.1.1-orig/src/preproc/eqn/box.cc groff-1.18.1.1/src/preproc/eqn/box.cc
*** groff-1.18.1.1-orig/src/preproc/eqn/box.cc Thu Apr 4 16:04:45 2002
--- groff-1.18.1.1/src/preproc/eqn/box.cc Wed Sep 15 23:28:05 2004
*************** int matrix_side_sep = 17; // = thin spac
*** 80,86 ****
int nroff = 0; // should we grok ndefine or tdefine?
! struct {
const char *name;
int *ptr;
} param_table[] = {
--- 80,86 ----
int nroff = 0; // should we grok ndefine or tdefine?
! struct param {
const char *name;
int *ptr;
} param_table[] = {
diff -prN groff-1.18.1.1-orig/src/preproc/grn/hgraph.cc groff-1.18.1.1/src/preproc/grn/hgraph.cc
*** groff-1.18.1.1-orig/src/preproc/grn/hgraph.cc Mon Oct 7 06:49:03 2002
--- groff-1.18.1.1/src/preproc/grn/hgraph.cc Wed Sep 15 23:28:36 2004
*************** extern int ytop;
*** 43,49 ****
extern int ybottom;
extern int xleft;
extern int xright;
! extern enum {
OUTLINE, FILL, BOTH
} polyfill;
--- 43,49 ----
extern int ybottom;
extern int xleft;
extern int xright;
! extern enum filltype {
OUTLINE, FILL, BOTH
} polyfill;
diff -prN groff-1.18.1.1-orig/src/preproc/grn/main.cc groff-1.18.1.1/src/preproc/grn/main.cc
*** groff-1.18.1.1-orig/src/preproc/grn/main.cc Sun Feb 10 02:22:12 2002
--- groff-1.18.1.1/src/preproc/grn/main.cc Wed Sep 15 23:29:04 2004
*************** int style[STYLES] =
*** 160,166 ****
double scale = 1.0; /* no scaling, default */
int defpoint = 0; /* flag for pointsize scaling */
char *defstipple = (char *) 0;
! enum {
OUTLINE, FILL, BOTH
} polyfill;
--- 160,166 ----
double scale = 1.0; /* no scaling, default */
int defpoint = 0; /* flag for pointsize scaling */
char *defstipple = (char *) 0;
! enum filltype {
OUTLINE, FILL, BOTH
} polyfill;
diff -prN groff-1.18.1.1-orig/src/preproc/refer/command.cc groff-1.18.1.1/src/preproc/refer/command.cc
*** groff-1.18.1.1-orig/src/preproc/refer/command.cc Sun Feb 10 02:22:12 2002
--- groff-1.18.1.1/src/preproc/refer/command.cc Wed Sep 15 23:29:34 2004
*************** a single field,
*** 632,638 ****
? means that the previous argument is optional, * means that the
previous argument can occur any number of times. */
! struct {
const char *name;
command_t func;
const char *arg_types;
--- 632,638 ----
? means that the previous argument is optional, * means that the
previous argument can occur any number of times. */
! struct command {
const char *name;
command_t func;
const char *arg_types;
diff -prN groff-1.18.1.1-orig/src/utils/tfmtodit/tfmtodit.cc groff-1.18.1.1/src/utils/tfmtodit/tfmtodit.cc
*** groff-1.18.1.1-orig/src/utils/tfmtodit/tfmtodit.cc Sun Aug 19 23:32:41 2001
--- groff-1.18.1.1/src/utils/tfmtodit/tfmtodit.cc Wed Sep 15 23:30:09 2004
*************** lig_chars table. `ch' gives the full-nam
*** 650,656 ****
gives the groff name of the character, `i' gives its index in
the encoding, which is filled in later (-1 if it does not appear). */
! struct {
const char *ch;
int i;
} lig_chars[] = {
--- 650,656 ----
gives the groff name of the character, `i' gives its index in
the encoding, which is filled in later (-1 if it does not appear). */
! struct lig_char {
const char *ch;
int i;
} lig_chars[] = {
*************** enum { CH_f, CH_i, CH_l, CH_ff, CH_fi, C
*** 670,676 ****
// Each possible ligature appears in this table.
! struct {
unsigned char c1, c2, res;
const char *ch;
} lig_table[] = {
--- 670,676 ----
// Each possible ligature appears in this table.
! struct lig {
unsigned char c1, c2, res;
const char *ch;
} lig_table[] = {
--- groff-1.18.1.1/src/xditview/xtotroff.c.xx 2005-09-17 21:05:23.000000000 +0200
+++ groff-1.18.1.1/src/xditview/xtotroff.c 2005-09-17 21:06:12.000000000 +0200
@@ -11,6 +11,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <string.h>
#include "config.h"
#include "XFontName.h"
#include "DviChar.h"
--- groff-1.18.1.1/src/xditview/DviChar.c.xx 2005-09-17 21:05:37.000000000 +0200
+++ groff-1.18.1.1/src/xditview/DviChar.c 2005-09-17 21:06:03.000000000 +0200
@@ -6,6 +6,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include "config.h"
#include "DviChar.h"
#include "encoding.h"

11
groff-1.17.2-gcc3.patch Normal file
View File

@ -0,0 +1,11 @@
--- groff-1.17.2/Makefile.cpg.gcc3 Thu May 2 13:45:16 2002
+++ groff-1.17.2/Makefile.cpg Thu May 2 13:44:53 2002
@@ -9,7 +9,7 @@
all: $(PROG) $(MANPAGES)
$(PROG): $(OBJS) $(XLIBS)
- $(LINK.c) -o $@ $(OBJS) $(XLIBS) $(LIBS) $(MLIB)
+ $(LINK.cc) -o $@ $(OBJS) $(XLIBS) $(LIBS) $(MLIB)
install_bin: install_prog
install_prog: $(PROG)

View File

@ -0,0 +1,11 @@
--- groff-1.18.1.1/src/devices/grohtml/post-html.cc.xx 2005-10-13 09:46:50.000000000 +0200
+++ groff-1.18.1.1/src/devices/grohtml/post-html.cc 2005-10-13 09:47:05.000000000 +0200
@@ -261,7 +261,7 @@
char_block *next;
char_block();
- char_block::char_block(int length);
+ char_block(int length);
};
char_block::char_block()

3
groff-1.18.1.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a72657207a7cd26df1f241d74020ca487f60e1e77e9e7d7ffd00dfa35386fc7
size 1835934

487
groff.changes Normal file
View File

@ -0,0 +1,487 @@
-------------------------------------------------------------------
Tue Sep 5 11:59:42 CEST 2006 - rguenther@suse.de
- Split gxdview to a separate spec file.
-------------------------------------------------------------------
Mon Sep 4 14:41:08 CEST 2006 - rguenther@suse.de
- Remove unneeded build dependency on ghostscript-mini.
-------------------------------------------------------------------
Sun Aug 6 15:19:35 CEST 2006 - cthiel@suse.de
- fix build with X.org 7.1
-------------------------------------------------------------------
Tue Feb 28 18:12:58 CET 2006 - mfabian@suse.de
- Bugzilla #148472: use -Tlatin1 instead of -Tascii8 for
languages which used ISO-8859-1 as legacy encoding.
With -Tascii8, "\(:u" for ü won't work.
-------------------------------------------------------------------
Thu Feb 09 15:34:48 CET 2006 - mfabian@suse.de
- Bugzilla #148922: nroff hangs when input comes from a file
and not from a pipe: Improfe UTF-8 workaround to handle this
case as well by parsing the options with getopt to find out
whether a file was given as an argument.
-------------------------------------------------------------------
Fri Jan 27 01:40:24 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jan 26 15:51:26 CET 2006 - sbrabec@suse.cz
- Added %install_info_prereq.
-------------------------------------------------------------------
Mon Jan 23 18:31:45 CET 2006 - mfabian@suse.de
- Bugzilla #144726: add workaround to allow UTF-8 encoded sources
of man-pages. Some packages already contain man-pages with
UTF-8 encoded man-page sources, for example "mc". Hopefully
one day groff will really support this. Until then a workaround
is better than nothing.
-------------------------------------------------------------------
Fri Dec 9 15:04:53 CET 2005 - meissner@suse.de
- -fno-strict-aliasing.
-------------------------------------------------------------------
Thu Oct 13 10:11:33 CEST 2005 - meissner@suse.de
- fixed build.
-------------------------------------------------------------------
Sat Sep 17 21:14:11 CEST 2005 - meissner@suse.de
- fixed implicits.
-------------------------------------------------------------------
Mon Aug 22 12:37:18 CEST 2005 - mfabian@suse.de
- Bugzilla #105807: /etc/papersize can be changed by SuSEconfig,
don't verify md5, size, mtime.
/usr/share/groff/1.18.1/tmac/mm/locale and
/usr/share/groff/1.18.1/tmac/mm/se_locale are empty by default,
don't verify md5.
-------------------------------------------------------------------
Wed Jun 22 11:39:33 CEST 2005 - mfabian@suse.de
- improve papersize detection in SuSEconfig.groff.
-------------------------------------------------------------------
Thu Jun 02 15:01:11 CEST 2005 - mfabian@suse.de
- add symbolic link for tetex (and others):
/usr/share/groff/%{version} -> /usr/share/groff/current
-------------------------------------------------------------------
Mon Dec 06 22:13:15 CET 2004 - mfabian@suse.de
- Bugzilla #47862: fix insecure creation of temporary directory
in groffer.sh, see also CAN-2004-0969.
-------------------------------------------------------------------
Fri Sep 17 11:41:38 CEST 2004 - mfabian@suse.de
- add gcc4 patch received from Andreas Jaeger.
-------------------------------------------------------------------
Thu Sep 16 17:06:37 CEST 2004 - schwab@suse.de
- Fix double free.
-------------------------------------------------------------------
Tue Sep 7 12:37:19 CEST 2004 - mfabian@suse.de
- Bugzilla #44115: add groff.{sh,csh} and set GROFF_NO_SGR to
disable the use of ANSI colour sequences by default. They don't
work well with many pagers (e.g. lv, (X)Emacs) and they cause
problems when searching in man-pages when using less as the
pager.
-------------------------------------------------------------------
Tue Jun 29 19:23:18 CEST 2004 - mfabian@suse.de
- update to 1.18.1.1
- remove bison patch, voiddecl patch and patch to node.cc
(fixed upstream).
-------------------------------------------------------------------
Mon Apr 19 14:57:21 CEST 2004 - mmj@suse.de
- Declare void functions as such, and make int functions return such
-------------------------------------------------------------------
Tue Aug 26 01:11:37 CEST 2003 - mfabian@suse.de
- Bugzilla #28394: add workaround to display the euro symbol in
'man iso-8859-15' correctly in UTF-8 locales.
-------------------------------------------------------------------
Thu Aug 14 17:12:41 CEST 2003 - mfabian@suse.de
- Bugzilla #28945: add missing activation metadata to
sysconfig template
-------------------------------------------------------------------
Wed May 21 13:44:11 CEST 2003 - coolo@suse.de
- making /etc/papersize noreplace (the chances are very small the
package knows the papersize better than the user)
- installing the info pages
-------------------------------------------------------------------
Thu Mar 6 17:19:49 CET 2003 - ro@suse.de
- readd ghostscript-mini to neededforbuild (fix docu)
-------------------------------------------------------------------
Thu Mar 6 13:26:37 CET 2003 - mfabian@suse.de
- Bug #24758: fix segfault on copying an empty bracket_node
was reproducible with echo ' \b"" ' | troff
-------------------------------------------------------------------
Mon Jan 27 16:51:04 CET 2003 - mfabian@suse.de
- Bug #22693: add missing metadata to sysconfig.suseconfig-groff
-------------------------------------------------------------------
Mon Jan 20 19:50:43 CET 2003 - mfabian@suse.de
- fix file list to include /usr/share/man{5,7}/*
- extend workaround for non-latin1 man-page sources in UTF-8
locales to Hungarian, Croatian, Polish, and Russian
-------------------------------------------------------------------
Fri Dec 6 23:11:19 CET 2002 - olh@suse.de
- remove ghostscript-mini-packages to build groff anyway
-------------------------------------------------------------------
Wed Nov 20 17:11:35 CET 2002 - ro@suse.de
- use ghostscript-mini-packages
-------------------------------------------------------------------
Wed Nov 13 08:40:10 CET 2002 - ro@suse.de
- fix build with current bison (end all rules with ";")
-------------------------------------------------------------------
Sun Oct 13 19:30:45 CEST 2002 - mfabian@suse.de
- remove bogus "Requires: bc".
-------------------------------------------------------------------
Wed Aug 28 14:48:04 CEST 2002 - mfabian@suse.de
- fix display of Czech man pages in cs_CZ.UTF-8 locale
-------------------------------------------------------------------
Thu Aug 1 14:09:54 CEST 2002 - mfabian@suse.de
- add %fillup_prereq to Prereq:
-------------------------------------------------------------------
Tue Jun 4 20:06:46 CEST 2002 - mfabian@suse.de
- fix typo
-------------------------------------------------------------------
Tue Jun 4 18:22:29 CEST 2002 - mfabian@suse.de
- fix display of Japanese man pages in ja_JP.UTF-8 locale
-------------------------------------------------------------------
Thu May 2 14:02:51 CEST 2002 - meissner@suse.de
- Fixed g++ 3 issue (do not link C++ libraries with gcc)
-------------------------------------------------------------------
Sun Apr 7 17:42:44 CEST 2002 - schwab@suse.de
- Fix for new autoconf.
-------------------------------------------------------------------
Tue Mar 19 00:11:05 CET 2002 - mfabian@suse.de
- fix bug #15052: add 'libgimpprint glib glib-devel' to
'# neededforbuild' because 'gs' needs this to run. When 'gs'
doesn't run, some .png pictures in the 'doc' directory
can't be created and remain empty.
- add groff-1.17.2-pic-html.diff to avoid using the process ID
in the names of the created .png files.
-------------------------------------------------------------------
Sun Mar 10 15:56:25 CET 2002 - mfabian@suse.de
- write just 'a4' or 'letter' into /etc/papersize, not
'papersize a4' or 'papersize letter'. All this papersize
stuff doesn't seem to matter much anyway as groff calls
grops with the '-g' option (guess page length).
-------------------------------------------------------------------
Sat Mar 9 14:25:36 CET 2002 - ro@suse.de
- replaced plp by lprng in neededforbuild
-------------------------------------------------------------------
Fri Mar 1 13:43:08 CET 2002 - mfabian@suse.de
- fix /sbin/conf.d/SuSEconfig.groff:
prefer paper size information from the locale, use GROFF_PAGESIZE
as an override.
-------------------------------------------------------------------
Fri Feb 1 00:26:07 CET 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
-------------------------------------------------------------------
Wed Jan 16 16:01:50 CET 2002 - ro@suse.de
- moved variables to sysconfig/suseconfig
-------------------------------------------------------------------
Thu Jan 10 14:59:01 CET 2002 - mfabian@suse.de
- move *GROFF* variables from /etc/rc.config to
/etc/sysconfig/groff (fix Bug #12739)
-------------------------------------------------------------------
Mon Oct 15 16:20:23 CEST 2001 - mfabian@suse.de
- add /etc/papersize (fix Bug #11810)
-------------------------------------------------------------------
Mon Sep 3 13:37:56 CEST 2001 - mfabian@suse.de
- add obsoletes jgroff
-------------------------------------------------------------------
Thu Aug 30 11:41:16 CEST 2001 - mfabian@suse.de
- upgrade debian patch to groff_1.17.2-7.diff
(fixes the problem with bold utf-8 characters, i.e. obsoletes
groff_1.17.2-6.1-debian-fix-minus.diff and includes a fix
for the troff man-page)
-------------------------------------------------------------------
Tue Aug 21 18:48:29 CEST 2001 - mfabian@suse.de
- upgrade debian patch to groff_1.17.2-6.1.diff
(fix hyphen character problem in EUC-JP encoding,
Fumitoshi UKAI <ukai@debian.or.jp> Fri, 17 Aug 2001)
- fix problem with bold minus characters in utf-8 caused by
debian patch (thanks to <mls@suse.de>)
-------------------------------------------------------------------
Fri Aug 17 12:11:48 CEST 2001 - mfabian@suse.de
- include patch for Japanese support from Debian
- security fix from Sebastian Krahmer <krahmer@suse.de> seems
to be included upstream, removed.
-------------------------------------------------------------------
Fri Jul 20 12:06:42 CEST 2001 - kukuk@suse.de
- changed neededforbuild <gs_fonts> to <ghostscript-fonts-std>
- changed neededforbuild <gs_lib> to <ghostscript-library>
- changed neededforbuild <gs_serv> to <ghostscript-serv>
-------------------------------------------------------------------
Thu Jul 12 12:33:45 CEST 2001 - fehr@suse.de
- update to version 1.17.2
-------------------------------------------------------------------
Fri Jul 6 11:22:27 CEST 2001 - fehr@suse.de
- add security fix from Sebastian Krahmer <krahmer@suse.de>
-------------------------------------------------------------------
Mon Jun 25 12:48:25 CEST 2001 - fehr@suse.de
- update to version 1.17.1
-------------------------------------------------------------------
Tue Jun 12 12:01:43 CEST 2001 - fehr@suse.de
- make it build with newer compilers (ia64, axp)
-------------------------------------------------------------------
Tue May 22 18:40:53 CEST 2001 - fehr@suse.de
- update to version 1.17
-------------------------------------------------------------------
Mon May 7 12:39:47 CEST 2001 - mfabian@suse.de
- bzip2 source
-------------------------------------------------------------------
Sat Apr 21 21:25:32 CEST 2001 - schwab@suse.de
- Fix C++ constraint violation.
-------------------------------------------------------------------
Wed Mar 7 16:23:29 CET 2001 - uli@suse.de
- added xf86 to neededforbuild
-------------------------------------------------------------------
Wed Dec 13 10:16:37 CET 2000 - mfabian@suse.de
- added "Provides: normal-groff". This enables the japanized
groff to use "Provides: groff" and "Conflicts: normal-groff".
-------------------------------------------------------------------
Fri Dec 8 11:03:15 MET 2000 - fehr@suse.de
- add conflicts to jgroff
-------------------------------------------------------------------
Tue Sep 5 16:24:15 MEST 2000 - fehr@suse.de
- check for writable fontdir in SuSEconfig.groff (#2787)
-------------------------------------------------------------------
Tue Aug 15 10:26:06 CEST 2000 - mfabian@suse.de
- update to version 1.16.1
- added 'BuildRoot'
-------------------------------------------------------------------
Fri Aug 4 10:11:08 MEST 2000 - fehr@suse.de
- changes to new version 1.16.1 of groff
-------------------------------------------------------------------
Fri Jul 21 16:47:13 MEST 2000 - fehr@suse.de
- add patch to display japanese man pages again
-------------------------------------------------------------------
Fri Jul 7 16:23:40 MEST 2000 - fehr@suse.de
- change comment in rc.config part of package (bugzilla #3256)
-------------------------------------------------------------------
Mon May 29 13:21:03 MEST 2000 - fehr@suse.de
- changes to new version 1.16 of groff
-------------------------------------------------------------------
Fri May 19 14:13:18 MEST 2000 - fehr@suse.de
- move documentation to /usr/share/doc/packages
-------------------------------------------------------------------
Thu Mar 16 21:32:54 MET 2000 - werner@suse.de
- nroff script
* Allow other ISO latin character sets because they use the same
8 bit table: use -Tlatin1
* Allow wide ANSI character maps (e.g. Japanese) because they use
multiple 8 bit characters: use -Tlatin1
* Map -Tnippon to -Tlatin1
-------------------------------------------------------------------
Mon Mar 6 15:50:30 CET 2000 - schwab@suse.de
- Update tmac.m from CVS.
- Fix tmac.mse reference to tmac.m.
-------------------------------------------------------------------
Fri Feb 25 16:37:03 CET 2000 - schwab@suse.de
- /usr/man -> /usr/share/man
-------------------------------------------------------------------
Mon Jan 3 10:39:24 CET 2000 - schwab@suse.de
- Update to 1.15 (Y2K fix).
- Get rid of Makefile.Linux.
-------------------------------------------------------------------
Mon Sep 27 16:31:01 CEST 1999 - bs@suse.de
- fixed requirements for sub packages
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Fri Jul 2 19:14:18 CEST 1999 - werner@suse.de
- Fix Makefle.Linux to make (g)xditview with the values
set in Imakefile
- Split up a new package gxdview to avoid dependencies
of groff on the X11 system.
- Correct version number of groff in pac
-------------------------------------------------------------------
Tue Feb 23 08:15:50 MET 1999 - ro@suse.de
- don't redclare strchr for glibc
-------------------------------------------------------------------
Tue Dec 15 00:38:04 MET 1998 - bs@suse.de
- fixed SuSEconfig
-------------------------------------------------------------------
Sun Dec 13 22:48:48 MET 1998 - bs@suse.de
- made SuSEconfig.groff a little bit more silent.
-------------------------------------------------------------------
Wed Nov 18 14:34:32 MET 1998 - ro@suse.de
- commented out "find" in specfile
-------------------------------------------------------------------
Tue Nov 17 14:54:13 MET 1998 - werner@suse.de
- Remove hint during SuSEconfig.groff
-------------------------------------------------------------------
Thu Sep 3 17:50:05 MET DST 1998 - werner@suse.de
- Add three missed files
-------------------------------------------------------------------
Tue Aug 25 16:36:47 MEST 1998 - werner@suse.de
- Skipt warn message if printer isn't configured
-------------------------------------------------------------------
Thu Aug 6 16:24:02 MEST 1998 - werner@suse.de
- New version 1.11a
- Make docs and install them
- Add a auto configure script for SuSEconfig
- Make tmac/tmac.safer more safer: do not open files via .so
-------------------------------------------------------------------
Sun Jul 26 19:50:30 MEST 1998 - bs@suse.de
- fixed name of GXDITVIEW
----------------------------------------------------------------------------
Tue Oct 7 11:00:38 CEST 1997 - florian@suse.de
- prepared spec file
- "bash 2.0" Fix in Makefile

8
groff.csh Normal file
View File

@ -0,0 +1,8 @@
#
# /etc/profile.d/groff.csh
#
# setting the variable GROFF_NO_SGR to to something not empty
# to disable the use of ANSI colour sequences by default.
setenv GROFF_NO_SGR yes

8
groff.sh Normal file
View File

@ -0,0 +1,8 @@
#
# /etc/profile.d/groff.sh
#
# setting the variable GROFF_NO_SGR to to something not empty
# to disable the use of ANSI colour sequences by default.
export GROFF_NO_SGR=yes

404
groff.spec Normal file
View File

@ -0,0 +1,404 @@
#
# spec file for package groff (Version 1.18.1.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: groff
BuildRequires: gcc-c++
%define build_groff_docu 1
#
License: GPL, BSD
Group: Productivity/Publishing/Troff
Provides: normal-groff, jgroff
Obsoletes: jgroff
Prereq: %fillup_prereq %install_info_prereq
Autoreqprov: on
Version: 1.18.1.1
Release: 33
Summary: GNU troff Document Formatting System
URL: http://www.gnu.org/software/groff/groff.html
Source0: ftp://ftp.gnu.org/gnu/groff/groff-1.18.1.1.tar.bz2
Source1: SuSEconfig.groff
Source2: sysconfig.suseconfig-groff
Source3: groff.sh
Source4: groff.csh
Patch0: groff_1.18.1.1-1-debian.diff.bz2
Patch1: suse.patch
Patch2: pic-html.patch
Patch3: gcc4.patch
Patch4: groff-1.17.2-gcc3.patch
Patch5: utf8.patch
Patch6: debian-fix.patch
Patch7: double-free.patch
Patch8: groffer-security.patch
Patch9: groff-1.18.1.1-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The groff package provides compatible versions of troff, nroff, eqn,
tbl, and other Unix text formatting utilities.
Groff is used to "compile" man pages stored in groff or nroff format
for different output devices, for example, displaying to a screen or in
PostScript(tm) format for printing on a PostScript(tm) printer. Most
programs store their man pages in either /usr/share/man/ or
/usr/X11R6/man/.
Authors:
--------
James Clark <jjc@clark.com>
%prep
%setup -q -n groff-%{version}
%patch0 -p1 -b .debian
%patch1 -p1 -b .suse
%patch2 -p1 -b .pic-html
%patch3 -p1 -b .gcc4
%patch4 -p1 -b .gcc3
%patch5 -p1 -b .utf-8
%patch6 -p1 -b .debian-fix
%patch7
%patch8 -p1
%patch9 -p1
%build
# remove empty backups
rm -f ChangeLog.jp.debian README.jp.debian
#
PATH=$PWD/src/roff/troff:$PWD/src/preproc/pic:$PWD/src/preproc/eqn:$PWD/src/preproc/tbl:$PWDsrc/preproc/refer:$PWD/src/preproc/soelim:$PATH
PATH=$PWD/src/roff/grog:$PWD/src/roff/groff:$PWD/src/devices/grops:$PWD/src/devices/grotty:$PWD/src/devices/grodvi:$PWD/src/devices/grohtml:$PATH
GROFF_COMMAND_PREFIX=
GROFF_FONT_PATH=$PWD
GROFF_TMAC_PATH=$PWD/tmac:$PWD/src/roff/troff
export PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
#
#libtoolize --force
#autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" INSTALL_PROGRAM='${INSTALL}'
./configure --prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} --enable-multibyte
make
%if %{build_groff_docu}
pushd doc
echo "papersize a4" > /etc/papersize
make
makeinfo groff.texinfo
popd
%endif
%install
if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then
install -d -m755 $RPM_BUILD_ROOT
fi
mkdir -p $RPM_BUILD_ROOT/usr/share
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/groff
make install manroot=$RPM_BUILD_ROOT%{_mandir} prefix=$RPM_BUILD_ROOT/usr docdir=$RPM_BUILD_ROOT%{_defaultdocdir}/groff
%if %{build_groff_docu}
install -c -m0444 doc/*.ps $RPM_BUILD_ROOT%{_defaultdocdir}/groff
#install -c -m0444 doc/*.html $RPM_BUILD_ROOT%{_defaultdocdir}/groff
install -c -m0444 doc/*.png $RPM_BUILD_ROOT%{_defaultdocdir}/groff
install -c -m0444 BUG* COPYING ChangeLog* INSTALL* MORE* NEWS PROBLEMS PROJECTS README* REVISION TODO VERSION $RPM_BUILD_ROOT%{_defaultdocdir}/groff
%endif
mkdir -p $RPM_BUILD_ROOT%{_infodir}
install -c -m 444 doc/groff doc/groff-[0-9]* $RPM_BUILD_ROOT%{_infodir}
ln -sf eqn $RPM_BUILD_ROOT/usr/bin/geqn
ln -sf tbl $RPM_BUILD_ROOT/usr/bin/gtbl
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
install -c -m0755 $RPM_SOURCE_DIR/SuSEconfig.groff $RPM_BUILD_ROOT/sbin/conf.d/
install -c -m0644 $RPM_SOURCE_DIR/sysconfig.suseconfig-groff $RPM_BUILD_ROOT/var/adm/fillup-templates/
echo "papersize a4" > $RPM_BUILD_ROOT/etc/papersize
chmod 0644 $RPM_BUILD_ROOT/etc/papersize
# install profiles to disable the use of ANSI colour sequences by default:
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -m 755 $RPM_SOURCE_DIR/groff.sh $RPM_BUILD_ROOT/etc/profile.d
install -m 755 $RPM_SOURCE_DIR/groff.csh $RPM_BUILD_ROOT/etc/profile.d
pushd $RPM_BUILD_ROOT/usr/share/groff
test -d 1.18.1 || exit 1
ln -s 1.18.1 current
popd
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%post
%{fillup_only -an suseconfig}
%install_info --info-dir=%{_infodir} %{_infodir}/groff.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/groff.gz
%files
%dir %{_defaultdocdir}/groff
%doc %{_defaultdocdir}/groff/*
%doc %{_infodir}/groff*
/usr/bin/*
%doc %{_mandir}/man?/*
%config(noreplace) %verify(not md5 size mtime) /etc/papersize
/etc/profile.d/groff.*sh
%dir /usr/share/groff/
%dir /usr/share/groff/site-tmac/
/usr/share/groff/site-tmac/*
/usr/share/groff/current
%dir /usr/share/groff/1.18.1/
/usr/share/groff/1.18.1/eign
%dir /usr/share/groff/1.18.1/font/
/usr/share/groff/1.18.1/font/*
%dir /usr/share/groff/1.18.1/tmac/
/usr/share/groff/1.18.1/tmac/*.tmac
/usr/share/groff/1.18.1/tmac/*rc*
/usr/share/groff/1.18.1/tmac/hyphen.us
%dir /usr/share/groff/1.18.1/tmac/mdoc/
/usr/share/groff/1.18.1/tmac/mdoc/*
%dir /usr/share/groff/1.18.1/tmac/mm/
/usr/share/groff/1.18.1/tmac/mm/*cov
/usr/share/groff/1.18.1/tmac/mm/*MT
%verify(not md5) /usr/share/groff/1.18.1/tmac/mm/locale
%verify(not md5) /usr/share/groff/1.18.1/tmac/mm/se_locale
/sbin/conf.d/SuSEconfig.groff
/var/adm/fillup-templates/sysconfig.suseconfig-groff
%changelog -n groff
* Tue Sep 05 2006 - rguenther@suse.de
- Split gxdview to a separate spec file.
* Mon Sep 04 2006 - rguenther@suse.de
- Remove unneeded build dependency on ghostscript-mini.
* Sun Aug 06 2006 - cthiel@suse.de
- fix build with X.org 7.1
* Tue Feb 28 2006 - mfabian@suse.de
- Bugzilla #148472: use -Tlatin1 instead of -Tascii8 for
languages which used ISO-8859-1 as legacy encoding.
With -Tascii8, "\(:u" for ü won't work.
* Thu Feb 09 2006 - mfabian@suse.de
- Bugzilla #148922: nroff hangs when input comes from a file
and not from a pipe: Improfe UTF-8 workaround to handle this
case as well by parsing the options with getopt to find out
whether a file was given as an argument.
* Fri Jan 27 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 26 2006 - sbrabec@suse.cz
- Added %%install_info_prereq.
* Mon Jan 23 2006 - mfabian@suse.de
- Bugzilla #144726: add workaround to allow UTF-8 encoded sources
of man-pages. Some packages already contain man-pages with
UTF-8 encoded man-page sources, for example "mc". Hopefully
one day groff will really support this. Until then a workaround
is better than nothing.
* Fri Dec 09 2005 - meissner@suse.de
- -fno-strict-aliasing.
* Thu Oct 13 2005 - meissner@suse.de
- fixed build.
* Sat Sep 17 2005 - meissner@suse.de
- fixed implicits.
* Mon Aug 22 2005 - mfabian@suse.de
- Bugzilla #105807: /etc/papersize can be changed by SuSEconfig,
don't verify md5, size, mtime.
/usr/share/groff/1.18.1/tmac/mm/locale and
/usr/share/groff/1.18.1/tmac/mm/se_locale are empty by default,
don't verify md5.
* Wed Jun 22 2005 - mfabian@suse.de
- improve papersize detection in SuSEconfig.groff.
* Thu Jun 02 2005 - mfabian@suse.de
- add symbolic link for tetex (and others):
/usr/share/groff/%%{version} -> /usr/share/groff/current
* Mon Dec 06 2004 - mfabian@suse.de
- Bugzilla #47862: fix insecure creation of temporary directory
in groffer.sh, see also CAN-2004-0969.
* Fri Sep 17 2004 - mfabian@suse.de
- add gcc4 patch received from Andreas Jaeger.
* Thu Sep 16 2004 - schwab@suse.de
- Fix double free.
* Tue Sep 07 2004 - mfabian@suse.de
- Bugzilla #44115: add groff.{sh,csh} and set GROFF_NO_SGR to
disable the use of ANSI colour sequences by default. They don't
work well with many pagers (e.g. lv, (X)Emacs) and they cause
problems when searching in man-pages when using less as the
pager.
* Tue Jun 29 2004 - mfabian@suse.de
- update to 1.18.1.1
- remove bison patch, voiddecl patch and patch to node.cc
(fixed upstream).
* Mon Apr 19 2004 - mmj@suse.de
- Declare void functions as such, and make int functions return such
* Tue Aug 26 2003 - mfabian@suse.de
- Bugzilla #28394: add workaround to display the euro symbol in
'man iso-8859-15' correctly in UTF-8 locales.
* Thu Aug 14 2003 - mfabian@suse.de
- Bugzilla #28945: add missing activation metadata to
sysconfig template
* Wed May 21 2003 - coolo@suse.de
- making /etc/papersize noreplace (the chances are very small the
package knows the papersize better than the user)
- installing the info pages
* Thu Mar 06 2003 - ro@suse.de
- readd ghostscript-mini to neededforbuild (fix docu)
* Thu Mar 06 2003 - mfabian@suse.de
- Bug #24758: fix segfault on copying an empty bracket_node
was reproducible with echo ' \b"" ' | troff
* Mon Jan 27 2003 - mfabian@suse.de
- Bug #22693: add missing metadata to sysconfig.suseconfig-groff
* Mon Jan 20 2003 - mfabian@suse.de
- fix file list to include /usr/share/man{5,7}/*
- extend workaround for non-latin1 man-page sources in UTF-8
locales to Hungarian, Croatian, Polish, and Russian
* Fri Dec 06 2002 - olh@suse.de
- remove ghostscript-mini-packages to build groff anyway
* Wed Nov 20 2002 - ro@suse.de
- use ghostscript-mini-packages
* Wed Nov 13 2002 - ro@suse.de
- fix build with current bison (end all rules with ";")
* Sun Oct 13 2002 - mfabian@suse.de
- remove bogus "Requires: bc".
* Wed Aug 28 2002 - mfabian@suse.de
- fix display of Czech man pages in cs_CZ.UTF-8 locale
* Thu Aug 01 2002 - mfabian@suse.de
- add %%fillup_prereq to Prereq:
* Tue Jun 04 2002 - mfabian@suse.de
- fix typo
* Tue Jun 04 2002 - mfabian@suse.de
- fix display of Japanese man pages in ja_JP.UTF-8 locale
* Thu May 02 2002 - meissner@suse.de
- Fixed g++ 3 issue (do not link C++ libraries with gcc)
* Sun Apr 07 2002 - schwab@suse.de
- Fix for new autoconf.
* Tue Mar 19 2002 - mfabian@suse.de
- fix bug #15052: add 'libgimpprint glib glib-devel' to
'# neededforbuild' because 'gs' needs this to run. When 'gs'
doesn't run, some .png pictures in the 'doc' directory
can't be created and remain empty.
- add groff-1.17.2-pic-html.diff to avoid using the process ID
in the names of the created .png files.
* Sun Mar 10 2002 - mfabian@suse.de
- write just 'a4' or 'letter' into /etc/papersize, not
'papersize a4' or 'papersize letter'. All this papersize
stuff doesn't seem to matter much anyway as groff calls
grops with the '-g' option (guess page length).
* Sat Mar 09 2002 - ro@suse.de
- replaced plp by lprng in neededforbuild
* Fri Mar 01 2002 - mfabian@suse.de
- fix /sbin/conf.d/SuSEconfig.groff:
prefer paper size information from the locale, use GROFF_PAGESIZE
as an override.
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Jan 16 2002 - ro@suse.de
- moved variables to sysconfig/suseconfig
* Thu Jan 10 2002 - mfabian@suse.de
- move *GROFF* variables from /etc/rc.config to
/etc/sysconfig/groff (fix Bug #12739)
* Mon Oct 15 2001 - mfabian@suse.de
- add /etc/papersize (fix Bug #11810)
* Mon Sep 03 2001 - mfabian@suse.de
- add obsoletes jgroff
* Thu Aug 30 2001 - mfabian@suse.de
- upgrade debian patch to groff_1.17.2-7.diff
(fixes the problem with bold utf-8 characters, i.e. obsoletes
groff_1.17.2-6.1-debian-fix-minus.diff and includes a fix
for the troff man-page)
* Tue Aug 21 2001 - mfabian@suse.de
- upgrade debian patch to groff_1.17.2-6.1.diff
(fix hyphen character problem in EUC-JP encoding,
Fumitoshi UKAI <ukai@debian.or.jp> Fri, 17 Aug 2001)
- fix problem with bold minus characters in utf-8 caused by
debian patch (thanks to <mls@suse.de>)
* Fri Aug 17 2001 - mfabian@suse.de
- include patch for Japanese support from Debian
- security fix from Sebastian Krahmer <krahmer@suse.de> seems
to be included upstream, removed.
* Fri Jul 20 2001 - kukuk@suse.de
- changed neededforbuild <gs_fonts> to <ghostscript-fonts-std>
- changed neededforbuild <gs_lib> to <ghostscript-library>
- changed neededforbuild <gs_serv> to <ghostscript-serv>
* Thu Jul 12 2001 - fehr@suse.de
- update to version 1.17.2
* Fri Jul 06 2001 - fehr@suse.de
- add security fix from Sebastian Krahmer <krahmer@suse.de>
* Mon Jun 25 2001 - fehr@suse.de
- update to version 1.17.1
* Tue Jun 12 2001 - fehr@suse.de
- make it build with newer compilers (ia64, axp)
* Tue May 22 2001 - fehr@suse.de
- update to version 1.17
* Mon May 07 2001 - mfabian@suse.de
- bzip2 source
* Sat Apr 21 2001 - schwab@suse.de
- Fix C++ constraint violation.
* Wed Mar 07 2001 - uli@suse.de
- added xf86 to neededforbuild
* Wed Dec 13 2000 - mfabian@suse.de
- added "Provides: normal-groff". This enables the japanized
groff to use "Provides: groff" and "Conflicts: normal-groff".
* Fri Dec 08 2000 - fehr@suse.de
- add conflicts to jgroff
* Tue Sep 05 2000 - fehr@suse.de
- check for writable fontdir in SuSEconfig.groff (#2787)
* Tue Aug 15 2000 - mfabian@suse.de
- update to version 1.16.1
- added 'BuildRoot'
* Fri Aug 04 2000 - fehr@suse.de
- changes to new version 1.16.1 of groff
* Fri Jul 21 2000 - fehr@suse.de
- add patch to display japanese man pages again
* Fri Jul 07 2000 - fehr@suse.de
- change comment in rc.config part of package (bugzilla #3256)
* Mon May 29 2000 - fehr@suse.de
- changes to new version 1.16 of groff
* Fri May 19 2000 - fehr@suse.de
- move documentation to /usr/share/doc/packages
* Thu Mar 16 2000 - werner@suse.de
- nroff script
* Allow other ISO latin character sets because they use the same
8 bit table: use -Tlatin1
* Allow wide ANSI character maps (e.g. Japanese) because they use
multiple 8 bit characters: use -Tlatin1
* Map -Tnippon to -Tlatin1
* Mon Mar 06 2000 - schwab@suse.de
- Update tmac.m from CVS.
- Fix tmac.mse reference to tmac.m.
* Fri Feb 25 2000 - schwab@suse.de
- /usr/man -> /usr/share/man
* Mon Jan 03 2000 - schwab@suse.de
- Update to 1.15 (Y2K fix).
- Get rid of Makefile.Linux.
* Mon Sep 27 1999 - bs@suse.de
- fixed requirements for sub packages
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Jul 02 1999 - werner@suse.de
- Fix Makefle.Linux to make (g)xditview with the values
set in Imakefile
- Split up a new package gxdview to avoid dependencies
of groff on the X11 system.
- Correct version number of groff in pac
* Tue Feb 23 1999 - ro@suse.de
- don't redclare strchr for glibc
* Tue Dec 15 1998 - bs@suse.de
- fixed SuSEconfig
* Sun Dec 13 1998 - bs@suse.de
- made SuSEconfig.groff a little bit more silent.
* Wed Nov 18 1998 - ro@suse.de
- commented out "find" in specfile
* Tue Nov 17 1998 - werner@suse.de
- Remove hint during SuSEconfig.groff
* Thu Sep 03 1998 - werner@suse.de
- Add three missed files
* Tue Aug 25 1998 - werner@suse.de
- Skipt warn message if printer isn't configured
* Thu Aug 06 1998 - werner@suse.de
- New version 1.11a
- Make docs and install them
- Add a auto configure script for SuSEconfig
- Make tmac/tmac.safer more safer: do not open files via .so
* Sun Jul 26 1998 - bs@suse.de
- fixed name of GXDITVIEW
* Tue Oct 07 1997 - florian@suse.de
- prepared spec file
- "bash 2.0" Fix in Makefile

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79af1331031b9ce963413950d29626270d2deb1ae6a474b2b25bea801e691c2b
size 96274

27
groffer-security.patch Normal file
View File

@ -0,0 +1,27 @@
diff -ru groff-1.18.1.1/contrib/groffer/groffer.sh groff-1.18.1.1.new/contrib/groffer/groffer.sh
--- groff-1.18.1.1/contrib/groffer/groffer.sh 2004-06-15 03:44:50.000000000 +0200
+++ groff-1.18.1.1.new/contrib/groffer/groffer.sh 2004-12-06 22:02:31.072260000 +0100
@@ -3228,18 +3228,13 @@
do
if is_not_empty "$d"; then
if obj d is_dir && obj d is_writable; then
- _TMP_DIR="${d}/${_PROGRAM_NAME}${_PROCESS_ID}";
- if obj _TMP_DIR is_dir; then
- rm -f "${_TMP_DIR}"/*;
+ _TMP_DIR="`mktemp -d ${d}/${_PROGRAM_NAME}.XXXXXX`";
+ if test $? = 0; then
break;
else
- mkdir "${_TMP_DIR}";
- if obj _TMP_DIR is_not_dir; then
- _TMP_DIR='';
- continue;
- fi;
- break;
- fi;
+ _TMP_DIR='';
+ continue;
+ fi
fi;
if obj _TMP_DIR is_not_writable; then
_TMP_DIR='';

5
gxdview.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Sep 5 12:00:12 CEST 2006 - rguenther@suse.de
- Split from groff spec file.

112
gxdview.spec Normal file
View File

@ -0,0 +1,112 @@
#
# spec file for package gxdview (Version 1.18.1.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gxdview
BuildRequires: gcc-c++ xorg-x11-devel
License: GPL
Group: Productivity/Publishing/Troff
Autoreqprov: on
Requires: groff
Conflicts: jgxdview
Version: 1.18.1.1
Release: 33
Summary: Ditroff Output Displayer for Groff
URL: http://www.gnu.org/software/groff/groff.html
Source0: ftp://ftp.gnu.org/gnu/groff/groff-1.18.1.1.tar.bz2
Source1: SuSEconfig.groff
Source2: sysconfig.suseconfig-groff
Source3: groff.sh
Source4: groff.csh
Patch0: groff_1.18.1.1-1-debian.diff.bz2
Patch1: suse.patch
Patch2: pic-html.patch
Patch3: gcc4.patch
Patch4: groff-1.17.2-gcc3.patch
Patch5: utf8.patch
Patch6: debian-fix.patch
Patch7: double-free.patch
Patch8: groffer-security.patch
Patch9: groff-1.18.1.1-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This version of xditview is called gxditview and has some extensions
used by the groff command. gxditview is used by groff if called with
the -X option.
Authors:
--------
James Clark <jjc@clark.com>
%prep
%setup -q -n groff-%{version}
%patch0 -p1 -b .debian
%patch1 -p1 -b .suse
%patch2 -p1 -b .pic-html
%patch3 -p1 -b .gcc4
%patch4 -p1 -b .gcc3
%patch5 -p1 -b .utf-8
%patch6 -p1 -b .debian-fix
%patch7
%patch8 -p1
%patch9 -p1
%build
# remove empty backups
rm -f ChangeLog.jp.debian README.jp.debian
#
PATH=$PWD/src/roff/troff:$PWD/src/preproc/pic:$PWD/src/preproc/eqn:$PWD/src/preproc/tbl:$PWDsrc/preproc/refer:$PWD/src/preproc/soelim:$PATH
PATH=$PWD/src/roff/grog:$PWD/src/roff/groff:$PWD/src/devices/grops:$PWD/src/devices/grotty:$PWD/src/devices/grodvi:$PWD/src/devices/grohtml:$PATH
GROFF_COMMAND_PREFIX=
GROFF_FONT_PATH=$PWD
GROFF_TMAC_PATH=$PWD/tmac:$PWD/src/roff/troff
export PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
#
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" INSTALL_PROGRAM='${INSTALL}'
./configure --prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} --enable-multibyte
pushd src/xditview
xmkmf -a
make depend && make CDEBUGFLAGS="$RPM_OPT_FLAGS" NIPPONDEFINES="-DNIPPON"
popd
%install
if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then
install -d -m755 $RPM_BUILD_ROOT
fi
mkdir -p $RPM_BUILD_ROOT/usr/share
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/groff
mkdir -p $RPM_BUILD_ROOT%{_infodir}
make -C src/xditview install DESTDIR=$RPM_BUILD_ROOT
make -C src/xditview install.man MANSUFFIX=1 LIBMANSUFFIX=3 DESTDIR=$RPM_BUILD_ROOT
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
#
# Should we make a own package gxditview?
# ... but the new xditview is a good program for X11R6.3.
# If gxditview is required GXDITVIEW should be set
# in groff/groff.cc to "gxditview"
#
# Yes we should make a own package because groff uses
# some features of gxditview which xditview doesn't know.
#
%{_bindir}/gxditview
%doc %{_mandir}/man1/gxditview.1*
%config %{_datadir}/X11/app-defaults/GXditview
%changelog -n gxdview
* Tue Sep 05 2006 - rguenther@suse.de
- Split from groff spec file.

12
pic-html.patch Normal file
View File

@ -0,0 +1,12 @@
diff -ru groff-1.18.1.1.orig/doc/Makefile.in groff-1.18.1.1/doc/Makefile.in
--- groff-1.18.1.1.orig/doc/Makefile.in 2002-09-09 21:31:37.000000000 +0200
+++ groff-1.18.1.1/doc/Makefile.in 2004-06-29 18:41:17.238451579 +0200
@@ -87,7 +87,7 @@
.ms.html:
$(GROFF) -P-p -P-b -P-I`basename $< | sed -e 's|.ms$$||'` \
- -P-D$(imagedir) -Thtml -ms >$@
+ -P-D$(imagedir) -P-Ipic -Thtml -ms >$@
.ms.txt:
$(GROFF) -Tascii -ms -mwww >$@
.ms.ps:

0
ready Normal file
View File

13
suse.patch Normal file
View File

@ -0,0 +1,13 @@
diff -ru groff-1.18.1.1.orig/src/xditview/Imakefile.in groff-1.18.1.1/src/xditview/Imakefile.in
--- groff-1.18.1.1.orig/src/xditview/Imakefile.in 2004-06-29 18:29:58.000000000 +0200
+++ groff-1.18.1.1/src/xditview/Imakefile.in 2004-06-29 18:32:48.316408487 +0200
@@ -13,7 +13,7 @@
GROFF_DATASUBDIR = $(GROFF_DATAPROGRAMDIR)/$(version)$(revision)
GROFF_FONTDIR = $(GROFF_DATASUBDIR)/font
GROFF_LOCALFONTDIR = $(GROFF_DATAPROGRAMDIR)/site-font
-GROFF_FONTPATH = $(GROFF_FONTDIR):$(GROFF_LOCALFONTDIR):/usr/lib/font
+GROFF_FONTPATH = $(GROFF_FONTDIR):$(GROFF_LOCALFONTDIR):/usr/local/share/font:/usr/share/font
DPIS = 75 100
PROGRAMS = \
groff-1.18.1.1/src/xditviewだけに発見: Imakefile.in.~1~

View File

@ -0,0 +1,20 @@
## Path: System/SuSEconfig
## Type: yesno
## Config: groff
## Default: yes
#
# Update /etc/papersize to get page sizes for groff correct? (yes/no)
#
UPDATE_GROFF_CONF="yes"
## Type: string(letter,legal,a4,b5)
## Config: groff
## Default: ""
#
# By default, SuSEconfig tries to get the correct page size
# from your system wide locale (i.e. from the system wide value of
# LC_PAPER, which is possibly inherited from the system wide value of LANG).
# If you want to set a page size for groff different from that,
# you can set GROFF_PAGESIZE to the following values
# letter, legal, a4, b5
#
GROFF_PAGESIZE=""

164
utf8.patch Normal file
View File

@ -0,0 +1,164 @@
diff -ru groff-1.18.1.1.orig/src/roff/nroff/nroff.sh groff-1.18.1.1/src/roff/nroff/nroff.sh
--- groff-1.18.1.1.orig/src/roff/nroff/nroff.sh 2002-02-07 09:36:54.000000000 +0100
+++ groff-1.18.1.1/src/roff/nroff/nroff.sh 2006-02-09 15:33:14.000000000 +0100
@@ -81,11 +87,159 @@
shift
done
+# special hack to display Japanese and Czech man pages correctly in UTF-8 locale:
+ICONV="cat"
+case "`locale charmap 2>/dev/null`" in
+ UTF-8)
+ case "${LANGUAGE-${LC_ALL-${LC_MESSAGES-${LANG}}}}" in
+ ja*)
+ # Japanese man page in UTF-8 locale, special case!
+ # force the device 'nippon' to run groff in ja_JP.eucJP locale
+ # and convert the result to UTF-8 using iconv:
+ T=-Tnippon
+ export LC_ALL=ja_JP.eucJP
+ ICONV="iconv -f EUC-JP -t UTF-8"
+ ;;
+ cs*|hu*|hr*|pl*)
+ # Czech, Hungarian, ... in UTF-8 seem to need special treatment as well:
+ T=-Tascii8
+ export LC_ALL=cs_CZ.ISO-8859-2
+ ICONV="iconv -f ISO-8859-2 -t UTF-8"
+ ;;
+ ru_RU*)
+ # Russian man page sources are in KOI8-R
+ T=-Tascii8
+ export LC_ALL=ru_RU.KOI8-R
+ ICONV="iconv -f KOI8-R -t UTF-8"
+ ;;
+ # make 'man iso-8859-15' display correctly in UTF-8 locales using Euro
+ ca_ES*|de_AT*|de_BE*|de_DE*|de_LU*|en_BE*|en_IE*|es_ES*|eu_ES*|fi_FI*|fr_BE*|fr_FR*|fr_LU*|ga_IE*|gl_ES*|it_IT*|nl_BE*|nl_NL*|pt_PT*|sv_FI*|wa_BE*)
+ T=-Tlatin1
+ export LC_ALL=de_DE@euro
+ ICONV="iconv -f ISO-8859-15 -t UTF-8"
+ ;;
+ esac
+ ;;
+esac
+
+guess_legacy_encoding () {
+ # Guess the legacy encoding used by the language/country
+ # found in the current LC_CTYPE value.
+
+ # First determine the LC_CTYPE locale category setting
+ ctype=${LC_ALL-${LC_CTYPE-${LANG-en_US}}}
+
+ case $ctype in
+ zh_TW*)
+ LEGACY_ENCODING=Big5
+ ;;
+ zh_HK*)
+ LEGACY_ENCODING=Big5HKSCS
+ ;;
+ zh*)
+ LEGACY_ENCODING=GB2312
+ ;;
+ ja*)
+ LEGACY_ENCODING=EUC-JP
+ ;;
+ ko*)
+ LEGACY_ENCODING=EUC-KR
+ ;;
+ ru*)
+ LEGACY_ENCODING=KOI8-R
+ ;;
+ uk*)
+ LEGACY_ENCODING=KOI8-U
+ ;;
+ pl*|hr*|hu*|cs*|sk*|sl*)
+ LEGACY_ENCODING=ISO-8859-2
+ ;;
+ eo*|mt*)
+ LEGACY_ENCODING=ISO-8859-3
+ ;;
+ el*)
+ LEGACY_ENCODING=ISO-8859-7
+ ;;
+ he*)
+ LEGACY_ENCODING=ISO-8859-8
+ ;;
+ tr*)
+ LEGACY_ENCODING=ISO-8859-9
+ ;;
+ th*)
+ LEGACY_ENCODING=TIS-620 # or ISO-8859-11
+ ;;
+ lt*)
+ LEGACY_ENCODING=ISO-8859-13
+ ;;
+ cy*)
+ LEGACY_ENCODING=ISO-8859-14
+ ;;
+ ro*)
+ LEGACY_ENCODING=ISO-8859-14 # or ISO-8859-16
+ ;;
+ am*|vi*)
+ LEGACY_ENCODING=UTF-8
+ ;;
+ *)
+ LEGACY_ENCODING=ISO-8859-1
+ ;;
+ esac
+}
+
+guess_legacy_encoding;
+TMPDIR=`mktemp -d /tmp/nroff.XXXXXX`
+if [ $? -ne 0 ]; then
+ echo "$0: Can't create temp directory, exiting..."
+ exit 1
+fi
+trap "exec rm -rf $TMPDIR" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO
+
+# parse groff options to find out whether a file was given as argument or whether the
+# input is read from stdin:
+OLDARGS=""
+TEMP=$(getopt --options "abcCd:eEf:F:gGhiI:lL:m:M:n:No:pP:r:RsStT:UvVw:W:XzZ" --longoptions help,version -- ${1+"$@"})
+eval set -- "$TEMP"
+while true ; do
+ case "$1" in
+ --)
+ if [ -n "$2" ] ; then
+ INPUTFILE="$2"
+ shift 2
+ else
+ INPUTFILE=""
+ shift 1
+ fi
+ break
+ ;;
+ *)
+ OLDARGS="$OLDARGS $1"
+ echo $1
+ shift 1
+ ;;
+ esac
+done
+eval set -- "$OLDARGS"
+
+if [ -n "$INPUTFILE" ] ; then
+ # input comes from a file
+ cat "$INPUTFILE" > $TMPDIR/input
+else
+ # input comes from stdin
+ cat > $TMPDIR/input
+fi
+
+iconv -s -c -f utf-8 -t utf-8 < $TMPDIR/input > /dev/null
+if [ $? -eq 0 ]; then
+ iconv -s -c -f utf8 -t $LEGACY_ENCODING < $TMPDIR/input > $TMPDIR/input.new
+ mv $TMPDIR/input.new $TMPDIR/input
+fi
+
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
: ${GROFF_BIN_PATH=@BINDIR@}
export GROFF_BIN_PATH
-PATH=$GROFF_BIN_PATH:$PATH groff -mtty-char $T $opts ${1+"$@"}
+PATH=$GROFF_BIN_PATH:$PATH groff -mtty-char $T $opts ${1+"$@"} < $TMPDIR/input | $ICONV
# eof