Sync from SUSE:SLFO:Main plotutils revision d5be767d7f49af6ef606e095b99ad48d

This commit is contained in:
Adrian Schröter 2024-05-03 19:28:53 +02:00
commit 17b5843db1
15 changed files with 928 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

BIN
plotutils-2.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

7
plotutils-2.6.tar.gz.sig Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBKvoBInetGwNZ59s8RAncbAJ4vhKgHZs0jTvwGGQpH2wln46gf9QCffpjB
0hojKZ1dGliAkPXOMJflT40=
=Ofa0
-----END PGP SIGNATURE-----

219
plotutils-autoreconf.patch Normal file
View File

@ -0,0 +1,219 @@
---
Makefile.am | 2 ++
configure.ac | 15 ++++++++-------
double/Makefile.am | 2 +-
graph/Makefile.am | 2 +-
hersheydemo/Makefile.am | 2 +-
lib/Makefile.am | 2 +-
libplot/Makefile.am | 2 +-
libplotter/Makefile.am | 2 +-
ode/Makefile.am | 2 +-
pic2plot/Makefile.am | 2 +-
pic2plot/libgroff/Makefile.am | 2 +-
plot/Makefile.am | 2 +-
plotfont/Makefile.am | 2 +-
spline/Makefile.am | 2 +-
tek2plot/Makefile.am | 2 +-
15 files changed, 23 insertions(+), 20 deletions(-)
--- Makefile.am
+++ Makefile.am 2022-09-21 12:46:18.849066032 +0000
@@ -13,6 +13,8 @@
# package, by default we don't build and install it as a standalone
# library. (It's always compiled into libplot and libplotter, though.)
+ACLOCAL_AMFLAGS = -I .
+
if NO_LIBPLOTTER
ADD_LIBPLOTTER =
else
--- configure.ac
+++ configure.ac 2022-09-21 12:47:06.192229777 +0000
@@ -4,9 +4,10 @@
AC_INIT([GNU plotutils],[2.6],[bug-plotutils@gnu.org])
AC_PREREQ(2.59)
+AC_CONFIG_MACRO_DIRS([.])
AC_CONFIG_SRCDIR(graph/graph.c)
-AM_INIT_AUTOMAKE([plotutils],[2.6])
-AM_CONFIG_HEADER(config.h:config.hin)
+AM_INIT_AUTOMAKE()
+AC_CONFIG_HEADERS(config.h:config.hin)
# The following will be defined in config.h, if appropriate.
@@ -63,7 +64,8 @@ fi
# AC_PROG_MAKE_SET, or equivalents, so we don't perform them explicitly.
# Note: this can apparently alter CFLAGS, on a few platforms, e.g., on
# SCO OpenServer 5 (i.e. *-*-sco3.2v5*), "-belf" is added.
-AC_PROG_LIBTOOL
+LT_INIT
+AC_PROG_CXX
# Determine extension (e.g. ".exe") on executables, if any.
AC_EXEEXT
@@ -72,7 +74,7 @@ AC_EXEEXT
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_PID_T
-AC_TYPE_SIGNAL
+AC_DEFINE(RETSIGTYPE,void,[Return type of signal handlers, but autoconf 2.70 says 'your code may safely assume C89 semantics that RETSIGTYPE is void.'])
# Check whether fflush(NULL) works
AC_MSG_CHECKING(whether flushing a null FILE pointer works)
@@ -93,10 +95,9 @@ int main()
exit(0); }]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_NULL_FLUSH)],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(no)])
# Checks for header files: ANSI C, POSIX, and nonstandard Unix headers.
-AC_HEADER_STDC
+AC_INCLUDES_DEFAULT
AC_CHECK_HEADERS(string.h limits.h float.h)
AC_CHECK_HEADERS(malloc.h pthread.h strings.h unistd.h values.h sys/select.h sys/stdtypes.h sys/time.h sys/types.h sys/wait.h)
-AC_HEADER_TIME
# HP/UX needs a cpp definition for math.h to define matherr-related things
AC_EGREP_HEADER(_HPUX_SOURCE, math.h, [AC_EGREP_HEADER(matherr, math.h, [AC_DEFINE(_HPUX_SOURCE)])])
@@ -107,7 +108,7 @@ AC_FUNC_ALLOCA
# Checks for programs. Automake needs AM_PROG_LEX, not AC_PROG_LEX;
# ignore the bogus warning about AC_PROG_LEX being invoked twice.
AC_PROG_YACC
-AM_PROG_LEX
+AM_PROG_LEX([noyywrap])
# Should libplot/libplotter support multithreading via pthread mutexes?
# Check to see whether libc includes dummy ("weak") pthread functions, so
--- double/Makefile.am
+++ double/Makefile.am 2022-09-21 12:35:37.452412255 +0000
@@ -5,4 +5,4 @@ bin_PROGRAMS = double
double_SOURCES = double.c
double_LDADD = ../lib/libcommon.a
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
--- graph/Makefile.am
+++ graph/Makefile.am 2022-09-21 12:36:11.899802000 +0000
@@ -6,7 +6,7 @@ graph_SOURCES = graph.c misc.c linemode.
graph_LDADD = ../lib/libcommon.a ../libplot/libplot.la
noinst_HEADERS = extern.h
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
CLEANFILES = fontlist.c
--- hersheydemo/Makefile.am
+++ hersheydemo/Makefile.am 2022-09-21 12:43:18.956243473 +0000
@@ -5,4 +5,4 @@ bin_PROGRAMS = hersheydemo
hersheydemo_SOURCES = hersheydemo.c
hersheydemo_LDADD = ../lib/libcommon.a ../libplot/libplot.la
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
--- lib/Makefile.am
+++ lib/Makefile.am 2022-09-21 12:36:40.403297046 +0000
@@ -1,7 +1,7 @@
## Makefile.am for plotutils/lib.
noinst_LIBRARIES = libcommon.a
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
libcommon_a_SOURCES = compat.c display.c getopt.c getopt1.c xmalloc.c xstrdup.c
libcommon_a_LIBADD = @ALLOCA@
--- libplot/Makefile.am
+++ libplot/Makefile.am 2022-09-21 12:37:13.450711599 +0000
@@ -6,7 +6,7 @@ EXTRA_DIST = DEDICATION HUMOR README-cgm
libplot_la_LDFLAGS = -version-info 4:4:2
-INCLUDES = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT
+AM_CPPFLAGS = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT
MISRC = mi_alloc.c mi_api.c mi_arc.c mi_canvas.c mi_fllarc.c mi_fllrct.c \
mi_fplycon.c mi_gc.c mi_ply.c mi_plycon.c mi_plygen.c mi_plypnt.c \
--- libplotter/Makefile.am
+++ libplotter/Makefile.am 2022-09-21 12:44:53.586572049 +0000
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libplotter.la
libplotter_la_LDFLAGS = -version-info 4:4:2
-INCLUDES = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT -DLIBPLOTTER
+AM_CPPFLAGS = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT -DLIBPLOTTER
MISRC = mi_alloc.cc mi_api.cc mi_arc.cc mi_canvas.cc mi_fllarc.cc \
mi_fllrct.cc mi_fplycon.cc mi_gc.cc mi_ply.cc mi_plycon.cc mi_plygen.cc \
--- ode/Makefile.am
+++ ode/Makefile.am 2022-09-21 12:39:42.256075513 +0000
@@ -8,6 +8,6 @@ ode_LDADD = ../lib/libcommon.a @LEXLIB@
AM_YFLAGS = -d
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
EXTRA_DIST = INTERNALS gram.h
--- pic2plot/Makefile.am
+++ pic2plot/Makefile.am 2022-09-21 12:40:21.235385009 +0000
@@ -9,7 +9,7 @@ noinst_HEADERS = common.h object.h outpu
AM_YFLAGS = -d
-INCLUDES = -I$(srcdir)/../include -I$(srcdir)/include
+AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/include
CLEANFILES = fontlist.c
--- pic2plot/libgroff/Makefile.am
+++ pic2plot/libgroff/Makefile.am 2022-09-21 12:40:36.439115681 +0000
@@ -1,7 +1,7 @@
## Makefile.am for plotutils/pic2plot/libgroff.
noinst_LIBRARIES = libgroff.a
-INCLUDES = -I$(srcdir)/../../include -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../../include -I$(srcdir)/../include
libgroff_a_SOURCES = assert.cc change_lf.cc cset.cc errarg.cc error.cc fatal.cc filename.cc illegal.cc itoa.cc lf.cc lineno.cc progname.cc ptable.cc string.cc strsave.cc
--- plot/Makefile.am
+++ plot/Makefile.am 2022-09-21 12:41:11.990485963 +0000
@@ -5,7 +5,7 @@ bin_PROGRAMS = plot
plot_SOURCES = plot.c fontlist.c
plot_LDADD = ../lib/libcommon.a ../libplot/libplot.la
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
CLEANFILES = fontlist.c
--- plotfont/Makefile.am
+++ plotfont/Makefile.am 2022-09-21 12:41:22.314303624 +0000
@@ -5,7 +5,7 @@ bin_PROGRAMS = plotfont
plotfont_SOURCES = plotfont.c fontlist.c
plotfont_LDADD = ../lib/libcommon.a ../libplot/libplot.la
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
CLEANFILES = fontlist.c
--- spline/Makefile.am
+++ spline/Makefile.am 2022-09-21 12:41:35.106077697 +0000
@@ -3,6 +3,6 @@
bin_PROGRAMS = spline
spline_SOURCES = spline.c
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
spline_LDADD = ../lib/libcommon.a
--- tek2plot/Makefile.am
+++ tek2plot/Makefile.am 2022-09-21 12:41:47.981850287 +0000
@@ -6,7 +6,7 @@ tek2plot_SOURCES = tek2plot.c Tektable.c
tek2plot_LDADD = ../lib/libcommon.a ../libplot/libplot.la
noinst_HEADERS = Tekparse.h
-INCLUDES = -I$(srcdir)/../include
+AM_CPPFLAGS = -I$(srcdir)/../include
CLEANFILES = fontlist.c

