diff --git a/.cvsignore b/.cvsignore index 397426d..1509b2a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -gnuplot-4.0.0.tar.gz +gnuplot-4.2.0.tar.gz diff --git a/gnuplot-4.0.0-x11segv.patch b/gnuplot-4.0.0-x11segv.patch deleted file mode 100644 index a026276..0000000 --- a/gnuplot-4.0.0-x11segv.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr gnuplot-4.0.0.orig/src/gplt_x11.c gnuplot-4.0.0/src/gplt_x11.c ---- gnuplot-4.0.0.orig/src/gplt_x11.c 2004-04-13 19:23:53.000000000 +0200 -+++ gnuplot-4.0.0/src/gplt_x11.c 2005-10-15 19:23:38.000000000 +0200 -@@ -1104,7 +1104,7 @@ - read_input() - { - static int rdbuf_size = 10 * Nbuf; -- static char rdbuf[10 * Nbuf - 1]; -+ static char rdbuf[10 * Nbuf]; - static int total_chars; - static int rdbuf_offset; - static int buf_offset; diff --git a/gnuplot-4.2.0-ver.patch b/gnuplot-4.2.0-ver.patch new file mode 100644 index 0000000..6693f20 --- /dev/null +++ b/gnuplot-4.2.0-ver.patch @@ -0,0 +1,11 @@ +--- gnuplot-4.2.0/docs/psdoc/Makefile.pom 2002-12-16 15:17:52.000000000 +0100 ++++ gnuplot-4.2.0/docs/psdoc/Makefile 2007-05-21 12:39:03.000000000 +0200 +@@ -2,7 +2,7 @@ + # Create ps_symbols.ps + # + +-top_srcdir = ../.. ++top_srcdir = + + all: ps_symbols.ps ps_fontfile_doc.ps + diff --git a/gnuplot.spec b/gnuplot.spec index c9db1a6..ec7c9df 100644 --- a/gnuplot.spec +++ b/gnuplot.spec @@ -1,16 +1,21 @@ +%define major 4 +%define minor 2 +%define patchlevel 0 + Summary: A program for plotting mathematical expressions and data Name: gnuplot -Version: 4.0.0 -Release: 18%{?dist} +Version: %{major}.%{minor}.%{patchlevel} +Release: 1%{?dist} License: distributable # Modifications are to be distributed as patches to the released version. Group: Applications/Engineering -Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source2: gnuplot-init.el -Patch0: gnuplot-4.0.0-x11segv.patch Patch1: gnuplot-4.0.0-refers_to.patch +Patch2: gnuplot-4.2.0-ver.patch BuildRequires: libpng-devel, tetex-latex, zlib-devel, libX11-devel, emacs BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel +Requires: latex2html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://www.gnuplot.info/ @@ -34,16 +39,15 @@ nicely interacts and integrates into emacs. %prep %setup -q -%patch0 -p 1 -b .x11segv %patch1 -p1 -b .refto +%patch2 -p1 -b .ver %build %configure --with-readline=gnu --with-png --without-linux-vga \ --enable-history-file -make %{?_smp_mflags} +make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" -rm demo/webify.pl cd docs make html cd psdoc @@ -69,16 +73,21 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc BUGS ChangeLog Copyright FAQ NEWS README TODO docs/gnuplot.html +%doc BUGS ChangeLog Copyright FAQ NEWS README TODO +#docs/gnuplot.html %doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.gpi tutorial/tutorial.dvi demo %dir %{_libexecdir}/gnuplot -%dir %{_libexecdir}/gnuplot/4.0 -%{_libexecdir}/gnuplot/4.0/gnuplot_x11 +%dir %{_libexecdir}/gnuplot/%{major}.%{minor} +%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11 %{_bindir}/gnuplot %{_mandir}/man1/gnuplot.1.gz %dir %{_datadir}/gnuplot -%dir %{_datadir}/gnuplot/4.0 -%{_datadir}/gnuplot/4.0/gnuplot.gih +%dir %{_datadir}/gnuplot/%{major}.%{minor} +%dir %{_datadir}/gnuplot/%{major}.%{minor}/PostScript +%{_datadir}/gnuplot/%{major}.%{minor}/PostScript/*.ps +%{_datadir}/gnuplot/%{major}.%{minor}/gnuplot.gih +%{_datadir}/texmf/tex/latex/gnuplot/gnuplot.cfg +%{_libdir}/X11/app-defaults/Gnuplot.app-defaults %{_infodir}/gnuplot.info.gz %files emacs @@ -93,6 +102,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon May 21 2007 Ivana Varekova - 4.2.0-1 +- Resolves: #231205 + update to 4.2.0 + spec changes from Tim Orling + * Mon Mar 26 2007 Ivana Varekova - 4.0.0-18 - add missing directories (#233838) diff --git a/sources b/sources index f11aa4d..6216588 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -66258443d9f93cc4f46b147dac33e63a gnuplot-4.0.0.tar.gz +f688a578ddb4c376fd7d91ce444a0745 gnuplot-4.2.0.tar.gz