diff --git a/.gitignore b/.gitignore
index 26e4cf7..e6daea9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1 @@
-xfig.3.2.5b.full.tar.gz
-/xfig-icons.tar.gz
-/xfig.3.2.5c.full.tar.gz
-/xfig_3.2.5.c-8.debian.tar.xz
-/xfig-full-3.2.6.tar.xz
-/xfig-3.2.6.tar.xz
-/xfig-3.2.6a.tar.xz
-/xfig-3.2.7a.tar.xz
-/xfig-3.2.7b.tar.xz
-/xfig-3.2.8a.tar.xz
-/xfig-3.2.8b.tar.xz
-/xfig-3.2.9.tar.xz
-/mcj-xfig-ce9782a404b6a527393839369aac13dcfb66ff16.zip
+xfig.3.2.5a.tar.gz
diff --git a/sources b/sources
index 221c443..19dd5bd 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (mcj-xfig-ce9782a404b6a527393839369aac13dcfb66ff16.zip) = a0d483d77edb16d869596a53f89783efd232832b4447089227f34ff552836209f595e5cc9f179242386e85f6f8378607433913720aab29b9d69a2a4007404b47
-SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5
+20e8774f9cbaaf314ddf515110641a52 xfig.3.2.5a.tar.gz
diff --git a/xfig-3.2.4-redhat.patch b/xfig-3.2.4-redhat.patch
new file mode 100644
index 0000000..8b6d62c
--- /dev/null
+++ b/xfig-3.2.4-redhat.patch
@@ -0,0 +1,31 @@
+--- xfig.3.2.4/Fig.ad.redhat 2002-12-19 01:05:41.000000000 +0100
++++ xfig.3.2.4/Fig.ad 2003-05-06 11:45:15.000000000 +0200
+@@ -11,7 +11,7 @@
+ Fig*AllowShellResize: false
+
+ ! Image editor - can edit imported image
+-Fig.image_editor: xv
++Fig.image_editor: xdg-open
+
+ ! name of ghostscript (not ghostview)
+ Fig.ghostscript: gs
+@@ -20,16 +20,16 @@
+ ! This is for viewing the xfig html reference.
+ ! For netscape, this command will open the help pages in a running netscape,
+ ! or start a new netscape if one isn't already running
+-Fig.browser: netscape -remote 'openFile(%f)' || netscape %f
++Fig.browser: xdg-open %f
+
+ ! pdfviewer - put your favorite pdf viewer here.
+ ! This is for viewing the xfig how-to guide and man pages
+-Fig.pdfviewer: acroread %f
++Fig.pdfviewer: xdg-open %f
+
+ ! Spell check program - put your favorite spelling check program here.
+ ! It must write the misspelled words to standard output.
+
+-Fig.spellcheckcommand: spell %f
++Fig.spellcheckcommand: enchant -l %f
+
+ ! delay before spinner automatically counts when pressed (milliseconds)
+ Fig.spinner_delay: 1000
diff --git a/xfig-3.2.5-color-resources.patch b/xfig-3.2.5-color-resources.patch
new file mode 100644
index 0000000..b7bef5d
--- /dev/null
+++ b/xfig-3.2.5-color-resources.patch
@@ -0,0 +1,53 @@
+diff -up xfig.3.2.5/Fig-color.ad~ xfig.3.2.5/Fig-color.ad
+--- xfig.3.2.5/Fig.ad~ 2007-11-16 13:47:45.000000000 +0100
++++ xfig.3.2.5/Fig.ad 2007-11-16 13:47:52.000000000 +0100
+@@ -113,19 +113,19 @@
+ ! I include both for compatibility. Be sure to change both values when
+ ! modifying them.
+
+- Fig*horizontal.shadowWidth: 0
+- Fig*horizontal.topShadowPixel: black
+- Fig*horizontal.bottomShadowPixel: white
+- Fig*horizontal.topShadow: black
+- Fig*horizontal.bottomShadow: white
++! Fig*horizontal.shadowWidth: 0
++! Fig*horizontal.topShadowPixel: black
++! Fig*horizontal.bottomShadowPixel: white
++! Fig*horizontal.topShadow: black
++! Fig*horizontal.bottomShadow: white
+
+ ! the following is done so the widget set doesn't try to make shades of
+ ! the scrollbar shadows (even though the width is 0 it takes more colors)
+- Fig*Scrollbar.shadowWidth: 0
+- Fig*Scrollbar.topShadow: black
+- Fig*Scrollbar.bottomShadow: white
+- Fig*Scrollbar.topShadowPixel: black
+- Fig*Scrollbar.bottomShadowPixel: white
++! Fig*Scrollbar.shadowWidth: 0
++! Fig*Scrollbar.topShadow: black
++! Fig*Scrollbar.bottomShadow: white
++! Fig*Scrollbar.topShadowPixel: black
++! Fig*Scrollbar.bottomShadowPixel: white
+
+ ! this is for the standard color buttons in the color panel
+ Fig*stdColor.shadowWidth: 2
+@@ -655,7 +655,7 @@
+
+ Fig*FigList*background: gray95
+ Fig*List*background: gray95
+-Fig*Scrollbar.background: gray95
++Fig*Scrollbar.background: gray80
+
+ Fig*Label.background: gray80
+ Fig*ind_box.background: gray80
+@@ -666,8 +666,8 @@
+ Fig*upd_ctrl_form.upd_ctrl_btns*shadowWidth: 2
+
+ !##### Shadows
+-Fig*shadowWidth: 1
+-Fig*Label.shadowWidth: 1
++!Fig*shadowWidth: 1
++!Fig*Label.shadowWidth: 1
+ Fig*horizontal.shadowWidth: 2
+ Fig*Scrollbar.shadowWidth: 2
+ ! no shadows for update indicators
diff --git a/xfig-3.2.5-debian.patch b/xfig-3.2.5-debian.patch
new file mode 100644
index 0000000..13c1cf0
--- /dev/null
+++ b/xfig-3.2.5-debian.patch
@@ -0,0 +1,48 @@
+diff -urN xfig.3.2.5.orig/Doc/xfig.man xfig.3.2.5/Doc/xfig.man
+--- xfig.3.2.5.orig/Doc/xfig.man 2004-04-14 19:26:07.000000000 +0200
++++ xfig.3.2.5/Doc/xfig.man 2009-03-15 16:44:48.000000000 +0100
+@@ -1474,8 +1475,11 @@
+ See the
+ .IR Imakefile .
+ .TP
+-/usr/lib/X11/xfig
+-This directory contains the html documentation, the above mentioned
++/usr/share/doc/xfig-3.2.5
++This directory contains the documentation.
++.TP
++/usr/share/xfig
++This directory contains the above mentioned
+ CompKeyDB file, and a directory of libraries containing Fig objects
+ such as electrical symbols, logic symbols, etc.
+ .TP
+diff -urN xfig.3.2.5.orig/Doc/xfig_man.html xfig.3.2.5/Doc/xfig_man.html
+--- xfig.3.2.5.orig/Doc/xfig_man.html 2004-04-14 19:35:44.000000000 +0200
++++ xfig.3.2.5/Doc/xfig_man.html 2009-03-15 16:44:48.000000000 +0100
+@@ -2504,8 +2504,11 @@
+ See the
+ Imakefile.
+
+-
/usr/lib/X11/xfig
+-This directory contains the html documentation, the above mentioned
++/usr/share/doc/xfig-3.2.5
++This directory contains the documentation.
++
++/usr/share/xfig
++This directory contains the above mentioned
+ CompKeyDB file, and a directory of libraries containing Fig objects
+ such as electrical symbols, logic symbols, etc.
+ Fig.ad and Fig-color.ad
+diff -urN xfig.3.2.5.orig/Fig.ad xfig.3.2.5/Fig.ad
+--- xfig.3.2.5.orig/Fig.ad 2009-03-15 16:31:31.000000000 +0100
++++ xfig.3.2.5/Fig.ad 2009-03-15 16:44:48.000000000 +0100
+@@ -5,6 +5,10 @@
+
+ ! some sample settings you may want to change
+
++! If the following resource is set to false, xfig will use metric units
++! by default.
++Fig.inches: true
++
+ ! The following fixes a problem that some window managers have
+ ! with xfig continually resizing itself
+
diff --git a/xfig-3.2.5-enable-Xaw3d.patch b/xfig-3.2.5-enable-Xaw3d.patch
new file mode 100644
index 0000000..a1df816
--- /dev/null
+++ b/xfig-3.2.5-enable-Xaw3d.patch
@@ -0,0 +1,21 @@
+diff -up xfig.3.2.5a/Imakefile.no-Xaw3d xfig.3.2.5a/Imakefile
+--- xfig.3.2.5a/Imakefile.no-Xaw3d 2009-03-27 16:33:46.000000000 +0100
++++ xfig.3.2.5a/Imakefile 2009-03-27 16:35:06.000000000 +0100
+@@ -50,7 +50,7 @@ XAPPLOADDIR = /usr/share/X11/app-default
+ XCOMM Comment out the following definition for XAW3D if you don't to want to use
+ XCOMM the 3d Athena Widget Set
+
+-XCOMM #define XAW3D
++#define XAW3D
+
+ #ifdef XAW3D
+ XAWLIB = -lXaw3d
+@@ -60,7 +60,7 @@ XCOMM Uncomment the following if you hav
+ XCOMM some new features, including "Tips", which replace xfig's "help balloons"
+ XCOMM NOTE: This is the default for many X systems now.
+
+-XCOMM #define XAW3D1_5E
++#define XAW3D1_5E
+
+ #ifdef XAW3D1_5E
+ DUSEXAW3D = -DXAW3D -DXAW3D1_5E
diff --git a/xfig-3.2.5-fhs.patch b/xfig-3.2.5-fhs.patch
new file mode 100644
index 0000000..a17d908
--- /dev/null
+++ b/xfig-3.2.5-fhs.patch
@@ -0,0 +1,12 @@
+--- xfig.3.2.5/Imakefile.fhs 2006-10-11 01:19:22.000000000 +0200
++++ xfig.3.2.5/Imakefile 2007-04-16 14:04:45.000000000 +0200
+@@ -169,8 +169,7 @@
+ XFIGLIBDIR = $(LIBDIR)/xfig
+
+ XCOMM XFIGDOCDIR tells where the html and pdf documentation should go
+-XCOMM XFIGDOCDIR = $(DOCDIR)/xfig
+-XFIGDOCDIR = /usr/local/xfig/doc
++XFIGDOCDIR = $(DOCDIR)/xfig
+
+ XCOMM MANDIR tells where the standard man pages should go (no need to change it
+ XCOMM if you want the man pages installed in the standard place on your system
diff --git a/xfig-3.2.5-missing-protos.patch b/xfig-3.2.5-missing-protos.patch
new file mode 100644
index 0000000..d9ec28f
--- /dev/null
+++ b/xfig-3.2.5-missing-protos.patch
@@ -0,0 +1,90 @@
+diff -urNad xfig~/e_chop.c xfig/e_chop.c
+--- xfig~/e_chop.c
++++ xfig/e_chop.c
+@@ -22,6 +22,7 @@
+ #ifndef __FreeBSD__
+ #include
+ #endif
++#include
+ #include "fig.h"
+ #include "resources.h"
+ #include "mode.h"
+@@ -31,6 +32,9 @@
+ #include "u_list.h"
+ #include "u_search.h"
+ #include "u_undo.h"
++#include "u_markers.h"
++#include "u_geom.h"
++#include "u_redraw.h"
+ #include "w_canvas.h"
+ #include "w_drawprim.h"
+ #include "w_mousefun.h"
+@@ -39,6 +43,8 @@
+ #include "w_zoom.h"
+ #include "w_snap.h"
+ #include "w_intersect.h"
++#include "w_cursor.h"
++#include "f_util.h"
+
+ static void select_axe_object();
+ static void select_log_object();
+diff -urNad xfig~/main.c xfig/main.c
+--- xfig~/main.c
++++ xfig/main.c
+@@ -68,6 +68,8 @@
+ #include
+ #endif /* I18N */
+
++#include
++
+ /* EXPORTS */
+
+ Boolean geomspec;
+diff -urNad xfig~/w_intersect.c xfig/w_intersect.c
+--- xfig~/w_intersect.c
++++ xfig/w_intersect.c
+@@ -23,6 +23,8 @@
+ #include "mode.h"
+ #include "w_snap.h"
+ #include "w_intersect.h"
++#include "w_msgpanel.h"
++#include "f_util.h"
+ #include "u_quartic.h"
+ #include
+ #include
+diff -urNad xfig~/w_intersect.h xfig/w_intersect.h
+--- xfig~/w_intersect.h
++++ xfig/w_intersect.h
+@@ -59,4 +59,6 @@
+
+ extern F_line * build_text_bounding_box(F_text * t);
+
++extern void delete_text_bounding_box(F_line * l);
++
+ #endif
+diff -urNad xfig~/w_snap.c xfig/w_snap.c
+--- xfig~/w_snap.c
++++ xfig/w_snap.c
+@@ -27,7 +27,10 @@
+ #include "w_setup.h"
+ #include "w_indpanel.h"
+ #include "w_util.h"
++#include "w_msgpanel.h"
+ #include "u_quartic.h"
++#include "u_search.h"
++#include "f_util.h"
+ #include
+ #ifndef __FreeBSD__
+ #include
+diff -up xfig.3.2.5a/w_canvas.h~ xfig.3.2.5a/w_canvas.h
+--- xfig.3.2.5a/w_canvas.h~ 2008-06-19 21:55:20.000000000 +0200
++++ xfig.3.2.5a/w_canvas.h 2009-03-27 16:42:25.000000000 +0100
+@@ -35,7 +35,7 @@ extern void toggle_show_balloons(void);
+ extern void toggle_show_lengths(void);
+ extern void toggle_show_vertexnums(void);
+ extern void toggle_show_borders(void);
+-extern void round_coords(); // isometric grid
++extern void round_coords(int *x, int *y); // isometric grid
+
+ extern void canvas_selected(Widget tool, XButtonEvent *event, String *params, Cardinal *nparams);
+ extern void paste_primary_selection(void);
diff --git a/xfig-3.2.5-mkstemp.diff b/xfig-3.2.5-mkstemp.diff
new file mode 100644
index 0000000..2d14981
--- /dev/null
+++ b/xfig-3.2.5-mkstemp.diff
@@ -0,0 +1,321 @@
+diff -urNad xfig~/f_readeps.c xfig/f_readeps.c
+--- xfig~/f_readeps.c
++++ xfig/f_readeps.c
+@@ -250,11 +250,10 @@
+ int urx, llx, ury, lly;
+ int pdf_flag;
+ {
+- static tempseq = 0;
+ char buf[300];
+ FILE *tmpfp, *pixfile, *gsfile;
+ char *psnam, *driver;
+- int status, wid, ht, nbitmap;
++ int status, wid, ht, nbitmap, fd;
+ char tmpfile[PATH_MAX],
+ pixnam[PATH_MAX],
+ errnam[PATH_MAX],
+@@ -270,8 +269,12 @@
+ /* re-open the pipe */
+ close_picfile(file, filetype);
+ file = open_picfile(tmpfile, &filetype, PIPEOK, pixnam);
+- sprintf(tmpfile, "%s/%s%06d", TMPDIR, "xfig-eps", getpid());
+- if ((tmpfp = fopen(tmpfile, "wb")) == NULL) {
++ snprintf(tmpfile, sizeof(tmpfile), "%s/xfig-eps.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(tmpfile)) == -1 || (tmpfp = fdopen(fd, "wb")) == NULL) {
++ if (fd != -1) {
++ unlink(tmpfile);
++ close(fd);
++ }
+ file_msg("Couldn't open tmp file %s, %s", tmpfile, strerror(errno));
+ return False;
+ }
+@@ -280,10 +283,20 @@
+ fclose(tmpfp);
+ }
+ /* make name /TMPDIR/xfig-pic######.pix */
+- sprintf(pixnam, "%s/%s%06d.pix", TMPDIR, "xfig-pic", tempseq);
++ snprintf(pixnam, sizeof(pixnam), "%s/xfig-pic.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(pixnam)) == -1) {
++ file_msg("Couldn't open tmp file %s, %s", pixnam, strerror(errno));
++ return False;
++ }
++ close(fd);
++
+ /* and file name for any error messages from gs */
+- sprintf(errnam, "%s/%s%06d.err", TMPDIR, "xfig-pic", tempseq);
+- tempseq++;
++ snprintf(errnam, sizeof(errnam), "%s/xfig-picerr.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(errnam)) == -1) {
++ file_msg("Couldn't open tmp file %s, %s", errnam, strerror(errno));
++ return False;
++ }
++ close(fd);
+
+ /* generate gs command line */
+ /* for monochrome, use pbm */
+diff -urNad xfig~/f_readgif.c xfig/f_readgif.c
+--- xfig~/f_readgif.c
++++ xfig/f_readgif.c
+@@ -76,7 +76,7 @@
+ char buf[BUFLEN],pcxname[PATH_MAX];
+ FILE *giftopcx;
+ struct Cmap localColorMap[MAX_COLORMAP_SIZE];
+- int i, stat, size;
++ int i, stat, size, fd;
+ int useGlobalColormap;
+ unsigned int bitPixel, red, green, blue;
+ unsigned char c;
+@@ -173,7 +173,13 @@
+ /* now call giftopnm and ppmtopcx */
+
+ /* make name for temp output file */
+- sprintf(pcxname, "%s/%s%06d.pix", TMPDIR, "xfig-pcx", getpid());
++ snprintf(pcxname, sizeof(pcxname), "%s/xfig-pcx.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(pcxname)) == -1) {
++ file_msg("Cannot create temporary file\n");
++ return FileInvalid;
++ }
++ close(fd);
++
+ /* make command to convert gif to pcx into temp file */
+ sprintf(buf, "giftopnm -quiet | ppmtopcx -quiet > %s", pcxname);
+ if ((giftopcx = popen(buf,"w" )) == 0) {
+diff -urNad xfig~/f_readppm.c xfig/f_readppm.c
+--- xfig~/f_readppm.c
++++ xfig/f_readppm.c
+@@ -34,10 +34,16 @@
+ {
+ char buf[BUFLEN],pcxname[PATH_MAX];
+ FILE *giftopcx;
+- int stat, size;
++ int stat, size, fd;
+
+ /* make name for temp output file */
+- sprintf(pcxname, "%s/%s%06d.pix", TMPDIR, "xfig-pcx", getpid());
++ snprintf(pcxname, sizeof(pcxname), "%s/xfig-pcx.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(pcxname)) == -1) {
++ file_msg("Cannot open temp file %s: %s\n", pcxname, strerror(errno));
++ return FileInvalid;
++ }
++ close(fd);
++
+ /* make command to convert gif to pcx into temp file */
+ sprintf(buf, "ppmtopcx > %s 2> /dev/null", pcxname);
+ if ((giftopcx = popen(buf,"w" )) == 0) {
+diff -urNad xfig~/f_readtif.c xfig/f_readtif.c
+--- xfig~/f_readtif.c
++++ xfig/f_readtif.c
+@@ -33,11 +33,16 @@
+ {
+ char buf[2*PATH_MAX+40],pcxname[PATH_MAX];
+ FILE *tiftopcx;
+- int stat;
++ int stat, fd;
+
+ /* make name for temp output file */
+- sprintf(pcxname, "%s/%s%06d.pix", TMPDIR, "xfig-pcx", getpid());
+-
++ snprintf(pcxname, sizeof(pcxname), "%s/xfig-pcx.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(pcxname)) == -1) {
++ file_msg("Cannot open temp file %s: %s\n", pcxname, strerror(errno));
++ return FileInvalid;
++ }
++ close(fd);
++
+ /* make command to convert tif to pnm then to pcx into temp file */
+ /* for some reason, tifftopnm requires a file and can't work in a pipe */
+ sprintf(buf, "tifftopnm %s 2> /dev/null | ppmtopcx > %s 2> /dev/null",
+diff -urNad xfig~/f_util.c xfig/f_util.c
+--- xfig~/f_util.c
++++ xfig/f_util.c
+@@ -906,14 +906,20 @@
+ int strain_out(char *name)
+ {
+ char line[RC_BUFSIZ+1], *tok;
++ int fd;
+
+ /* make a temp filename in the user's home directory so we
+ can just rename it to .xfigrc after creating it */
+- sprintf(tmpname, "%s/%s%06d", userhome, "xfig-xfigrc", getpid());
+- tmpf = fopen(tmpname,"wb");
+- if (tmpf == 0) {
+- file_msg("Can't make temporary file for .xfigrc - error: %s",strerror(errno));
+- return -1;
++ snprintf(tmpname, sizeof(tmpname), "%s/xfig-xfigrc.XXXXXX", userhome);
++
++ if ((fd = mkstemp(tmpname)) == -1 || (tmpf = fdopen(fd, "wb")) == NULL) {
++ file_msg("Can't make temporary file for .xfigrc - error: %s",
++ strerror(errno));
++ if (fd != -1) {
++ unlink(tmpname);
++ close(fd);
++ }
++ return -1;
+ }
+ /* read the .xfigrc file and write all to temp file except file names */
+ xfigrc = fopen(xfigrc_name,"r");
+diff -urNad xfig~/main.c xfig/main.c
+--- xfig~/main.c
++++ xfig/main.c
+@@ -657,8 +657,10 @@
+ update_figs = False;
+
+ /* get the TMPDIR environment variable for temporary files */
+- if ((TMPDIR = getenv("XFIGTMPDIR"))==NULL)
+- TMPDIR = "/tmp";
++ if ((TMPDIR = getenv("XFIGTMPDIR"))==NULL) {
++ if ((TMPDIR = getenv("TMPDIR")) == NULL)
++ TMPDIR = "/tmp";
++ }
+
+ /* first check args to see if user wants to scale the figure as it is
+ read in and make sure it is a resonable (positive) number */
+@@ -1673,7 +1675,14 @@
+ if (userhome != NULL && *strcpy(cut_buf_name, userhome) != '\0') {
+ strcat(cut_buf_name, "/.xfig");
+ } else {
+- sprintf(cut_buf_name, "%s/xfig%06d", TMPDIR, getpid());
++ int fd;
++ sprintf(cut_buf_name, "%s/xfig.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(cut_buf_name)) == -1) {
++ fprintf(stderr, "Can't create temporary file for cut_buff: %s\n",
++ strerror(errno));
++ exit(0);
++ }
++ close(fd);
+ }
+ }
+
+diff -urNad xfig~/mode.c xfig/mode.c
+--- xfig~/mode.c
++++ xfig/mode.c
+@@ -86,7 +86,7 @@
+
+ int cur_exp_lang; /* gets initialized in main.c */
+ Boolean batch_exists = False;
+-char batch_file[32];
++char batch_file[PATH_MAX];
+
+ /*******************************************************************/
+ /* If you change the order of the lang_items[] you must change the */
+diff -urNad xfig~/u_print.c xfig/u_print.c
+--- xfig~/u_print.c
++++ xfig/u_print.c
+@@ -92,9 +92,16 @@
+ char syspr[2*PATH_MAX+200];
+ char tmpfile[PATH_MAX];
+ char *name;
++ int fd;
+
+- sprintf(tmpfile, "%s/%s%06d", TMPDIR, "xfig-print", getpid());
++ snprintf(tmpfile, sizeof(tmpfile), "%s/xfig-print.XXXXXX", TMPDIR);
+ warnexist = False;
++ if ((fd = mkstemp(tmpfile)) == -1) {
++ file_msg("Can't open temp file %s: %s\n", tmpfile, strerror(errno));
++ return;
++ }
++ close(fd);
++
+ init_write_tmpfile();
+ if (write_file(tmpfile, False)) {
+ end_write_tmpfile();
+@@ -671,10 +678,16 @@
+ char errfname[PATH_MAX];
+ FILE *errfile;
+ char str[400];
+- int status;
++ int status, fd;
+
+ /* make temp filename for any errors */
+- sprintf(errfname, "%s/xfig-export%06d.err", TMPDIR, getpid());
++ snprintf(errfname, sizeof(errfname), "%s/xfig-export.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(errfname)) == -1) {
++ file_msg("Can't open temp file %s: %s\n", errfname, strerror(errno));
++ return 1;
++ }
++ close(fd);
++
+ /* direct any output from fig2dev to this file */
+ strcat(command, " 2> ");
+ strcat(command, errfname);
+diff -urNad xfig~/w_print.c xfig/w_print.c
+--- xfig~/w_print.c
++++ xfig/w_print.c
+@@ -295,9 +295,10 @@
+ do_print_batch(Widget w)
+ {
+ FILE *infp,*outfp;
+- char tmp_exp_file[32];
++ char tmp_exp_file[PATH_MAX];
+ char str[255];
+ char backgrnd[10], grid[80];
++ int fd;
+
+ if (writing_batch || emptyfigure_msg(print_msg))
+ return;
+@@ -306,11 +307,20 @@
+ /* this could happen if the user presses the button too fast */
+ writing_batch = True;
+
+- /* make a temporary name to write the batch stuff to */
+- sprintf(batch_file, "%s/%s%06d", TMPDIR, "xfig-batch", getpid());
+ /* make a temporary name to write this figure to */
+- sprintf(tmp_exp_file, "%s/%s%06d", TMPDIR, "xfig-exp", getpid());
+- batch_exists = True;
++ snprintf(tmp_exp_file, sizeof(tmp_exp_file), "%s/xfig-exp.XXXXXX",
++ TMPDIR);
++
++ if (batch_exists != True) {
++ /* make a temporary name to write the batch stuff to */
++ sprintf(batch_file, "%s/xfig-batch.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(batch_file)) == -1) {
++ file_msg("Error creating temporary file");
++ return;
++ }
++ close(fd);
++ batch_exists = True;
++ }
+ if (!print_popup)
+ create_print_panel(w);
+
+@@ -323,6 +333,12 @@
+ /* make a #rrggbb string from the background color */
+ make_rgb_string(export_background_color, backgrnd);
+
++ if ((fd = mkstemp(tmp_exp_file)) == -1) {
++ file_msg("Error creating temporary file");
++ return;
++ }
++ close(fd);
++
+ /* get grid params and assemble into fig2dev parm */
+ get_grid_spec(grid, print_grid_minor_text, print_grid_major_text);
+
+diff -urNad xfig~/w_srchrepl.c xfig/w_srchrepl.c
+--- xfig~/w_srchrepl.c
++++ xfig/w_srchrepl.c
+@@ -788,7 +788,7 @@
+ char *cmd;
+ char str[300];
+ FILE *fp;
+- int len, i;
++ int len, i, fd;
+ Boolean done = FALSE;
+ static int lines = 0;
+
+@@ -804,9 +804,12 @@
+ }
+ lines = 0;
+
+- sprintf(filename, "%s/xfig-spell.%d", TMPDIR, (int)getpid());
+- fp = fopen(filename, "w");
+- if (fp == NULL) {
++ snprintf(filename, sizeof(filename), "%s/xfig-spell.XXXXXX", TMPDIR);
++ if ((fd = mkstemp(filename)) == -1 || (fp = fdopen(fd, "w")) == NULL) {
++ if (fd != -1) {
++ unlink(filename);
++ close(fd);
++ }
+ file_msg("Can't open temporary file: %s: %s\n", filename, strerror(errno));
+ } else {
+ /* locate all text objects and write them to file fp */
diff --git a/xfig-3.2.5-rh490257.patch b/xfig-3.2.5-rh490257.patch
new file mode 100644
index 0000000..cc58270
--- /dev/null
+++ b/xfig-3.2.5-rh490257.patch
@@ -0,0 +1,60 @@
+diff -urNad xfig~/w_util.c xfig/w_util.c
+--- xfig~/w_util.c
++++ xfig/w_util.c
+@@ -932,21 +932,23 @@
+ DeclareArgs(4);
+ spin_struct *spins = (spin_struct*) info;
+ char buf[200];
+- int val, i, pos;
++ int val, i, modified = 0;
++ XawTextPosition pos;
+
+ /* save cursor position */
+ FirstArg(XtNinsertPosition, &pos);
+ GetValues(spins->widget);
+
+- buf[sizeof(buf)-1]='\0';
+- strncpy(buf,panel_get_value(spins->widget),sizeof(buf));
++ snprintf(buf, sizeof(buf), "%s", panel_get_value(spins->widget));
++
+ for (i=0; i= 0 */
+ if ((spins->min >= 0.0 && buf[i] == '-') || ((buf[i] < '0' || buf[i] > '9') && buf[i] != '-') ||
+ (i != 0 && buf[i] == '-')) {
+- strcpy(&buf[i],&buf[i+1]);
++ memmove(&buf[i], &buf[i+1], strlen(&buf[i]));
+ /* adjust cursor for char we just removed */
+ pos--;
++ modified = 1;
+ } else {
+ i++;
+ }
+@@ -954,15 +956,21 @@
+ if (strlen(buf) > 0 && !(strlen(buf)==1 && buf[0] == '-')) {
+ val = atoi(buf);
+ /* only check max. If min is, say 3 and user wants to type 10, the 1 is too small */
+- if (val > (int) spins->max)
++ if (val > (int) spins->max) {
+ val = (int) spins->max;
+- sprintf(buf,"%d", val);
++ sprintf(buf,"%d", val);
++ modified = 1;
++ }
+ }
+- panel_set_value(spins->widget, buf);
+- /* put cursor back */
+- if (pos < strlen(buf)) {
+- FirstArg(XtNinsertPosition, pos+1);
+- SetValues(spins->widget);
++
++ if (modified) {
++ panel_set_value(spins->widget, buf);
++
++ /* put cursor back */
++ if (pos < strlen(buf)) {
++ FirstArg(XtNinsertPosition, (pos+1));
++ SetValues(spins->widget);
++ }
+ }
+ }
+
diff --git a/xfig-3.2.5-rh490259.patch b/xfig-3.2.5-rh490259.patch
new file mode 100644
index 0000000..d3c66b4
--- /dev/null
+++ b/xfig-3.2.5-rh490259.patch
@@ -0,0 +1,12 @@
+diff -urN xfig.3.2.5.orig/w_msgpanel.c xfig.3.2.5/w_msgpanel.c
+--- xfig.3.2.5.orig/w_msgpanel.c 2005-07-26 18:40:01.000000000 +0200
++++ xfig.3.2.5/w_msgpanel.c 2009-03-19 14:21:11.000000000 +0100
+@@ -86,6 +86,8 @@
+ NextArg(XtNfromVert, cmd_form);
+ NextArg(XtNvertDistance, -INTERNAL_BW);
+ NextArg(XtNborderWidth, INTERNAL_BW);
++ NextArg(XtNtopMargin, 1);
++ NextArg(XtNbottomMargin, 1);
+ NextArg(XtNdisplayCaret, False);
+ NextArg(XtNtop, XtChainTop);
+ NextArg(XtNbottom, XtChainTop);
diff --git a/xfig-3.2.5-rh494193.patch b/xfig-3.2.5-rh494193.patch
new file mode 100644
index 0000000..1b10706
--- /dev/null
+++ b/xfig-3.2.5-rh494193.patch
@@ -0,0 +1,12 @@
+diff -up xfig.3.2.5a/w_print.c~ xfig.3.2.5a/w_print.c
+--- xfig.3.2.5a/w_print.c~ 2009-04-08 16:44:24.000000000 +0200
++++ xfig.3.2.5a/w_print.c 2009-04-08 16:45:35.000000000 +0200
+@@ -958,7 +958,7 @@ void create_print_panel(Widget w)
+ var and put it into the widget */
+ if (emptyname(printer_val)) {
+ printer_val=getenv("PRINTER");
+- if (strchr(printer_val,'\\')) {
++ if (printer_val && strchr(printer_val,'\\')) {
+ buf[0]='\0';
+ len=0;
+ for (i=0; i= 1:3.2.5, xdg-utils, enchant, urw-fonts
+Requires: hicolor-icon-theme
+Requires: xorg-x11-fonts-base
+# So that this will get uninstalled together with xfig / xfig-Xaw3d
+Requires: %{name}-executable = %{version}-%{release}
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
+
+%description common
+Files common to both the plain Xaw and the Xaw3d version of xfig.
+
+
%prep
-%autosetup -p1 -a 1 -n mcj-xfig-%{commit}
-for i in doc/html/japanese/button_frame.fig doc/html/japanese/japanese.ps \
- doc/html/animate.js; do
- sed -i.orig 's/\r//' $i; touch -r $i.orig $i; rm $i.orig
-done
-autoreconf -i
+%setup -q -n xfig.%{version}a
+%patch0 -p1 -b .redhat
+%patch1 -p1 -b .fhs
+%patch2 -p1 -b .mkstemp
+%patch7 -p1 -b .modularX
+%patch9 -p1 -b .Xaw3d
+%patch10 -p1 -b .no-Xaw3d
+%patch11 -p1 -b .color-resources
+%patch13 -p1 -b .urw
+%patch14 -p1 -b .zoom-crash
+%patch15 -p1
+%patch17 -p1
+%patch18 -p1
+%patch19 -p1
+%patch20 -p1
+rm Doc/html/images/sav1a0.tmp
%build
-# Fedora's Xaw3d is built with -DXAW_ARROW_SCROLLBARS
-export CFLAGS="-DXAW_ARROW_SCROLLBARS $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing"
-%configure
-%make_build
+# First build the Xaw3d version
+xmkmf
+# make sure cmdline option parsing still works despite us renaming the binary
+sed -i 's/"xfig"/"xfig-Xaw3d"/' main.c
+make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
+ CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing"
+mv xfig xfig-Xaw3d
+make distclean
+
+# And then build the normal Xaw version
+mv Imakefile.no-Xaw3d Imakefile
+xmkmf
+# make sure cmdline option parsing still works despite us renaming the binary
+sed -i 's/"xfig-Xaw3d"/"xfig-plain"/' main.c
+make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
+ CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing"
%install
-%make_install INSTALL="install -p"
-cp -p README CHANGES FIGAPPS $RPM_BUILD_ROOT%{_docdir}/%{name}
+rm -rf %{buildroot}
-rm -r $RPM_BUILD_ROOT%{_datadir}/pixmaps
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,64x64}/apps
-convert %{name}16x16.xpm \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
-convert %{name}32x32.xpm \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
-convert %{name}64x64.xpm \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
+make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
+ INSTALL="install -p" install.all
+install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \
+ %{buildroot}%{_docdir}/%{name}-%{version}
+
+# install the Xaw3d version and the wrapper for the .desktop file
+mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-plain
+install -p -m 755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}
+install -m 755 %{name}-Xaw3d %{buildroot}%{_bindir}
+
+# remove the map generation scripts, these are for xfig developers only
+rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble
+
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps \
+ %{buildroot}%{_datadir}/applications
+
+install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
+
+desktop-file-install --vendor fedora \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{SOURCE2}
+
+# remove app-defaults symlink which gets installed
+rm %{buildroot}%{_prefix}/lib*/X11/app-defaults
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post common
+update-desktop-database &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%postun common
+update-desktop-database &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
%files
-%doc %{_docdir}/%{name}
+%defattr(-,root,root,-)
+%{_bindir}/%{name}-Xaw3d
+
+%files plain
+%defattr(-,root,root,-)
+%{_bindir}/%{name}-plain
+
+%files common
+%defattr(-,root,root,-)
+%doc %{_docdir}/%{name}-%{version}
%{_bindir}/%{name}
%{_datadir}/%{name}
-%{_mandir}/man1/%{name}.1*
-%{_datadir}/X11/app-defaults/Fig
-%{_datadir}/metainfo/org.xfig.xfig.metainfo.xml
-%{_datadir}/applications/org.xfig.xfig.desktop
-%{_datadir}/icons/hicolor/??x??/apps/%{name}.png
+%{_mandir}/*/*
+%{app_defaults_dir}/*
+%{_datadir}/applications/fedora-%{name}.desktop
+%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%changelog
-* Fri Jul 17 2026 Fedora Release Engineering - 3.2.9a-3.20250317gitce9782a
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
+* Mon Jul 27 2009 Fedora Release Engineering - 3.2.5-22.a
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
-* Sat Jan 17 2026 Fedora Release Engineering - 3.2.9a-2.20250317gitce9782a
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+* Sun Jun 28 2009 Caolán McNamara 3.2.5-21.a
+- Resolves: rhbz#506791 make xfig spellchecking work
-* Wed Aug 6 2025 Hans de Goede - 3.2.9a-1.20250317gitce9782a
-- Update to 3.2.9a + latest git changes to fix build with -std=c11
-- Switch to upstream appdata/metainfo and desktop file
-- Drop all patches (all upstreamed)
-- Resolves: rhbz#2341567
-- Resolves: rhbz#2385740
+* Wed Jun 3 2009 Hans de Goede 3.2.5-20.a
+- Fix eps preview (#503911)
-* Fri Jul 25 2025 Fedora Release Engineering - 3.2.9-7
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+* Wed Apr 8 2009 Hans de Goede 3.2.5-19.a
+- Fix crash when printing (#494193), thanks to Ian Dall for the patch
-* Sun Jan 19 2025 Fedora Release Engineering - 3.2.9-6
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+* Fri Mar 27 2009 Hans de Goede 3.2.5-18.a
+- Rebase to new upstream 3.2.5a release, this was made available to me by
+ the Debian maintainer who is in contact with upstream, which appearantly
+ is still somewhat alive (but not alive enough to put the tarbal on the
+ homepage ??)
-* Sat Jul 20 2024 Fedora Release Engineering - 3.2.9-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+* Sun Mar 15 2009 Hans de Goede 3.2.5-17
+- Add various patches from Debian (doc updates, new figures in the lib,
+ better fix for modepanel resizing)
+- Do not crash when inserting a character from the charmap into a text string
-* Mon Feb 26 2024 Hans de Goede - 3.2.9-4
-- Fix missing Dingbats and Symbol glyphs
-- Resolves: rhbz#2260359
+* Sun Mar 15 2009 Hans de Goede 3.2.5-16
+- Fix Text size field inserts characters on left instead of right (#490257)
+- Fix xfig-Xaw3d does not display messages in message panel (#490259)
-* Sat Jan 27 2024 Fedora Release Engineering - 3.2.9-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+* Thu Feb 26 2009 Fedora Release Engineering - 3.2.5-15
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-* Thu Jan 18 2024 Mamoru TASAKA - 3.2.9-2
-- Backport upstream patches for upstream 2 issues
- - Fix exporting only active layers
- - Sanitize a call to realloc (redhat #2252679)
+* Sun Feb 22 2009 Hans de Goede 3.2.5-14
+- Add missing Requires: xorg-x11-fonts-base (#486701)
-* Sat Aug 26 2023 Ranjan Maitra - 3.2.9-1
-- New upstream release 3.2.9
+* Mon Nov 10 2008 Stepan Kasal - 3.2.5-13
+- fix the Obsoletes tag to <= 3.2.5-7.fc8, which is the last
+ release with Xaw3d subpackage
-* Sat Jan 21 2023 Fedora Release Engineering - 3.2.8b-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+* Tue Nov 4 2008 Hans de Goede 3.2.5-12
+- Various small specfile cleanups from merge review
-* Sat Jul 23 2022 Fedora Release Engineering - 3.2.8b-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+* Mon Jul 14 2008 Ian Hutchinson 3.2.5-11
+- Fix incorrect height of modepanel.
-* Sat Jan 22 2022 Fedora Release Engineering - 3.2.8b-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+* Thu Apr 3 2008 Hans de Goede 3.2.5-10
+- Fix missing prototype compiler warnings
-* Mon Oct 11 2021 Hans de Goede - 3.2.8b-1
-- New upstream release 3.2.8b
+* Thu Feb 28 2008 Hans de Goede 3.2.5-9
+- Fix cmdline parsing (broken by renaming the binary) (bz 435097)
-* Fri Jul 23 2021 Fedora Release Engineering - 3.2.8a-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+* Tue Feb 19 2008 Fedora Release Engineering - 3.2.5-8
+- Autorebuild for GCC 4.3
-* Sat May 29 2021 Hans de Goede - 3.2.8a-1
-- New upstream release 3.2.8a
+* Wed Dec 12 2007 Hans de Goede 3.2.5-7
+- Fix xfig crashing when zooming in a lot (bz 420411)
-* Thu Jan 28 2021 Fedora Release Engineering - 3.2.7b-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+* Sat Nov 17 2007 Hans de Goede 3.2.5-6
+- Put the Xaw3d version in the main xfig package, put the plain Xaw version
+ in a -plain subpackage
-* Sat Aug 01 2020 Fedora Release Engineering - 3.2.7b-4
-- Second attempt - Rebuilt for
- https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+* Fri Nov 16 2007 Hans de Goede 3.2.5-5
+- Also compile a version against Xaw3d instead of plain Xaw, available in the
+ new xfig-Xaw3d package
+- Various specfile cleanups for packaging guidelines compliance
+- Remove spurious executable permissions on various files (bz 247424)
+- Apply patch fixing problems with xfig not finding fonts (bz 210278)
-* Wed Jul 29 2020 Fedora Release Engineering - 3.2.7b-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+* Thu Nov 15 2007 Than Ngo 3.2.5-4
+- fix #201992, xfig crashes in the edit function
-* Fri Jan 31 2020 Fedora Release Engineering - 3.2.7b-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+* Thu Nov 15 2007 Than Ngo 3.2.5-3
+- fix #201992, xfig crashes in the edit function
-* Thu Jan 16 2020 Hans de Goede - 3.2.7b-1
-- New upstream release 3.2.7b
+* Fri Oct 05 2007 Than Ngo - 3.2.5-2
+- rh#313321, use xdg-open
-* Sat Jul 27 2019 Fedora Release Engineering - 3.2.7a-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+* Mon Apr 16 2007 Than Ngo - 3.2.5-1.fc7
+- 3.2.5
-* Sun Feb 03 2019 Fedora Release Engineering - 3.2.7a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+* Wed Jul 12 2006 Jesse Keating - 3.2.4-21.1
+- rebuild
-* Fri Jan 11 2019 Hans de Goede - 3.2.7a-2
-- Fix spline drawing (rhbz#1665237)
+* Tue May 16 2006 Than Ngo 3.2.4-21
+- fix #191816, Xaw3d build problem
-* Mon Oct 29 2018 Hans de Goede - 3.2.7a-1
-- New upstream release 3.2.7a
-- Add Requires: transfig to make sure esp export works (rhbz#1642033)
-- Switch back to URW fonts so that Bookman, New Century Schoolbook and
- Palatino work again. This uses the old version of the URW fonts which are
- now packaged as urw-base35-fonts-legacy (rhbz#1523624, rhbz#1551219)
-- Trim the changelog
+* Fri May 05 2006 Than Ngo 3.2.4-20
+- fix #169330, wrong docdir
+- fix #187902, no parameter negotiation for xfig
+- fix #182451, switch xfig's pdf viewer to evince
-* Sat Jul 14 2018 Fedora Release Engineering - 3.2.6a-8
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+* Tue Apr 25 2006 Adam Jackson 3.2.4-19
+- Rebuild for updated imake build rules
-* Sat Mar 03 2018 Hans de Goede - 3.2.6a-7
-- Fix font issues take 2 (rhbz#1523624) :
- - It turns out the new urw fonts are completely unusuable as X11 core fonts,
- stop using them for now (see bug rhbz#1551219)
- - Add a patch to use the fallback fonts for non-scalable fonts too, so that
- we at least show something somewhat reasonable for Bookman, New Century
- Schoolbook and Palatino
- - This means that display of Zapf Chancery and Zapf Dingbats currently
- falls back to the "fixed" font, which is completely wrong for Dingbats
+* Tue Apr 04 2006 Than Ngo 3.2.4-18
+- no parameter negotiation for xfig, fix #187902
-* Thu Mar 01 2018 Hans de Goede - 3.2.6a-6
-- Fix font issues (rhbz#1523624) :
- - Adjust xfig-3.2.5-urwfonts.patch for new font names in urw-base35-fonts
- - Except for the symbols font, use the old un-scalable Adobe PCF Symbol font
- for now as StandardSymbolsPS.otf from urw-base35-fonts is currently broken
- - Add a patch to deal with some fonts being scalable, while Symbol is not
- - Note the dingbats font is also broken in urw-base35-fonts, but there is no
- replacement for it, so that font is still broken, see rhbz#1534206
-- ghostscript-core no longer exists, instead require ghostscript (rhbz#1536581)
-- Remove obsolete icon-cache and desktop-database scriptlets
-- Add a patch from Debian fixing some issues with arrows
+* Fri Feb 10 2006 Jesse Keating - 3.2.4-17.2
+- bump again for double-long bug on ppc(64)
-* Fri Feb 09 2018 Fedora Release Engineering - 3.2.6a-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+* Tue Feb 07 2006 Jesse Keating - 3.2.4-17.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
-* Tue Nov 07 2017 Adam Jackson - 3.2.6a-4
-- Drop unneeded BuildRequires: imake
+* Wed Dec 21 2005 Than Ngo 3.2.4-17
+- workaround for utf8
-* Thu Aug 03 2017 Fedora Release Engineering - 3.2.6a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+* Sun Dec 18 2005 Than Ngo 3.2.4-16
+- add correct app-defaults directory
-* Thu Jul 27 2017 Fedora Release Engineering - 3.2.6a-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+* Fri Dec 09 2005 Jesse Keating
+- rebuilt
-* Mon Feb 13 2017 Hans de Goede - 3.2.6a-1
-- New upstream release 3.2.6a
+* Tue Nov 15 2005 Than Ngo 3.2.4-15
+- fix for modular X
-* Sun Feb 12 2017 Hans de Goede - 3.2.6-5
-- Build with -DGSBIT to fix eps file preview generation (rhbz#1418560)
-- Fix broken screenshot links in appdata
+* Mon Oct 24 2005 Than Ngo 3.2.4-14
+- enable xpm support #158422
-* Sat Feb 11 2017 Fedora Release Engineering - 3.2.6-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+* Tue Jul 19 2005 Than Ngo 3.2.4-13
+- buildrequires on xorg-x11-devel
-* Fri Aug 12 2016 Hans de Goede - 3.2.6-3
-- Switch to non -full (smaller) version of upstream sources,
- we package transfig seperately so we do not need the -full version
+* Mon Jul 18 2005 Than Ngo 3.2.4-12
+- fix another buffer overflow #163413
-* Thu Aug 11 2016 Hans de Goede - 3.2.6-2
-- Make using metric units the default again
+* Thu May 19 2005 Than Ngo 3.2.4-11
+- apply patch to fix buffer overflow #158088
-* Thu Aug 11 2016 Hans de Goede - 3.2.6-1
-- New upstream release 3.2.6
-- Drop all patches, all fixes are upstream now
-- Drop -plain subpackage, only build Xaw3d version
-- Update appdata screenshots for xfig.org being gone
- (point to http://epb.lbl.gov/xfig/ for now)
+* Mon Mar 21 2005 Than Ngo 3.2.4-10
+- fix font warning #116542
-* Sun Feb 28 2016 Hans de Goede - 3.2.5-48.c
-- Bring in various bugfixes from Debian
-- Convert icons to png
-- Add appdata
+* Mon Mar 07 2005 Than Ngo 3.2.4-9
+- cleanup
-* Fri Feb 05 2016 Fedora Release Engineering - 3.2.5-47.c
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+* Sat Mar 05 2005 Than Ngo 3.2.4-8
+- rebuilt
+
+* Wed Feb 09 2005 Than Ngo 3.2.4-7
+- rebuilt
+
+* Sat Sep 25 2004 Than Ngo 3.2.4-6
+- add mimetype spec #131629
+
+* Mon Sep 13 2004 Than Ngo 3.2.4-5
+- fix desktop file #131983
+
+* Tue Jun 15 2004 Elliot Lee
+- rebuilt
+
+* Fri Feb 13 2004 Elliot Lee
+- rebuilt
+
+* Wed Jun 04 2003 Elliot Lee
+- rebuilt
+
+* Tue Jun 3 2003 Jeff Johnson
+- add explicit epoch's where needed.
+
+* Tue May 6 2003 Than Ngo 3.2.4-1
+- 3.2.4
+
+* Wed Jan 22 2003 Tim Powers
+- rebuilt
+
+* Thu Nov 7 2002 Than Ngo 3.2.3d-11
+- rebuild in new enviroment
+
+* Thu Aug 22 2002 Than Ngo 3.2.3d-10
+- close should get fd, not filename
+
+* Wed Jul 31 2002 Than Ngo 3.2.3d-9
+- Fixed typo bug (bug #70347)
+
+* Wed Jul 24 2002 Than Ngo 3.2.3d-8
+- desktop file issue (bug #69543)
+
+* Tue Jun 25 2002 Than Ngo 3.2.3d-7
+- add patch file using mkstemp (bug #67351)
+
+* Fri Jun 21 2002 Tim Powers
+- automated rebuild
+
+* Thu May 23 2002 Tim Powers
+- automated rebuild
+
+* Wed Jan 09 2002 Tim Powers
+- automated rebuild
+
+* Fri Jul 13 2001 Than Ngo 3.2.3d-3
+- fix build dependencies (bug #48910)
+
+* Tue Jul 03 2001 Than Ngo
+- fix export to eps when i18n set (bug #45114)
+- requires transfig-3.2.3d
+
+* Fri Jun 15 2001 Than Ngo
+- update to 3.2.3d release
+
+* Tue Jun 12 2001 Than Ngo
+- fix to build against XFree86-4.1.0
+
+* Tue May 29 2001 Than Ngo
+- update to 3.2.3d beta2 fixes (Bug #42597, #42556)
+- fix bug when LANG is set, launching help gives a spurious error (Bug #42596)
+- fix bug in resource setting (Bug #42595)
+- remove some patches, which are included in 3.2.3d beta2
+- fix wrong version number
+- use make install.all
+- fix fhs problem
+
+* Wed May 9 2001 Bernhard Rosenkraenzer
+- Don't require Netscape at all - use htmlview (which automatically launches
+ Netscape, Mozilla or Konqueror depending on what is installed/running).
+ No need to depend on proprietary stuff...
+
+* Thu Apr 26 2001 Florian La Roche
+- do the same for s390x
+
+* Sat Jan 06 2001 Florian La Roche
+- only require /usr/bin/netscape if not on S390
+
+* Tue Dec 20 2000 Yukihiro Nakai
+- Delete enable_japanese macro and set i18n default.
+- Fix Japanese translation in .desktop file
+
+* Mon Nov 20 2000 Than Ngo
+- rebuilt to fix bad dir perms
+
+* Thu Nov 9 2000 Than Ngo
+- fixed f_read, which made xfig stop reading the file after
+ removing such bad objects.
+
+* Fri Oct 13 2000 Preston Brown
+- improved .desktop entry
+
+* Thu Aug 24 2000 Yukihiro Nakai
+- Add Japanese patch
+
+* Tue Aug 08 2000 Than Ngo
+- fixed dependency problem
+- fixed starting xpdf
+
+* Mon Aug 07 2000 Than Ngo
+- fixed for using xpdf instead acroreader (Bug #15621)
+- add requires: netscape, display
+
+* Sat Aug 05 2000 Than Ngo
+- update to 3.2.3c (bugs fixed released)
+- fix parse_printcap broken (Bug #11147)
+
+* Thu Jul 13 2000 Prospector
+- automatic rebuild
+
+* Fri Jun 23 2000 Than Ngo
+- xfig crash, if a menu item was clicked (Bug #12855)
+
+* Sun Jun 18 2000 Than Ngo
+- rebuilt in the new build environment
+- enable optimization
+
+* Sat Jun 03 2000 Than Ngo
+- fix requires, xfig-3.2.3a requires transfig-2.2.3 or newer
+- disable optimization -O2 (gcc-2.96 Bug) on i386
+
+* Thu May 18 2000 Preston Brown
+- fix buildroot issue in Imakefile
+
+* Mon May 8 2000 Bernhard Rosenkraenzer
+- rebuild with current libXaw3d
+- update to 3.2.3a
+
+* Mon Feb 07 2000 Preston Brown
+- rebuild to gzip man pages
+
+* Fri Jan 14 2000 Preston Brown
+- upgrade to beta1 of 2.2.3. Hopefully this fixes outstanding issues.
+- no need for vararg fix, commented out
+
+* Thu Sep 23 1999 Preston Brown
+- add icon
+- don't compile with optimization on alpha
+
+* Mon Aug 30 1999 Preston Brown
+- converted to use a .desktop file
+
+* Fri Mar 26 1999 Michael Maher
+- added files that were missing.
+
+* Sun Mar 21 1999 Cristian Gafton
+- auto rebuild in the new build environment (release 4)
+- varargs fix
+
+* Thu Feb 18 1999 Jeff Johnson
+- correct DESTDIRR typo (#962)
+
+* Wed Dec 30 1998 Cristian Gafton
+- build for glibc 2.1
+
+* Tue Jul 7 1998 Jeff Johnson
+- updated to 3.2.2.
+
+* Wed Jun 10 1998 Prospector System
+- translations modified for de
+
+* Fri May 08 1998 Prospector System
+- translations modified for de, fr, tr
+
+* Sat Apr 11 1998 Cristian Gafton
+- updated for manhattan
+- buildroot
+
+* Thu Oct 23 1997 Marc Ewing
+- new version
+- messed with config for 5.0
+- updated Requires and Copyright
+- added wmconfig
+
+* Mon Jul 21 1997 Erik Troan
+- built against glibc