View File

@ -0,0 +1,11 @@
--- libplot/s_path.c
+++ libplot/s_path.c 2009-01-08 12:03:26.569330579 +0100
@@ -716,7 +716,7 @@ write_svg_path_style (plOutbuf *page, co
{
sprintf (page->point, "%.5g%s",
dashbuf[i],
- i < num_dashes - 1 ? ", " : "\"");
+ i < num_dashes - 1 ? ", " : "\" ");
_update_buffer (page);
}

View File

@ -0,0 +1,24 @@
|
| Description: Arithmetic overflow in Hershey pointing hands glyphs
| The glyphs 4040 and 4043 (large pointing hands) in
| _pl_g_occidental_hershey_glyphs[] in libplot/a_her_glyph.c are
| incorrect. There is an arithmetic overflow.
| .
| They where corrected by mirroing glyphs 4041 and 4042.
| Origin: http://lists.gnu.org/archive/html/bug-plotutils/2010-11/msg00000.html
| Author: Roland Münzberg <roland.muenzberg@web.de>
|
--- libplot/g_her_glyph.c
+++ libplot/g_her_glyph.c 2013-07-15 12:10:50.725440182 +0000
@@ -279,7 +279,10 @@ const char * const _pl_g_occidental_hers
as part of his PLOT79 utility */
/* large pointing hands [4040--4043] */
- " \204.l'm*n.l/i/a-c*[+L-G.H0H-E)K(\\*f-k.l RKgMiPiRh RR[TWNW R\\MaTaZ]` Refdead]e\\i`lckefddabT]NWOUYL\\MeKmKpJxJ}H\200D\177B RvBvDzE\177C\177BvBmCVCQB8D,J+L+[/a7eIgOgRhVi`l", " \2048v7}6z8v;uCuAwIzXy]w\\v\\t_wY{H|>z9w8v R=Y;W;T<R RIRMPMV RWHPCJCDG R>??@@C?G;H8D9A>?@@BCGPMVOUXKWHY?Y7Z4Z,\\'`$b% Rb.`._*a%b%b.a7aNbS`lZxXyIyCu?m=[=U<R;N8D", " \204?f@eCdGeHiDlAk?f@dCbP]VWUUKLHM?K7K4J,J'H$D%B R.B.D*E%C%B.B7CNCSBlDxJyLy[uame[gUgRhNiDl RG`CZCTHM RR[PWVW RYgWiTiRh Rvl}mznvluiuawcz[yLwGvHtHwE{K|\\zfwkvl", " \2048`;V<R=O=I?7C/I+X+Z,`8bQaVambvb\177a\177_z`vbv Rb\177`\200\\}ZxZpYmYeW\\XYOOMNGTBa@d>e9c8`;\\?]@a?d>e RD]JaPaW\\ RIRMTMN R=K;M;P<R R8.7'6*8.;/C/A-I*X+]-\\.\\0_-Y)H(>*9-8.",
+ /* 4040 */ " \204dfce`d\\e[i_lbkdfcd`bS]MWNUXL[MdKlKoJwJ|H^?D~B RuBuDyE~C~BuBlCUCPB7D+J*L*[.a6eHgNgQhUi_l R\\``Z`T[M RQ[SWMW RJgLiOiQh R-l&m)n-l.i.a,c)[*L,G-H/H,E(K'\\)f,k-l",
+ /* 4041 */ " \2048v7}6z8v;uCuAwIzXy]w\\v\\t_wY{H|>z9w8v R=Y;W;T<R RIRMPMV RWHPCJCDG R>??@@C?G;H8D9A>?@@BCGPMVOUXKWHY?Y7Z4Z,\\'`$b% Rb.`._*a%b%b.a7aNbS`lZxXyIyCu?m=[=U<R;N8D",
+ /* 4042 */ " \204?f@eCdGeHiDlAk?f@dCbP]VWUUKLHM?K7K4J,J'H$D%B R.B.D*E%C%B.B7CNCSBlDxJyLy[uame[gUgRhNiDl RG`CZCTHM RR[PWVW RYgWiTiRh Rvl}mznvluiuawcz[yLwGvHtHwE{K|\\zfwkvl",
+ /* 4043 */ " \2048-7&6)8-;.C.A,I)X*],\\-\\/_,Y(H'>)9,8- R=J;L;O<Q RIQMSMM RW[P`J`D\\ R>d?c@`?\\;[8_9b>d@cB`GSMMONXXW[YdYlZoZw\\|`^?b~ Rbu`u_ya~b~bualaUbP`7Z+X*I*C.?6=H=N<Q;U8_",
/* Wolff symbol glyphs (freeware, designed by Thomas Wolff
<wolff@inf.fu-berlin.de>), used in Hershey Symbol fonts */

