Accepting request 1137694 from Publishing

- Add missing doc/webp_figures.gnu fronm upstream git repo

- Update to gnuplot 6.0.0
  * Japanese documentation updated
    (missing file title-ja.tex, build dependencies for mingw)
  * Support building against Qt6
    (./configure falls back to Qt5 if the Qt6 libraries are not found)
  * New configure option --enable-stable-sort
    1) Use mergesort rather than qsort if the system provides it.
    2) If neither mergesort nor glibc stable qsort is available,
       modify internal gnuplot structures to contain a secondary sort key
  * Render color gradient in colorbox as a pixel array (cairo, qt terminals)
  * "reset session" restores initial state of all linetype properties
  * postscript terminal now handles pixmaps (Bug #2644)
  * New plot style "with contourfill" handles 2D and 3D contour plots with
    discrete z-ranges indicated by solid fill colors.
  * FIX do not clobber a datablock if its name is encountered unexpectedly
  * FIX cairo terminals:  ignore zero-size polygons
  * FIX svg terminal now correctly tracks pattern-fill color
  * FIX integer overflow/wraparound when polygon is clipped to plot border
  * FIX do not mangle variable point properties in polar mode Bug #2650
  * partial support for replotting and mousing multiplots (finally!)
  * fixes build error for postscript terminal when libgd and cairo are not present
  * strip trailing CR from function blocks read from a dos file   Bug #2653
  * use 64-bit integers for iteration
  * "unset pointintervalbox" disables the box rather than setting it to default size
  * keyentry '...' can be used to place a secondary title in the key
  * fix use of stacked histograms with variable number of data columns
  - Replotting and mousing multiplots
    o now working much more comprehensively

OBS-URL: https://build.opensuse.org/request/show/1137694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuplot?expand=0&rev=94
This commit is contained in:
Ana Guerrero 2024-01-10 20:50:53 +00:00 committed by Git OBS Bridge
commit 8d19896ca4
17 changed files with 381 additions and 291 deletions

3
Gnuplot6.pdf Normal file
View File

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

BIN
Gnuplot_5_4.pdf (Stored with Git LFS)

Binary file not shown.

View File

@ -4,7 +4,7 @@
--- src/gplt_x11.c --- src/gplt_x11.c
+++ src/gplt_x11.c 2020-07-17 07:29:52.061621215 +0000 +++ src/gplt_x11.c 2020-07-17 07:29:52.061621215 +0000
@@ -954,6 +954,8 @@ mainloop() @@ -955,6 +955,8 @@ mainloop()
nfds = cn + 1; nfds = cn + 1;
while (1) { while (1) {
@ -13,7 +13,7 @@
XFlush(dpy); /* see above */ XFlush(dpy); /* see above */
FD_ZERO(&tset); FD_ZERO(&tset);
@@ -991,7 +993,11 @@ mainloop() @@ -992,7 +994,11 @@ mainloop()
process_event(&xe); process_event(&xe);
} }
} }
@ -26,7 +26,7 @@
unlink(X11_ipcpath); unlink(X11_ipcpath);
record(); record();
fclose(X11_ipc); fclose(X11_ipc);
@@ -1223,8 +1229,8 @@ static int read_input(void); @@ -1224,8 +1230,8 @@ static int read_input(void);
static int static int
read_input() read_input()
{ {

View File

@ -2,9 +2,9 @@
demo/fit.dem | 4 ++++ demo/fit.dem | 4 ++++
demo/poldat.dem | 2 +- demo/poldat.dem | 2 +-
demo/simple.dem | 3 +-- demo/simple.dem | 3 +--
src/loadpath.c | 21 +++++++++++++++++++++
src/show.c | 9 +++++++++ src/show.c | 9 +++++++++
src/variable.c | 20 +++++++++++++++++++- 5 files changed, 36 insertions(+), 3 deletions(-)
5 files changed, 34 insertions(+), 4 deletions(-)
--- demo/fit.dem --- demo/fit.dem
+++ demo/fit.dem 2020-07-17 07:25:00.022670914 +0000 +++ demo/fit.dem 2020-07-17 07:25:00.022670914 +0000
@ -69,9 +69,53 @@
plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1)) plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))
pause -1 "Hit return to continue" pause -1 "Hit return to continue"
--- src/loadpath.c
+++ src/loadpath.c 2024-01-08 09:15:14.362384507 +0000
@@ -31,6 +31,10 @@
]*/
#include <string.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include "loadpath.h"
#include "alloc.h"
@@ -72,6 +76,18 @@ init_loadpath()
if (!loadpath)
{
char *envlib = getenv("GNUPLOT_LIB");
+#ifdef GNUPLOT_LIB_DEFAULT
+ char *defenvlib = (char*)0;
+ struct stat st;
+ if ((stat(GNUPLOT_LIB_DEFAULT, &st) == 0) && S_ISDIR(st.st_mode)) {
+ if (envlib) {
+ if (asprintf(&defenvlib, "%s:%s", envlib, GNUPLOT_LIB_DEFAULT) > 0)
+ envlib = defenvlib;
+ } else
+ envlib = GNUPLOT_LIB_DEFAULT;
+ }
+#endif /* GNUPLOT_LIB_DEFAULT */
+
if (envlib) {
int len = strlen(envlib);
loadpath = gp_strdup(envlib);
@@ -81,6 +97,11 @@ init_loadpath()
PATHSEP_TO_NUL(loadpath);
}
/* else: NULL = empty */
+#ifdef GNUPLOT_LIB_DEFAULT
+ if (defenvlib)
+ free(defenvlib);
+#endif /* GNUPLOT_LIB_DEFAULT */
+
}
/* point to env portion of loadpath */
envptr = loadpath;
--- src/show.c --- src/show.c
+++ src/show.c 2020-07-17 07:25:00.022670914 +0000 +++ src/show.c 2020-07-17 07:25:00.022670914 +0000
@@ -1077,6 +1077,15 @@ show_version(FILE *fp) @@ -1140,6 +1140,15 @@ show_version(FILE *fp)
p /* type "help seeking-assistance" */ p /* type "help seeking-assistance" */
); );
@ -87,46 +131,3 @@
/* show version long */ /* show version long */
if (almost_equals(c_token, "l$ong")) { if (almost_equals(c_token, "l$ong")) {
--- src/variable.c
+++ src/variable.c 2020-07-17 07:25:00.022670914 +0000
@@ -33,7 +33,10 @@
/* The Death of Global Variables - part one. */
#include <string.h>
-
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include "variable.h"
#include "alloc.h"
@@ -94,6 +97,17 @@ loadpath_handler(int action, char *path)
if (!loadpath)
{
char *envlib = getenv("GNUPLOT_LIB");
+#ifdef GNUPLOT_LIB_DEFAULT
+ char *defenvlib = (char*)0;
+ struct stat st;
+ if ((stat(GNUPLOT_LIB_DEFAULT, &st) == 0) && S_ISDIR(st.st_mode)) {
+ if (envlib) {
+ if (asprintf(&defenvlib, "%s:%s", envlib, GNUPLOT_LIB_DEFAULT) > 0)
+ envlib = defenvlib;
+ } else
+ envlib = GNUPLOT_LIB_DEFAULT;
+ }
+#endif /* GNUPLOT_LIB_DEFAULT */
if (envlib) {
int len = strlen(envlib);
loadpath = gp_strdup(envlib);
@@ -102,6 +116,10 @@ loadpath_handler(int action, char *path)
/* convert all PATHSEPs to \0 */
PATHSEP_TO_NUL(loadpath);
} /* else: NULL = empty */
+#ifdef GNUPLOT_LIB_DEFAULT
+ if (defenvlib)
+ free(defenvlib);
+#endif /* GNUPLOT_LIB_DEFAULT */
} /* else: already initialised; int_warn (?) */
/* point to env portion of loadpath */
envptr = loadpath;

View File

@ -37,7 +37,7 @@
#ifdef EXPORT_SELECTION #ifdef EXPORT_SELECTION
# undef EXPORT_SELECTION # undef EXPORT_SELECTION
#endif /* EXPORT SELECTION */ #endif /* EXPORT SELECTION */
@@ -521,8 +528,8 @@ static char *gpFallbackFont(void); @@ -522,8 +529,8 @@ static char *gpFallbackFont(void);
static int gpXGetFontascent(XFontStruct *cfont); static int gpXGetFontascent(XFontStruct *cfont);
enum set_encoding_id encoding = S_ENC_DEFAULT; /* EAM - mirrored from core code by 'QE' */ enum set_encoding_id encoding = S_ENC_DEFAULT; /* EAM - mirrored from core code by 'QE' */
@ -48,7 +48,7 @@
#define Nwidths 10 #define Nwidths 10
static unsigned int widths[Nwidths] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; static unsigned int widths[Nwidths] = { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@@ -2289,6 +2296,8 @@ exec_cmd(plot_struct *plot, char *comman @@ -2294,6 +2301,8 @@ exec_cmd(plot_struct *plot, char *comman
/* Save the request default font */ /* Save the request default font */
c = &(buffer[strlen(buffer)-1]); c = &(buffer[strlen(buffer)-1]);
while (*c <= ' ') *c-- = '\0'; while (*c <= ' ') *c-- = '\0';
@ -57,7 +57,7 @@
strncpy(default_font, &buffer[2], sizeof(default_font)-1); strncpy(default_font, &buffer[2], sizeof(default_font)-1);
FPRINTF((stderr, "gnuplot_x11: exec_cmd() set default_font to \"%s\"\n", default_font)); FPRINTF((stderr, "gnuplot_x11: exec_cmd() set default_font to \"%s\"\n", default_font));
break; break;
@@ -5744,7 +5753,7 @@ XFontStruct *gpXLoadQueryFont (Display * @@ -5820,7 +5829,7 @@ XFontStruct *gpXLoadQueryFont (Display *
} }
#else #else
if (first_time) { if (first_time) {
@ -66,7 +66,7 @@
first_time = FALSE; first_time = FALSE;
} }
while (n_miss-- > 0) while (n_miss-- > 0)
@@ -5896,6 +5905,18 @@ char *fontname; @@ -5972,6 +5981,18 @@ char *fontname;
} }
#ifdef USE_X11_MULTIBYTE #ifdef USE_X11_MULTIBYTE

View File

@ -1,14 +1,26 @@
--- ---
gnuplot-5.4.0/docs/Makefile.am | 12 ++++++++---- gnuplot-6.0.0/configure.ac | 2 +-
gnuplot-5.4.0/src/gadgets.h | 2 +- gnuplot-6.0.0/docs/Makefile.am | 12 ++++++++----
gnuplot-5.4.0/src/gplt_x11.c | 9 ++++++--- gnuplot-6.0.0/src/gadgets.h | 2 +-
gnuplot-5.4.0/src/plot.c | 22 +++++++++++++++++++++- gnuplot-6.0.0/src/gplt_x11.c | 9 ++++++---
gnuplot-5.4.0/src/term.h | 6 +++--- gnuplot-6.0.0/src/plot.c | 16 ++++++++++++++++
5 files changed, 39 insertions(+), 12 deletions(-) gnuplot-6.0.0/src/term.h | 6 +++---
6 files changed, 35 insertions(+), 12 deletions(-)
--- gnuplot-5.4.0/docs/Makefile.am --- gnuplot-6.0.0/configure.ac
+++ gnuplot-5.4.0/docs/Makefile.am 2020-07-17 07:25:36.834034450 +0000 +++ gnuplot-6.0.0/configure.ac 2024-01-09 08:20:41.748328467 +0000
@@ -42,7 +42,7 @@ @@ -383,7 +383,7 @@ if test "$with_readline" != no; then
dnl check for terminal library
dnl this is a very cool solution from octave's configure.in
gp_tcap=""
- for termlib in ncurses curses termcap terminfo termlib; do
+ for termlib in tinfo ncurses curses termcap terminfo termlib; do
AC_CHECK_LIB(${termlib}, tputs, [gp_tcap="$gp_tcap -l$termlib"])
case "$gp_tcap" in
*-l${termlib}*)
--- gnuplot-6.0.0/docs/Makefile.am
+++ gnuplot-6.0.0/docs/Makefile.am 2024-01-08 10:32:22.372964142 +0000
@@ -29,7 +29,7 @@
# #
# default is what is needed for interactive gnuplot # default is what is needed for interactive gnuplot
@ -16,17 +28,17 @@
+gih_DATA = gnuplot.gih gnuplot-fr.gih +gih_DATA = gnuplot.gih gnuplot-fr.gih
gihdir = @GIHDIR@ gihdir = @GIHDIR@
noinst_PROGRAMS = checkdoc doc2ipf doc2tex doc2gih doc2rnh doc2hlp \ noinst_PROGRAMS = checkdoc doc2ipf doc2tex doc2gih doc2hlp \
@@ -101,7 +101,7 @@ gnuplot-groff.ps gnuplot.tmp VERSION gnu @@ -111,7 +111,7 @@ wxhelp_figures wxhelp/*.html wxhelp/wgnu
gnuplot.idv gnuplot.xref gnuplot.lg gnuplot.pdf wxhelp_figures \
wxhelp/*.html wxhelp/wgnuplot.hhc wxhelp/wgnuplot.hhk \
wxhelp/wgnuplot.htc wxhelp/doc2html$(EXEEXT) windows/wgnuplot.htk \ wxhelp/wgnuplot.htc wxhelp/doc2html$(EXEEXT) windows/wgnuplot.htk \
svg_figures html/*.html html/*.svg html/*.hhc html/*.hhk \
webp_figures html/*.webp html/figure_mask.png \
-windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS) -windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS)
+windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS) gnuplot-fr.gih +windows/*.png gnuplot.htb gnuplot.texi gnuplot-eldoc.el $(ELCS) gnuplot-fr.gih
DISTFILES = $(DIST_COMMON) $(SOURCES) $(DOCHEADERS) $(EXTRA_DIST) DISTFILES = $(DIST_COMMON) $(SOURCES) $(DOCHEADERS) $(EXTRA_DIST)
@@ -262,17 +262,21 @@ gnuplot.hlp: doc2hlp$(EXEEXT) $(srcdir)/ @@ -271,17 +271,21 @@ gnuplot.hlp: doc2hlp$(EXEEXT) $(srcdir)/
doc2hlp_SOURCES = doc2hlp.c termdoc.c doc2hlp_SOURCES = doc2hlp.c termdoc.c
### gnuplot interactive help format ### gnuplot interactive help format
@ -50,9 +62,9 @@
alldoc2gih_SOURCES = doc2gih.c termdoc.c alldoc2gih_SOURCES = doc2gih.c termdoc.c
alldoc2gih_CPPFLAGS = -DALL_TERM_DOC $(AM_CPPFLAGS) alldoc2gih_CPPFLAGS = -DALL_TERM_DOC $(AM_CPPFLAGS)
--- gnuplot-5.4.0/src/gadgets.h --- gnuplot-6.0.0/src/gadgets.h
+++ gnuplot-5.4.0/src/gadgets.h 2020-07-17 07:27:48.183763305 +0000 +++ gnuplot-6.0.0/src/gadgets.h 2024-01-08 09:16:58.124450437 +0000
@@ -522,7 +522,7 @@ extern TBOOLEAN clip_lines2; @@ -524,7 +524,7 @@ extern TBOOLEAN clip_lines2;
extern TBOOLEAN clip_points; extern TBOOLEAN clip_points;
extern TBOOLEAN clip_radial; extern TBOOLEAN clip_radial;
@ -61,9 +73,9 @@
extern int samples_1; extern int samples_1;
extern int samples_2; extern int samples_2;
--- gnuplot-5.4.0/src/gplt_x11.c --- gnuplot-6.0.0/src/gplt_x11.c
+++ gnuplot-5.4.0/src/gplt_x11.c 2020-07-17 07:25:36.834034450 +0000 +++ gnuplot-6.0.0/src/gplt_x11.c 2024-01-08 09:16:58.124450437 +0000
@@ -2513,9 +2513,12 @@ exec_cmd(plot_struct *plot, char *comman @@ -2518,9 +2518,12 @@ exec_cmd(plot_struct *plot, char *comman
} }
} }
/* X11_justify_text(mode) - set text justification mode */ /* X11_justify_text(mode) - set text justification mode */
@ -79,49 +91,9 @@
else if (*buffer == 'A') else if (*buffer == 'A')
sscanf(buffer + 1, "%lf", &plot->angle); sscanf(buffer + 1, "%lf", &plot->angle);
--- gnuplot-5.4.0/src/plot.c --- gnuplot-6.0.0/src/plot.c
+++ gnuplot-5.4.0/src/plot.c 2020-07-17 07:28:52.762646614 +0000 +++ gnuplot-6.0.0/src/plot.c 2024-01-08 09:16:58.124450437 +0000
@@ -206,6 +206,7 @@ static int asked_privi = 0; @@ -296,6 +296,22 @@ main(int argc_orig, char **argv)
void
drop_privilege()
{
+#ifndef SVGA_IS_SECURE
if (!asked_privi) {
euid = geteuid();
egid = getegid();
@@ -219,11 +220,13 @@ drop_privilege()
if (seteuid(ruid) == -1)
(void) fprintf(stderr, "seteuid(%d): %s\n",
(int) ruid, strerror(errno));
+#endif
}
void
take_privilege()
{
+#ifndef SVGA_IS_SECURE
if (!asked_privi) {
euid = geteuid();
egid = getegid();
@@ -237,6 +240,7 @@ take_privilege()
if (seteuid(euid) == -1)
(void) fprintf(stderr, "seteuid(%d): %s\n",
(int) euid, strerror(errno));
+#endif
}
#endif /* LINUXVGA */
@@ -272,8 +276,8 @@ main(int argc_orig, char **argv)
argc = argc_orig;
#ifdef LINUXVGA
- LINUX_setup(); /* setup VGA before dropping privilege DBT 4/5/99 */
drop_privilege();
+ LINUX_setup(); /* setup VGA before dropping privilege DBT 4/5/99 */
#endif
/* make sure that we really have revoked root access, this might happen if
gnuplot is compiled without vga support but is installed suid by mistake */
@@ -346,6 +350,22 @@ main(int argc_orig, char **argv)
rl_getc_function = getc_wrapper; rl_getc_function = getc_wrapper;
#endif #endif
@ -144,9 +116,9 @@
#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDITLINE) #if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDITLINE)
/* T.Walter 1999-06-24: 'rl_readline_name' must be this fix name. /* T.Walter 1999-06-24: 'rl_readline_name' must be this fix name.
* It is used to parse a 'gnuplot' specific section in '~/.inputrc' * It is used to parse a 'gnuplot' specific section in '~/.inputrc'
--- gnuplot-5.4.0/src/term.h --- gnuplot-6.0.0/src/term.h
+++ gnuplot-5.4.0/src/term.h 2020-07-17 07:25:36.838034380 +0000 +++ gnuplot-6.0.0/src/term.h 2024-01-08 09:16:58.124450437 +0000
@@ -242,9 +242,9 @@ @@ -233,9 +233,9 @@
#include "emf.trm" #include "emf.trm"
/* Roland DXY800A plotter */ /* Roland DXY800A plotter */
@ -158,7 +130,7 @@
/* fig graphics */ /* fig graphics */
#include "fig.trm" #include "fig.trm"
@@ -277,7 +277,7 @@ @@ -268,7 +268,7 @@
/* #include "imagen.trm" */ /* #include "imagen.trm" */
/* Kyocera Prescribe printer */ /* Kyocera Prescribe printer */

View File

@ -1,6 +1,6 @@
--- gnuplot.texi --- gnuplot.texi
+++ gnuplot.texi 2020-07-17 09:17:43.019856719 +0000 +++ gnuplot.texi 2024-01-09 09:29:57.128897341 +0000
@@ -11599,8 +11599,7 @@ but @@ -13570,8 +13570,7 @@ but
@end example @end example
See also See also
@ -10,12 +10,14 @@
@node arrow, autoscale, angles, set-show @node arrow, autoscale, angles, set-show
@subsection arrow @subsection arrow
@@ -23249,13 +23248,10 @@ Syntax: @@ -26079,15 +26078,12 @@ Syntax:
@{[no]enhanced@} @{[no]enhanced@}
@end example @end example
-@end itemizeif -@end itemizeif
@example @example
@{fillchar @{solid|"<char>"@}@}
@{[no]attributes@}
@{mono|ansi|ansi256|ansirgb@} @{mono|ansi|ansi256|ansirgb@}
@end example @end example
@ -24,15 +26,16 @@
where <xchars> and <ychars> set the size of the text block. The default is where <xchars> and <ychars> set the size of the text block. The default is
79 by 24. The last newline is printed only if `feed` is enabled. 79 by 24. The last newline is printed only if `feed` is enabled.
@@ -23293,7 +23289,6 @@ See also e.g. the description at @@ -26129,8 +26125,6 @@ See also e.g. the description at
@uref{https://en.wikipedia.org/wiki/ANSI_escape_code#Colors,https://en.wikipedia.org/wiki/ANSI_escape_code#Colors @uref{https://en.wikipedia.org/wiki/ANSI_escape_code#Colors,https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
} }
-@end itemizeif -@end itemizeif
Example: -
The `attributes` option enables bold and italic text on terminals or
emulators that support the escape sequences
@example @example
set term dumb mono size 60,15 aspect 1 @@ -26475,8 +26469,6 @@ Preferred combinations are `medium norma
@@ -23667,8 +23662,6 @@ Preferred combinations are `medium norma
With each of these drivers, a binary copy is required on a PC to print. With each of these drivers, a binary copy is required on a PC to print.
Do not use `print`---use instead `copy file /b lpt1:`. Do not use `print`---use instead `copy file /b lpt1:`.
@ -41,7 +44,7 @@
@node excl, fig, epson_180dpi, complete_list_of_terminals @node excl, fig, epson_180dpi, complete_list_of_terminals
@subsection excl @subsection excl
@@ -24370,8 +24363,6 @@ the environmental variable GNUPLOT_LUA_D @@ -27170,8 +27162,6 @@ the environmental variable GNUPLOT_LUA_D
All arguments will be provided to the selected script for further All arguments will be provided to the selected script for further
evaluation. E.g. 'set term lua tikz help' will cause the script itself evaluation. E.g. 'set term lua tikz help' will cause the script itself
to print additional help on options and choices for the script. to print additional help on options and choices for the script.
@ -50,7 +53,7 @@
@node mf, mp, lua, complete_list_of_terminals @node mf, mp, lua, complete_list_of_terminals
@subsection mf @subsection mf
@@ -25124,7 +25115,6 @@ terminals. It has no options." @@ -27932,7 +27922,6 @@ terminals. It has no options."
@c ?term km-tek40xx @c ?term km-tek40xx
@cindex km-tek40xx @cindex km-tek40xx
@ -58,7 +61,7 @@
@c ?commands set terminal selanar @c ?commands set terminal selanar
@c ?set terminal selanar @c ?set terminal selanar
@c ?set term selanar @c ?set term selanar
@@ -25132,7 +25122,6 @@ terminals. It has no options." @@ -27940,7 +27929,6 @@ terminals. It has no options."
@c ?term selanar @c ?term selanar
@cindex selanar @cindex selanar
@ -66,15 +69,15 @@
@c ?commands set terminal sixeltek @c ?commands set terminal sixeltek
@c ?set terminal sixeltek @c ?set terminal sixeltek
@c ?set term sixeltek @c ?set term sixeltek
@@ -25156,7 +25145,6 @@ limits plots to 16 simultaneous colors, @@ -27972,7 +27960,6 @@ For use with xterm, xterm must be compil
Note that gnuplot also supports another sixel output terminal, sixelgd, Note that gnuplot also supports another sixel output terminal, `sixelgd`,
that offers more options and features." that offers more options and features."
-@end itemizeif -@end itemizeif
@c ?commands set terminal bitgraph @c ?commands set terminal bitgraph
@c ?set terminal bitgraph @c ?set terminal bitgraph
@c ?set term bitgraph @c ?set term bitgraph
@@ -25164,7 +25152,6 @@ that offers more options and features." @@ -27980,7 +27967,6 @@ that offers more options and features."
@c ?term bitgraph @c ?term bitgraph
@cindex bitgraph @cindex bitgraph
@ -82,7 +85,7 @@
This family of terminal drivers supports a variety of VT-like terminals. This family of terminal drivers supports a variety of VT-like terminals.
`tek40xx` supports Tektronix 4010 and others as well as most TEK emulators. `tek40xx` supports Tektronix 4010 and others as well as most TEK emulators.
`vttek` supports VT-like tek40xx terminal emulators. `vttek` supports VT-like tek40xx terminal emulators.
@@ -25718,7 +25705,6 @@ anti-aliasing, oversampling and full tra @@ -28517,7 +28503,6 @@ anti-aliasing, oversampling and full tra
deprecated. deprecated.
The `GDI backend` which uses the classic GDI API is deprecated and has been The `GDI backend` which uses the classic GDI API is deprecated and has been
disabled in this version. disabled in this version.
@ -90,7 +93,7 @@
`GDI+ backend` draws to the screen using the GDI+ Windows API. It supports `GDI+ backend` draws to the screen using the GDI+ Windows API. It supports
full antialiasing, oversampling, transparency and custom dash patterns. full antialiasing, oversampling, transparency and custom dash patterns.
@@ -25748,7 +25734,6 @@ of an additional redraw after releasing @@ -28547,7 +28532,6 @@ of an additional redraw after releasing
`Line Styles...` allows customization of the line colors and styles. `Line Styles...` allows customization of the line colors and styles.
@ -98,7 +101,7 @@
`Update wgnuplot.ini` saves the current window locations, window sizes, text `Update wgnuplot.ini` saves the current window locations, window sizes, text
window font, text window font size, graph window font, graph window font window font, text window font size, graph window font, graph window font
size, background color to the initialization file `wgnuplot.ini`. size, background color to the initialization file `wgnuplot.ini`.
@@ -25914,8 +25899,6 @@ This file is located in the user's appli @@ -28713,8 +28697,6 @@ This file is located in the user's appli
Line5=0 0 128 0 4 Line5=0 0 128 0 4
@end example @end example
@ -107,7 +110,7 @@
@c ^ <h3>Text window options</h3> @c ^ <h3>Text window options</h3>
These settings apply to the wgnuplot text-window only." These settings apply to the wgnuplot text-window only."
@@ -25952,7 +25935,6 @@ solid line in color mode, or a dashed li @@ -28751,7 +28733,6 @@ solid line in color mode, or a dashed li
line width is 1 pixel. If `Linestyle` is negative, it specifies the width of line width is 1 pixel. If `Linestyle` is negative, it specifies the width of
a SOLID line in pixels. Line1 and any linestyle used with the `points` style a SOLID line in pixels. Line1 and any linestyle used with the `points` style
must be SOLID with unit width. must be SOLID with unit width.
@ -115,7 +118,7 @@
See `graph-menu`." See `graph-menu`."
@@ -26338,13 +26320,10 @@ later by `set term x11 [no]raise [no]per @@ -29137,13 +29118,10 @@ later by `set term x11 [no]raise [no]per
`-ctrlq ` closes window on ctrl-q rather than q `-ctrlq ` closes window on ctrl-q rather than q
@end example @end example

BIN
gnuplot-5.4.10.tar.gz (Stored with Git LFS)

Binary file not shown.

3
gnuplot-6.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:635a28f0993f6ab0d1179e072ad39b8139d07f51237f841d93c6c2ff4b1758ec
size 7522870

View File

@ -1,16 +1,20 @@
Index: gnuplot-5.4.1/src/Makefile.am Index: gnuplot-5.4.1/src/Makefile.am
=================================================================== ===================================================================
--- gnuplot-5.4.1.orig/src/Makefile.am ---
+++ gnuplot-5.4.1/src/Makefile.am gnuplot-6.0.0/src/Makefile.am | 5 +++++
@@ -61,6 +61,7 @@ util3d.c util3d.h variable.c variable.h 1 file changed, 5 insertions(+)
voxelgrid.c voxelgrid.h vplot.c vplot.h marching_cubes.h xdg.c xdg.h
gnuplot_LDADD = $(GD_LIBS) $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS) --- gnuplot-6.0.0/src/Makefile.am
+++ gnuplot-6.0.0/src/Makefile.am 2024-01-08 15:22:45.413763257 +0000
@@ -67,6 +67,7 @@ voxelgrid.c voxelgrid.h vplot.c vplot.h
watch.c watch.h xdg.c xdg.h
gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS)
+gnuplot_LDFLAGS = -pie +gnuplot_LDFLAGS = -pie
pkglibexec_PROGRAMS = pkglibexec_PROGRAMS =
@@ -69,6 +70,7 @@ pkglibexec_PROGRAMS += gnuplot_x11 @@ -75,6 +76,7 @@ pkglibexec_PROGRAMS += gnuplot_x11
gnuplot_x11_SOURCES = gplt_x11.c gplt_x11.h gpexecute.c gpexecute.h mousecmn.h version.c version.h gnuplot_x11_SOURCES = gplt_x11.c gplt_x11.h gpexecute.c gpexecute.h mousecmn.h version.c version.h
XLIBS = @LIBRARIES_FOR_X@ XLIBS = @LIBRARIES_FOR_X@
gnuplot_x11_LDADD = getcolor_x11.o $(XLIBS) gnuplot_x11_LDADD = getcolor_x11.o $(XLIBS)
@ -18,11 +22,27 @@ Index: gnuplot-5.4.1/src/Makefile.am
endif endif
getcolor_x11.o: getcolor.c getcolor_x11.o: getcolor.c
@@ -185,6 +187,7 @@ qtterminal/QtGnuplotApplication.cpp qtte @@ -102,6 +104,7 @@ $(EXTRA_gnuplot_SOURCES)
if BUILD_WXWIDGETS
gnuplot_SOURCES += wxterminal/wxt_gui.cpp
gnuplot_LDADD += -lX11
+gnuplot_LDFLAGS += -pie
endif
if BUILD_GPCAIRO
@@ -189,6 +192,7 @@ qtterminal/QtGnuplotApplication.cpp qtte
qtterminal/QtGnuplotScene.cpp qtterminal/QtGnuplotItems.cpp \ qtterminal/QtGnuplotScene.cpp qtterminal/QtGnuplotItems.cpp \
qtterminal/QtGnuplotEvent.cpp qtterminal/QtGnuplotEvent.cpp
gnuplot_qt_LDADD = $(QT_LIBS) gnuplot_qt_LDADD = $(QT_LIBS)
+gnuplot_qt_LDFLAGS = -pie +gnuplot_qt_LDFLAGS = -pie
# embed example (uncomment to build it)
# #
# embedded Qt widget example program
@@ -204,6 +208,7 @@ qt_embed_example_SOURCES = qtterminal/qt
qtterminal/QtGnuplotScene.cpp qtterminal/QtGnuplotItems.cpp \
qtterminal/QtGnuplotInstance.cpp
qt_embed_example_LDADD = $(QT_LIBS)
+qt_embed_example_LDFLAGS = -pie
endif # build_qt

View File

@ -6,7 +6,7 @@ Since QtCore is build with -reduce-relocations a -fPIC is required
--- src/Makefile.am --- src/Makefile.am
+++ src/Makefile.am 2017-09-27 10:07:07.767840550 +0000 +++ src/Makefile.am 2017-09-27 10:07:07.767840550 +0000
@@ -168,6 +168,9 @@ clean-local: clean-qt-extra clean-demo @@ -172,6 +172,9 @@ clean-local: clean-qt-extra clean-demo
gnuplot_SOURCES += qtterminal/qt_term.cpp gnuplot_SOURCES += qtterminal/qt_term.cpp

View File

@ -1,3 +1,57 @@
-------------------------------------------------------------------
Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add missing doc/webp_figures.gnu fronm upstream git repo
-------------------------------------------------------------------
Tue Jan 9 08:36:10 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Update to gnuplot 6.0.0
* Japanese documentation updated
(missing file title-ja.tex, build dependencies for mingw)
* Support building against Qt6
(./configure falls back to Qt5 if the Qt6 libraries are not found)
* New configure option --enable-stable-sort
1) Use mergesort rather than qsort if the system provides it.
2) If neither mergesort nor glibc stable qsort is available,
modify internal gnuplot structures to contain a secondary sort key
* Render color gradient in colorbox as a pixel array (cairo, qt terminals)
* "reset session" restores initial state of all linetype properties
* postscript terminal now handles pixmaps (Bug #2644)
* New plot style "with contourfill" handles 2D and 3D contour plots with
discrete z-ranges indicated by solid fill colors.
* FIX do not clobber a datablock if its name is encountered unexpectedly
* FIX cairo terminals: ignore zero-size polygons
* FIX svg terminal now correctly tracks pattern-fill color
* FIX integer overflow/wraparound when polygon is clipped to plot border
* FIX do not mangle variable point properties in polar mode Bug #2650
* partial support for replotting and mousing multiplots (finally!)
* fixes build error for postscript terminal when libgd and cairo are not present
* strip trailing CR from function blocks read from a dos file Bug #2653
* use 64-bit integers for iteration
* "unset pointintervalbox" disables the box rather than setting it to default size
* keyentry '...' can be used to place a secondary title in the key
* fix use of stacked histograms with variable number of data columns
- Replotting and mousing multiplots
o now working much more comprehensively
o revert "set mouse multiplot" as a separate command; it's now always in effect
- "plot with polygons" now guarantees that the border of each polygon is a closed curve
- pdf output from the cairo terminals now conforms to %PDF-1.5
- Refreshed patches
* gnuplot-4.4.0-x11ovf.dif
* gnuplot-4.6.0-demo.diff
* gnuplot-4.6.0-fonts.diff
* gnuplot-4.6.0.dif
* gnuplot-PIE.patch
* gnuplot-QtCore-PIC.dif
* gnuplot-wx3.diff
- Removed patch gnuplot-gd.patch
- Enable almost all terminals
- Enable Complex Airy and Bessel functions
- Enable Support for polar gridded surfaces
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 23 07:36:34 UTC 2023 - Dr. Werner Fink <werner@suse.de> Mon Oct 23 07:36:34 UTC 2023 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,104 +0,0 @@
Index: gnuplot-5.2.2/configure.ac
===================================================================
---
gnuplot-5.4.3/configure.ac | 76 +++++-------------------------------------
gnuplot-5.4.3/src/Makefile.am | 2 -
2 files changed, 11 insertions(+), 67 deletions(-)
--- gnuplot-5.4.3/configure.ac
+++ gnuplot-5.4.3/configure.ac 2022-01-10 09:30:11.836241429 +0000
@@ -526,73 +526,17 @@ AC_ARG_WITH(gd,dnl
if test "$with_gd" != no; then
PKG_CHECK_MODULES_NOFAIL(libgd, [gdlib])
- AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config])
-
- # If pkg-config did return libgd configuration then
- # libgd_{CFLAGS,LDFLAGS,LIBS} is set
- # If gdlib-config executable is found then GDLIB_CONFIG is set
- if test $pkg_failed = no && test -n "$GDLIB_CONFIG"; then
- # If pkg-config did succeed and we have gdlib-config then the later takes
- # priority
- libgd_CFLAGS=`$GDLIB_CONFIG --cflags`
- libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags`
- libgd_LIBS=`$GDLIB_CONFIG --libs`
- elif test -d "$with_gd"; then
- # pkg-config did NOT succeed, we do NOT have gdlib-config but user
- # specified --with-gd=
- libgd_CFLAGS="-I$with_gd/include"
- libgd_LDFLAGS="-L$with_gd/lib"
- libgd_LIBS="-ljpeg -lpng -lfreetype -lz"
- fi
-
- # Verify that libgd works, but backup the previous compilation variables to
- # be able to revert in the case that libgd is not functional
- _cppflags="$CPPFLAGS"
- _ldflags="$LDFLAGS"
- _libs="$LIBS"
- CPPFLAGS="$CPPFLAGS $libgd_CFLAGS"
- LDFLAGS="$LDFLAGS $libgd_LDFLAGS"
- LIBS="$LIBS $libgd_LIBS"
-
- AC_CHECK_LIB(gd,gdImageCreateTrueColor,
- [dnl found gd library
+ PKG_CHECK_MODULES([GD], [gdlib], [
+ ac_cv_lib_gd_gdImageJpeg=yes
+ ac_cv_lib_gd_gdImagePng=yes
+ ac_cv_lib_gd_gdImageGif=yes
+ ac_cv_lib_gd_gdImageGifAnimBegin=yes
AC_DEFINE(HAVE_LIBGD,1,[ Define if you have gd library. ])
- AC_CHECK_HEADERS(gd.h,,
- AC_MSG_WARN([please add path to gd.h to CPPFLAGS in Makefile]))
-
- dnl gif support in libgd
- AC_CHECK_LIB(gd,gdImageGif,
- [AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ])])
- AC_CHECK_LIB(gd,gdImageGifAnimBegin,
- [AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ])])
-
- dnl jpeg support in libgd
- AC_CHECK_LIB(gd,gdImageJpeg,
- [AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ])])
-
- dnl freetype support in libgd
- AC_CHECK_LIB(gd,gdImageStringFT,
- AC_DEFINE(HAVE_GD_TTF,1,
- [ Define if libgd supports TrueType fonts through libfreetype. ]))
-
- dnl png support in libgd
- AC_CHECK_LIB(gd,gdImagePng,
- [AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])])
-
- ],[dnl gd library not found
- AC_MSG_WARN([libgd not found or too old, version >= 2.0 is required])
- with_gd=no
- ])
-
- dnl piece it all together
- if test "$with_gd" = no; then
- CPPFLAGS="$_cppflags"
- LDFLAGS="$_ldflags"
- LIBS="$_libs"
- else
- LIBS="$_libs"
- TERMLIBS="$TERMLIBS -lgd $libgd_LIBS"
- fi
+ AC_DEFINE(HAVE_GD_GIF,1,[ Define if libgd supports gif. ])
+ AC_DEFINE(GIF_ANIMATION,1,[ Define if libgd supports animated gifs. ])
+ AC_DEFINE(HAVE_GD_JPEG,1,[ Define if libgd supports jpeg. ])
+ AC_DEFINE(HAVE_GD_TTF,1, [ Define if libgd supports TrueType fonts through libfreetype. ])
+ AC_DEFINE(HAVE_GD_PNG,1,[ Define if libgd supports png. ])])
fi
dnl end gd
--- gnuplot-5.4.3/src/Makefile.am
+++ gnuplot-5.4.3/src/Makefile.am 2022-01-10 08:51:05.936921975 +0000
@@ -60,7 +60,7 @@ term_api.h term.c term.h time.c unset.c
util3d.c util3d.h variable.c variable.h version.c version.h \
voxelgrid.c voxelgrid.h vplot.c vplot.h marching_cubes.h xdg.c xdg.h
-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS)
+gnuplot_LDADD = $(GD_LIBS) $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) $(QT_LIBS)
pkglibexec_PROGRAMS =

View File

@ -10,7 +10,7 @@ otherwise.
--- gnuplot-5.2.0/src/Makefile.am --- gnuplot-5.2.0/src/Makefile.am
+++ gnuplot-5.2.0/src/Makefile.am 2017-09-27 10:06:44.716255786 +0000 +++ gnuplot-5.2.0/src/Makefile.am 2017-09-27 10:06:44.716255786 +0000
@@ -95,6 +95,7 @@ $(EXTRA_gnuplot_SOURCES) @@ -101,6 +101,7 @@ $(EXTRA_gnuplot_SOURCES)
if BUILD_WXWIDGETS if BUILD_WXWIDGETS
gnuplot_SOURCES += wxterminal/wxt_gui.cpp gnuplot_SOURCES += wxterminal/wxt_gui.cpp

View File

@ -1,3 +1,57 @@
-------------------------------------------------------------------
Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add missing doc/webp_figures.gnu fronm upstream git repo
-------------------------------------------------------------------
Tue Jan 9 08:36:10 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Update to gnuplot 6.0.0
* Japanese documentation updated
(missing file title-ja.tex, build dependencies for mingw)
* Support building against Qt6
(./configure falls back to Qt5 if the Qt6 libraries are not found)
* New configure option --enable-stable-sort
1) Use mergesort rather than qsort if the system provides it.
2) If neither mergesort nor glibc stable qsort is available,
modify internal gnuplot structures to contain a secondary sort key
* Render color gradient in colorbox as a pixel array (cairo, qt terminals)
* "reset session" restores initial state of all linetype properties
* postscript terminal now handles pixmaps (Bug #2644)
* New plot style "with contourfill" handles 2D and 3D contour plots with
discrete z-ranges indicated by solid fill colors.
* FIX do not clobber a datablock if its name is encountered unexpectedly
* FIX cairo terminals: ignore zero-size polygons
* FIX svg terminal now correctly tracks pattern-fill color
* FIX integer overflow/wraparound when polygon is clipped to plot border
* FIX do not mangle variable point properties in polar mode Bug #2650
* partial support for replotting and mousing multiplots (finally!)
* fixes build error for postscript terminal when libgd and cairo are not present
* strip trailing CR from function blocks read from a dos file Bug #2653
* use 64-bit integers for iteration
* "unset pointintervalbox" disables the box rather than setting it to default size
* keyentry '...' can be used to place a secondary title in the key
* fix use of stacked histograms with variable number of data columns
- Replotting and mousing multiplots
o now working much more comprehensively
o revert "set mouse multiplot" as a separate command; it's now always in effect
- "plot with polygons" now guarantees that the border of each polygon is a closed curve
- pdf output from the cairo terminals now conforms to %PDF-1.5
- Refreshed patches
* gnuplot-4.4.0-x11ovf.dif
* gnuplot-4.6.0-demo.diff
* gnuplot-4.6.0-fonts.diff
* gnuplot-4.6.0.dif
* gnuplot-PIE.patch
* gnuplot-QtCore-PIC.dif
* gnuplot-wx3.diff
- Removed patch gnuplot-gd.patch
- Enable almost all terminals
- Enable Complex Airy and Bessel functions
- Enable Support for polar gridded surfaces
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 23 07:36:34 UTC 2023 - Dr. Werner Fink <werner@suse.de> Mon Oct 23 07:36:34 UTC 2023 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -28,7 +28,6 @@
%global psuffix -%{flavor} %global psuffix -%{flavor}
%endif %endif
%bcond_without h3d_gridbox
Name: gnuplot%{?psuffix} Name: gnuplot%{?psuffix}
BuildRequires: ImageMagick BuildRequires: ImageMagick
BuildRequires: automake BuildRequires: automake
@ -39,6 +38,7 @@ BuildRequires: glib2-devel
BuildRequires: libqt5-linguist-devel BuildRequires: libqt5-linguist-devel
BuildRequires: lua-devel BuildRequires: lua-devel
BuildRequires: netpbm BuildRequires: netpbm
BuildRequires: openspecfun-devel
BuildRequires: pango-devel BuildRequires: pango-devel
BuildRequires: plotutils-devel BuildRequires: plotutils-devel
BuildRequires: readline-devel BuildRequires: readline-devel
@ -64,7 +64,9 @@ BuildRequires: makeinfo
BuildRequires: texlive-epstopdf BuildRequires: texlive-epstopdf
BuildRequires: texlive-latex BuildRequires: texlive-latex
BuildRequires: texlive-latexconfig BuildRequires: texlive-latexconfig
BuildRequires: texlive-makeindex
BuildRequires: texlive-pdftex BuildRequires: texlive-pdftex
BuildRequires: texlive-tex
BuildRequires: texlive-tex4ht BuildRequires: texlive-tex4ht
BuildRequires: texlive-texinfo BuildRequires: texlive-texinfo
BuildRequires: texlive-ucs BuildRequires: texlive-ucs
@ -72,15 +74,18 @@ BuildRequires: tex(booktabs.sty)
BuildRequires: tex(fancyhdr.sty) BuildRequires: tex(fancyhdr.sty)
BuildRequires: tex(gttn1000.tfm) BuildRequires: tex(gttn1000.tfm)
BuildRequires: tex(hyperref.sty) BuildRequires: tex(hyperref.sty)
BuildRequires: tex(imakeidx.sty)
BuildRequires: tex(lgrcmr.fd) BuildRequires: tex(lgrcmr.fd)
BuildRequires: tex(nicefrac.sty)
BuildRequires: tex(pdftex.def) BuildRequires: tex(pdftex.def)
BuildRequires: tex(subfigure.sty) BuildRequires: tex(subfigure.sty)
BuildRequires: tex(textgreek.sty) BuildRequires: tex(textgreek.sty)
BuildRequires: tex(upquote.sty)
%endif %endif
URL: https://www.gnuplot.info/ URL: https://www.gnuplot.info/
Version: 5.4.10 Version: 6.0.0
Release: 0 Release: 0
%global underscore 5_4 %global underscore 6
%if "%{flavor}" == "" %if "%{flavor}" == ""
Summary: Function Plotting Utility and more Summary: Function Plotting Utility and more
License: GPL-2.0-or-later AND SUSE-Gnuplot License: GPL-2.0-or-later AND SUSE-Gnuplot
@ -91,9 +96,10 @@ License: GPL-2.0-or-later AND SUSE-Gnuplot
Group: Documentation/Other Group: Documentation/Other
%endif %endif
Source0: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/gnuplot-%{version}.tar.gz Source0: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/gnuplot-%{version}.tar.gz
Source1: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/Gnuplot_%{underscore}.pdf Source1: https://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/Gnuplot%{underscore}.pdf
Source2: gnuplot-fr.doc.bz2 Source2: gnuplot-fr.doc.bz2
Source3: README.whynot Source3: README.whynot
Source4: webp_figures.gnu
# https://mirrors.ctan.org/macros/latex209/contrib/picins/picins.sty # https://mirrors.ctan.org/macros/latex209/contrib/picins/picins.sty
# That's a build requirement, not provided by Tex Live # That's a build requirement, not provided by Tex Live
Source5: picins.sty Source5: picins.sty
@ -105,11 +111,10 @@ Patch2: gnuplot-4.6.0-fonts.diff
Patch4: gnuplot-4.6.0-demo.diff Patch4: gnuplot-4.6.0-demo.diff
Patch5: gnuplot-wx3.diff Patch5: gnuplot-wx3.diff
Patch6: gnuplot-QtCore-PIC.dif Patch6: gnuplot-QtCore-PIC.dif
Patch7: gnuplot-gd.patch Patch7: gnuplot-PIE.patch
Patch8: gnuplot-PIE.patch
%define _x11lib %{_libdir} %define _x11lib %{_libdir}
%define _x11data %{_datadir}/X11 %define _x11data %{_datadir}/X11
%define _libx11 %{_exec_prefix}/lib/X11 %define _x11inc %{_includedir}/X11
%define _appdef %{_x11data}/app-defaults %define _appdef %{_x11data}/app-defaults
%define _gnplttex tex/latex/gnuplot %define _gnplttex tex/latex/gnuplot
%if "%{flavor}" == "doc" %if "%{flavor}" == "doc"
@ -134,14 +139,13 @@ and can easily be extended to include new devices.
bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc
test $? -eq 0 || exit 1 test $? -eq 0 || exit 1
cp %{_sourcedir}/picins.sty docs cp %{_sourcedir}/picins.sty docs
%patch2 -p0 -b .font %patch -P2 -p0 -b .font
%patch4 -p0 -b .demo %patch -P4 -p0 -b .demo
%patch0 -p1 -b .0 %patch -P0 -p1 -b .0
%patch1 -p0 -b .x11ovf %patch -P1 -p0 -b .x11ovf
%patch5 -p1 -b .w3x %patch -P5 -p1 -b .w3x
%patch6 -p0 -b .pic %patch -P6 -p0 -b .pic
%patch7 -p1 -b .gd %patch -P7 -p1 -b .pie
%patch8 -p1 -b .pie
%build %build
autoreconf -fi autoreconf -fi
@ -160,8 +164,16 @@ autoreconf -fi
%endif %endif
%endif %endif
%if "%{flavor}" == ""
mkdir bin
ln -sf /bin/true bin/dvips
ln -sf /bin/true bin/emacs
ln -sf /bin/true bin/kpsewhich
ln -sf /bin/true bin/texhash
PATH=${PATH}:${PWD}/bin
%endif
%configure \ %configure \
--enable-stats \
--with-x \ --with-x \
--x-includes=%{_x11inc} \ --x-includes=%{_x11inc} \
--x-libraries=%{_x11lib}\ --x-libraries=%{_x11lib}\
@ -179,17 +191,19 @@ autoreconf -fi
--with-gpic \ --with-gpic \
--with-mif \ --with-mif \
--enable-x11-mbfonts \ --enable-x11-mbfonts \
%if ! %{with h3d_gridbox} --enable-stats \
--enable-h3d-quadtree \ --enable-stable-sort \
--disable-h3d-gridbox \ --enable-polar-grid \
%else --enable-watchpoints \
--disable-h3d-quadtree \ --enable-function-blocks \
--enable-h3d-gridbox \ --enable-backward-compatibility \
%endif --with-gd=yes \
--enable-backwards-compatibility\
--with-gd=%{_usr} \
--without-row-help \
--with-caca \ --with-caca \
--with-tgif \
--with-metafont \
--with-metapost \
--with-regis \
--with-amos=%{_libdir} \
--with-qt=qt5 --with-qt=qt5
%if "%{flavor}" == "" %if "%{flavor}" == ""
@ -199,9 +213,10 @@ autoreconf -fi
%if "%{flavor}" == "doc" %if "%{flavor}" == "doc"
mv src/Makefile{,_INACESSIBLE} mv src/Makefile{,_INACESSIBLE}
pushd docs/ pushd docs/
mkdir -p htmldocs cp -p %{S:4} webp_figures.gnu
cp toc_entr.sty htmldocs/ make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. clean
make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. clean html pdf make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. allterm.h allterm-ja.h
make GNUPLOT_EXE=%{_bindir}/gnuplot srcdir=. html pdf
make srcdir=. gnuplot.texi make srcdir=. gnuplot.texi
patch -p0 < %{S:6} patch -p0 < %{S:6}
make srcdir=. info make srcdir=. info
@ -223,7 +238,7 @@ autoreconf -fi
%if "%{flavor}" == "" %if "%{flavor}" == ""
make DESTDIR=%{buildroot} appdefaultdir=%{_appdef} install make DESTDIR=%{buildroot} appdefaultdir=%{_appdef} install
mkdir -p %{buildroot}/%{_mandir}/ja/man1 mkdir -p %{buildroot}/%{_mandir}/ja/man1
install -m 0644 man/gnuplot-ja_JP.UTF-8 %{buildroot}/%{_mandir}/ja/man1/gnuplot.1 install -m 0644 man/ja/man1/gnuplot.1 %{buildroot}/%{_mandir}/ja/man1/gnuplot.1
%endif %endif
%if "%{flavor}" == "doc" %if "%{flavor}" == "doc"
@ -241,7 +256,7 @@ autoreconf -fi
rm -vf tutorial/eg7.pdf rm -vf tutorial/eg7.pdf
rm -rvf demo/html rm -rvf demo/html
install -m 0444 docs/*.info* %{buildroot}/%{_infodir}/ install -m 0444 docs/*.info* %{buildroot}/%{_infodir}/
install -m 0444 docs/htmldocs/* %{buildroot}/%{_docdir}/gnuplot/doc/html install -m 0444 docs/html/* %{buildroot}/%{_docdir}/gnuplot/doc/html
install -m 0444 docs/psdoc/*.pdf %{buildroot}/%{_docdir}/gnuplot/doc/ install -m 0444 docs/psdoc/*.pdf %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/psdoc/*.ps %{buildroot}/%{_docdir}/gnuplot/doc/ install -m 0444 docs/psdoc/*.ps %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/psdoc/*.gpi %{buildroot}/%{_docdir}/gnuplot/doc/ install -m 0444 docs/psdoc/*.gpi %{buildroot}/%{_docdir}/gnuplot/doc/

75
webp_figures.gnu Normal file
View File

@ -0,0 +1,75 @@
#
# generate animations for inclusion with HTML help documents
#
set term webp animate delay 50 size 300,300
set output './html/figure_spinning_d20.webp'
unset border; unset tics; unset key; set view equal xyz
set margins 0,0,0,0
set pm3d border linecolor "black"
do for [ang=1:360:2] {
set view 60, ang, 1.7
splot 'icosahedron.dat' with polygons fc "gold"
}
unset output
# This figure is already in the repository as a static illustration
#
# set term pngcairo size 300,300
# set output './html/figure_static_d20.png'
# replot
# unset output
reset
#
# Convex hull used to mask a pm3d surface
# (webp because the svg version is 10x larger)
#
set term webp font "Calisto MT,12" noanimate size 600,400
set output './html/figure_mask.webp'
set view map
set palette rgb 33,13,10
set xrange [-30:25]
set yrange [-30:25]
set dgrid3d 100,100 gauss 5
set pm3d explicit
unset key
unset tics
unset colorbox
unset border
set table $HULL
plot 'mask_pm3d.dat' using 1:2 convexhull with lines title "Convex hull"
unset table
set multiplot layout 1,2 spacing 0.0 margins 0.05,0.95,0.0,0.85
set title "Cluster of points\n defining the mask region"
splot 'mask_pm3d.dat' using 1:2:3 with pm3d, \
'mask_pm3d.dat' using 1:2:(0) nogrid with points pt 7 ps .5 lc "black"
set pm3d interp 3,3
set title "pm3d surface masked by\nconvex hull of the cluster"
splot $HULL using 1:2:(0) with mask, \
'mask_pm3d.dat' using 1:2:3 mask with pm3d
unset multiplot
# same thing as a png image for fallback if browser does not support webp
set term png font "Calisto MT,12" size 600,400
set output './html/figure_mask.png'
set multiplot layout 1,2 spacing 0.0 margins 0.05,0.95,0.0,0.85
set title "Cluster of points\n defining the mask region"
splot 'mask_pm3d.dat' using 1:2:3 with pm3d, \
'mask_pm3d.dat' using 1:2:(0) nogrid with points pt 7 ps .5 lc "black"
set pm3d interp 3,3
set title "pm3d surface masked by\nconvex hull of the cluster"
splot $HULL using 1:2:(0) with mask, \
'mask_pm3d.dat' using 1:2:3 mask with pm3d
unset multiplot
reset