31
plotutils-libpng15.patch Normal file
View File

@ -0,0 +1,31 @@
Index: plotutils-2.6/libplot/z_write.c
===================================================================
--- plotutils-2.6.orig/libplot/z_write.c
+++ plotutils-2.6/libplot/z_write.c
@@ -164,7 +164,7 @@ _pl_z_maybe_output_image (S___(Plotter *
}
/* cleanup after libpng errors (error handler does a longjmp) */
- if (setjmp (png_ptr->jmpbuf))
+ if (setjmp (png_jmpbuf(png_ptr)))
{
png_destroy_write_struct (&png_ptr, (png_info **)NULL);
return -1;
@@ -444,7 +444,7 @@ _our_error_fn_stdio (png_struct *png_ptr
#endif
}
- longjmp (png_ptr->jmpbuf, 1);
+ longjmp (png_jmpbuf(png_ptr), 1);
}
static void
@@ -515,7 +515,7 @@ _our_error_fn_stream (png_struct *png_pt
#endif
}
- longjmp (png_ptr->jmpbuf, 1);
+ longjmp (png_jmpbuf(png_ptr), 1);
}
static void

View File

@ -0,0 +1,14 @@
|
| There is no --number-of-intervals but --no-of-intervals option
|
--- info/spline.1
+++ info/spline.1 2013-07-15 12:06:38.393439397 +0000
@@ -107,7 +107,7 @@ The \fB\-k\fP option may not be used if
.br
.ns
.TP
-.BI \-\-number\-of\-intervals " n"
+.BI \-\-no\-of\-intervals " n"
Subdivide the interval over which interpolation occurs into \fIn\fP\^
subintervals.
The number of data points computed, and written to the

52
plotutils-man.patch Normal file
View File

@ -0,0 +1,52 @@
--- manpage.1
+++ manpage.1 2006-05-22 14:15:56.000000000 +0200
@@ -0,0 +1,49 @@
+.\"
+.TH PLOTUTILS 1 "March 2, 2000" "Version 2.4.1" "GNU Plotting Utilities"
+.SH NAME
+plotutils \- The GNU plotting utilities.
+.PP
+double \- Final plotting utility.
+.br
+graph \- Converts table format to plot or graphic formats.
+.br
+ode \- Integrates ordinary differential equation(s).
+.br
+plot \- The plot filter.
+.br
+plotfont\- Displays mapping of available plot fonts.
+.br
+spline \- Spline interpolation of data.
+.br
+tek2plot \- Translates tektronix format to plot.
+.SH SYNOPSIS
+.B double
+[--help | options]
+.br
+.B graph
+[--help | options]
+.br
+.B ode
+[--help | options]
+.br
+.B plot
+[--help | options]
+.br
+.B plotfont
+[--help | options]
+.br
+.B spline
+[--help | options]
+.br
+.B tek2plot
+[--help | options]
+.SH DESCRIPTION
+.B plotutils
+does not have useful man pages. Documentation is available through
+the info system. The relevant command is "info plotutils".
+.SH SEE ALSO
+.BR ode (1),
+.BR plot (1),
+.BR plotfont (1),
+.BR spline (1),
+.BR tek2plot (1).

View File

@ -0,0 +1,14 @@
|
| Avoid broken postscript due not initialized variable
|
--- graph/plotter.c
+++ graph/plotter.c 2013-07-15 12:01:45.577438754 +0000
@@ -1011,7 +1011,7 @@ set_graph_parameters (Multigrapher *mult
multigrapher->x_trans.output_min = 0.0;
multigrapher->x_trans.output_max = (double)PLOT_SIZE;
multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
- multigrapher->x_trans.output_min = 0.0;
+ multigrapher->y_trans.output_min = 0.0;
multigrapher->y_trans.output_max = (double)PLOT_SIZE;
multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;

View File

@ -0,0 +1,11 @@
--- libplot/g_range.c
+++ libplot/g_range.c 2006-05-22 14:59:13.000000000 +0200
@@ -172,7 +172,7 @@
void
_set_line_join_bbox (plOutbuf *bufp, double xleft, double yleft, double x, double y, double xright, double yright, double linewidth, int joinstyle, double miterlimit, double m[6])
{
- plVector v1, v2, vsum;
+ plVector v1 = {0.0, 0.0}, v2 = {0.0, 0.0}, vsum;
double v1len, v2len;
double halfwidth;
double mitrelen;

250
plotutils.changes Normal file
View File

@ -0,0 +1,250 @@
-------------------------------------------------------------------
Wed Sep 21 11:53:33 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Go from http to https
- Split doc package off
- Some modern rpm macros
- Skip obsolete rpm macros
- Extend patch plotutils-autoreconf.patch
* More changes to autobuild toolset files
-------------------------------------------------------------------
Mon Apr 16 18:16:31 UTC 2018 - astieger@suse.com
- remove dependendy on gpg-offline, this is now part of the
standard source services
- Use %license (boo#1082318)
-------------------------------------------------------------------
Sat Apr 29 18:10:52 UTC 2017 - bwiedemann@suse.com
- Call gzip -n to make build fully reproducible
-------------------------------------------------------------------
Mon Oct 6 17:39:33 UTC 2014 - crrodriguez@opensuse.org
- Restrict xorg library requires to the mininum needed.
- BUild C++ bits with -fvisibility-inlines-hidden.
-------------------------------------------------------------------
Mon Jul 15 12:24:40 UTC 2013 - werner@suse.de
- Do not remove lex/yacc code as current bison generate broken
code (fix for bnc#829479, depends on bnc#829497)
- Add plotutils-hershey_glyphs.patch to avoid arithmetic overflow
in Hershey pointing hands glyphs
- Add plotutils-man-spline.patch as there is no --number-of-intervals
but --no-of-intervals option
- Add plotutils-postscript.patch to avoid broken postscript due not
initialized variable
-------------------------------------------------------------------
Mon Apr 15 10:09:03 UTC 2013 - idonmez@suse.com
- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls
- Add GPG checking
-------------------------------------------------------------------
Sat Mar 2 08:20:03 UTC 2013 - coolo@suse.com
- update license to new format
-------------------------------------------------------------------
Wed Aug 29 12:39:58 UTC 2012 - pgajdos@suse.com
- build also with libpng15
* libpng15.patch
-------------------------------------------------------------------
Mon Aug 6 13:20:52 UTC 2012 - pgajdos@suse.com
- prepare spec file for dropping SuSEconfig.fonts (openFATE#313536)
-------------------------------------------------------------------
Wed Nov 16 08:19:58 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Thu Nov 26 09:54:41 CET 2009 - werner@suse.de
- Update to version 2.6 as this fix a copyright problem of mixing
GPL and non-commercial code (bnc#465378)
-------------------------------------------------------------------
Tue Jan 20 18:53:57 CET 2009 - crrodriguez@suse.de
- fix -devel package dependencies (and build of package enblend-enfuse)
- remove "la" files
-------------------------------------------------------------------
Thu Jan 8 16:35:53 CET 2009 - sbrabec@suse.cz
- Updated to version 2.5.1:
* Minor SVG output format fixes for compatability with SVG 1.1.
* Error formatting changes.
* New license: GPL version 3.
- Install upstream man pages.
- Split package and patch according to packaging rules.
- Simplified spec file.
- Disabled static libraries.
- Update lex & bison files.
- Removed obsolete version checks.
-------------------------------------------------------------------
Thu Jan 8 12:04:02 CET 2009 - werner@suse.de
- Add a fix in libplot/s_path.c to get valid SVG files (bnc#464381)
-------------------------------------------------------------------
Thu Aug 10 12:49:46 CEST 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts/misc (because of X11R7).
-------------------------------------------------------------------
Mon May 22 14:23:56 CEST 2006 - werner@suse.de
- Update to plotutils 2.5
libplot:
* support for rotated and sheared (i.e., "anamorphically
transformed") X Window System fonts has been completely rewritten.
* URW versions of the standard 35 Adobe fonts (Helvetica,
Times-Roman etc.) are now checked for under their own names on any
X Window System display, as well as under the Adobe names.
* SVG output is now conformant SVG 1.1
* vertical positioning of text strings by the SVG driver improved
* the ROTATION parameter can now take values other than 0, 90, 180, and 270.
* modifiers fixed, such as appended "xsize=6in", "yoffset=8cm"
* problems with PS output triggering an error in some versions of
ghostscript now fixed
* most external symbols not meant to be publicly accessible now have
names beginning with the prefix "_pl_", to reduce the possibility
of namespace collisions. This will be completed in a later release.
graph:
* plotting of rotated y-axis labels by the `-Y' option, when `-T X' is
specified
* new short `-Q' option, equivalent to `--toggle-rotate-y-axis-label'.
graph,plot,tek2plot,plotfont,pic2plot:
* `--display-type' long option, the name of which confused some users,
has been changed to `--output-format'.
-------------------------------------------------------------------
Wed Jan 25 21:40:23 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Dec 03 20:53:57 CET 2004 - mfabian@suse.de
- use new macro "%run_suseconfig_fonts".
-------------------------------------------------------------------
Wed Dec 1 17:46:23 CET 2004 - werner@suse.de
- Do not be fooled by missing SuSEconfig module on non X11 systems
-------------------------------------------------------------------
Fri Mar 19 21:48:26 CET 2004 - mfabian@suse.de
- use %suseconfig_fonts_prereq
- run SuSEconfig.fonts and SuSEconfig.pango in %post and %postun
-------------------------------------------------------------------
Sun Jan 11 10:02:34 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Sat Jan 10 10:17:03 CET 2004 - adrian@suse.de
- add %run_ldconfig
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Fri Feb 28 17:25:02 CET 2003 - werner@suse.de
- Fix bug #23452: use intall-info for info file
-------------------------------------------------------------------
Fri Nov 22 23:49:21 CET 2002 - olh@suse.de
- obsoletes/provides plotutil (#21848)
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Tue Jun 18 16:41:46 CEST 2002 - meissner@suse.de
- rerun auto* tools.
-------------------------------------------------------------------
Fri May 3 15:32:44 CEST 2002 - werner@suse.de
- Set correct X11 library path
- Automagic update of config.guess and config.sub
-------------------------------------------------------------------
Mon Dec 17 14:49:58 CET 2001 - werner@suse.de
- Update to 2.4.1
- Use BuildRoot
- Rename package from plotutil to plotutils
-------------------------------------------------------------------
Tue Jun 26 22:27:08 CEST 2001 - schwab@suse.de
- Fix for gcc 3.0.
-------------------------------------------------------------------
Tue May 8 14:15:10 CEST 2001 - mfabian@suse.de
- bzip2 sources
-------------------------------------------------------------------
Wed May 31 16:06:32 CEST 2000 - werner@suse.de
- Use %{_defaultdocdir}
-------------------------------------------------------------------
Wed Mar 8 11:28:46 CET 2000 - bs@suse.de
- no ldconfig in %post please.
-------------------------------------------------------------------
Fri Feb 11 22:13:50 CET 2000 - werner@suse.de
- Fix call of ldconfig, only if called in real root file system
-------------------------------------------------------------------
Thu Jan 20 23:48:17 CET 2000 - ro@suse.de
- update to 2.3 to make it build
- info,man: use macros to move to /usr/share
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Mon Apr 5 14:26:29 MEST 1999 - bs@suse.de
- fixed date strings in .changes.
----------------------------------------------------------------------------
Fri Mar 26 15:28:02 CET 1999 - werner@suse.de
- Update to version 2.2
----------------------------------------------------------------------------
Wed Mar 3 13:14:00 MET 1999 - werner@suse.de
- New package, version 2.1.6

BIN
plotutils.keyring Normal file

Binary file not shown.

244
plotutils.spec Normal file
View File

@ -0,0 +1,244 @@
#
# spec file for package plotutils
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: plotutils
Version: 2.6
Release: 0
Summary: GNU Plotting Utilities
License: GPL-2.0-or-later AND GPL-3.0-or-later
Group: Productivity/Graphics/Visualization/Graph
URL: https://www.gnu.org/software/plotutils/plotutils.html
Source: https://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz.sig
Source2: plotutils.keyring
Patch0: plotutils-man.patch
Patch1: plotutils-uninitialized.patch
Patch2: plotutils-dasharray-format.patch
Patch3: plotutils-autoreconf.patch
# libpng15.patch sent 2012-08-30 at rsm@math.arizona.edu
Patch4: plotutils-libpng15.patch
# PATCH-FIX-UPSTREAM Arithmetic overflow in Hershey pointing hands glyphs
Patch5: plotutils-hershey_glyphs.patch
# PATCH-FIX-UPSTREAM --no-of-intervals arugment is documented wrongly originall
Patch6: plotutils-man-spline.patch
# PATCH-FIX-UPSTREAM repairs postscript output
Patch7: plotutils-postscript.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: fontpackages-devel
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xt)
%{?reconfigure_fonts_prereq: %reconfigure_fonts_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%package devel
Summary: GNU Plotting Utilities
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: bison
Requires: flex
Requires: fontpackages-devel
Requires: gcc-c++
Requires: libplot2 = %{version}
Requires: libplotter2 = %{version}
Requires: libpng-devel
Requires: libstdc++-devel
Requires: libtool
Requires: libxmi0 = %{version}
Requires: pkgconfig
Requires: pkgconfig(x11)
Requires: pkgconfig(xaw7)
Requires: pkgconfig(xext)
Requires: pkgconfig(xt)
%description devel
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%package doc
Summary: GNU Plotting Utilities
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Provides: %{name}:%{_docdir}/%{name}/README
BuildArch: noarch
%description doc
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%package -n libplot2
Summary: GNU Plotting Utilities
Group: System/Libraries
%description -n libplot2
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%package -n libplotter2
Summary: GNU Plotting Utilities
Group: System/Libraries
%description -n libplotter2
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%package -n libxmi0
Summary: GNU Plotting Utilities
Group: System/Libraries
%description -n libxmi0
The GNU plotting utilities consist of seven command line programs: the
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
distributed with these programs; it is the library on which the
graphics programs are based. `Libplot' is a function library for
device-independent two-dimensional vector graphics, including vector
graphics animations under the X Window System.
%prep
%{?gpg_verify: %gpg_verify %{S:1}}
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0 -b .p3
%patch4 -p1
%patch5 -p0
%patch6 -p0
%patch7 -p0
# Avoid update lex and bison code as otherwise we may see broken code (bnc#829479)
# that is do *not* remove any lex\yacc code
grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r touch
%build
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
autoreconf -f -i
%configure --with-pic\
--disable-static\
--enable-libplotter\
--enable-libxmi
%make_build
%install
%make_install\
libplotdatadir=%{_docdir}/%{name}/libplot\
odedatadir=%{_docdir}/%{name}/ode\
tek2plotdatadir=%{_docdir}/%{name}/tek2plot\
pic2plotdatadir=%{_docdir}/%{name}/pic2plot
#
install -m 0644\
AUTHORS COMPAT INSTALL.fonts KNOWN_BUGS PROBLEMS README THANKS\
TODO %{buildroot}%{_defaultdocdir}/%{name}
#
install -d %{buildroot}%{_miscfontsdir}
install -m 0644 fonts/pcf/*.pcf %{buildroot}%{_miscfontsdir}
gzip -n -9 %{buildroot}%{_miscfontsdir}/*.pcf
#
install -m 0644 manpage.1 %{buildroot}%{_mandir}/man1/plotutils.1
ln -s plotutils.1.gz %{buildroot}%{_mandir}/man1/double.1.gz
ln -s plotutils.1.gz %{buildroot}%{_mandir}/man1/graph.1.gz
ln -s plotutils.1.gz %{buildroot}%{_mandir}/man1/pic2plot.1.gz
rm -f %{buildroot}%{_libdir}/*.la
%post
%reconfigure_fonts_post
%postun
%reconfigure_fonts_postun
%posttrans
%reconfigure_fonts_posttrans
%post -n libplot2 -p /sbin/ldconfig
%postun -n libplot2 -p /sbin/ldconfig
%post -n libplotter2 -p /sbin/ldconfig
%postun -n libplotter2 -p /sbin/ldconfig
%post -n libxmi0 -p /sbin/ldconfig
%postun -n libxmi0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/*
%doc %{_infodir}/plotutils*.info*
%doc %{_mandir}/man?/*.*
%{_miscfontsdir}
%files doc
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/*.h
%doc %{_infodir}/libxmi*.info*
%files -n libplot2
%defattr(-,root,root)
%{_libdir}/libplot.so.*
%files -n libplotter2
%defattr(-,root,root)
%{_libdir}/libplotter.so.*
%files -n libxmi0
%defattr(-,root,root)
%{_libdir}/libxmi.so.*
%changelog

25
plotutils.test Normal file
View File

@ -0,0 +1,25 @@
Testform für plotutils
======================
Datum: Mon May 22 14:18:34 CEST 2006
Version: 2.5
Maintainer: werner@suse.de
Voraussetzungen:
================
Folgende Pakete müssen installiert werden:
gcc/gpp
Aufruf(e):
========
siehe `info plotutils'
Ergebnis(se):
===========
Plotausgaben in verschiedenen Formaten.