forked from pool/gnuplot
359 lines
15 KiB
RPMSpec
359 lines
15 KiB
RPMSpec
#
|
||
# spec file for package gnuplot (Version 4.2.0)
|
||
#
|
||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
# This file and all modifications and additions to the pristine
|
||
# package are under the same license as the package itself.
|
||
#
|
||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
#
|
||
|
||
# norootforbuild
|
||
|
||
Name: gnuplot
|
||
BuildRequires: cairo-devel freetype2-devel gcc-c++ gd-devel gtk2-devel latex2html libjpeg-devel libpng-devel pango-devel plotutils readline-devel texlive-latex wxGTK-devel xorg-x11-devel
|
||
URL: http://www.gnuplot.info/
|
||
License: BSD License and BSD-like
|
||
Group: Productivity/Graphics/Visualization/Graph
|
||
Autoreqprov: on
|
||
PreReq: %install_info_prereq
|
||
Version: 4.2.0
|
||
Release: 13
|
||
Summary: Function Plotting Utility
|
||
Source0: gnuplot-4.2.0.tar.bz2
|
||
Source2: gnuplot-fr.doc.bz2
|
||
Source3: README.whynot
|
||
Patch0: gnuplot-4.2.0.dif
|
||
Patch1: gnuplot-4.2.0-x11ovf.dif
|
||
Patch2: gnuplot-4.0.0-fonts.dif
|
||
Patch3: gnuplot-4.2.0-wxt.dif
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
||
%if "%_exec_prefix" == "/usr/X11R6"
|
||
%define _x11lib %{_exec_prefix}/%{_lib}
|
||
%define _x11data %{_exec_prefix}/lib/X11
|
||
%define _libx11 %{_x11data}
|
||
%define _x11inc %{_x11_prefix}/include
|
||
%define _appdef %{_x11data}/app-defaults
|
||
%else
|
||
%define _x11lib %{_libdir}
|
||
%define _x11data %{_datadir}/X11
|
||
%define _libx11 %{_exec_prefix}/lib/X11
|
||
%define _x11inc %{_includedir}
|
||
%define _appdef %{_x11data}/app-defaults
|
||
%endif
|
||
|
||
%description
|
||
GNUplot is a command line driven interactive function plotting utility.
|
||
GNUplot supports many different types of terminals, plotters, and
|
||
printers (including many color devices and pseudodevices like LaTeX)
|
||
and can easily be extended to include new devices.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
Mailingliste <bug-gnuplot@dartmouth.edu>
|
||
Mailingliste <info-gnuplot@dartmouth.edu>
|
||
Mailingliste <info-gnuplot-beta@dartmouth.edu>
|
||
Mailingliste <info-gnuplot-request@dartmouth.edu>
|
||
|
||
%prep
|
||
%setup -q -n gnuplot-%{version}
|
||
bunzip2 -dc $RPM_SOURCE_DIR/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc
|
||
test $? -eq 0 || exit 1
|
||
%patch -P 1 -p 0 -b .x11ovf
|
||
%patch -P 3 -p 0
|
||
%patch -P 0 -p 0
|
||
%patch -P 2 -p 0
|
||
|
||
%build
|
||
SECSVGA="-DSVGA_IS_SECURE=1"
|
||
export CPPFLAGS="-I/usr/X11R6/include -I/usr/include/gd"
|
||
export CFLAGS="${RPM_OPT_FLAGS} -pipe ${SECSVGA}"
|
||
export CXXFLAGS="$CFLAGS -fno-strict-aliasing"
|
||
export LDFLAGS="-L%{_x11lib}"
|
||
export ARCHLIB=%_lib
|
||
for f in docs/makefile*; do
|
||
test -e $f || continue
|
||
mv $f $f.bak
|
||
done
|
||
touch configure.in
|
||
rm -f config.status config.log config.cache configure aclocal.m4
|
||
aclocal -I m4
|
||
autoconf
|
||
./configure \
|
||
--prefix=/usr \
|
||
--mandir=%{_mandir} \
|
||
--infodir=%{_infodir} \
|
||
--libexecdir=/usr/%_lib \
|
||
--datadir=/usr/share/gnuplot \
|
||
--with-gcc \
|
||
--with-x \
|
||
--x-includes=%{_x11inc} \
|
||
--x-libraries=%{_x11lib} \
|
||
--with-readline=gnu \
|
||
--enable-history-file \
|
||
--with-linux-vga \
|
||
--with-gif=png \
|
||
--with-freetype=/usr/%_lib \
|
||
--with-zlib \
|
||
--with-gd \
|
||
--enable-thin-splines \
|
||
--without-row-help \
|
||
--with-kpsexpand \
|
||
--with-plot=/usr/%lib
|
||
make -f Makefile
|
||
pushd docs/
|
||
make -f Makefile srcdir=. clean all html pdf gpcard.ps
|
||
pushd psdoc/
|
||
make -f Makefile srcdir=. clean pdf
|
||
popd
|
||
popd
|
||
pushd tutorial/
|
||
make -f Makefile srcdir=. clean pdf
|
||
popd
|
||
|
||
%install
|
||
rm -rf $RPM_BUILD_ROOT
|
||
make DESTDIR=$RPM_BUILD_ROOT xresourcedir=%{_appdef} install
|
||
mkdir -p $RPM_BUILD_ROOT/%{_infodir}
|
||
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc
|
||
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/html
|
||
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/gnuplot/demo
|
||
rm -vf docs/htmldocs/*.pl
|
||
rm -vf docs/htmldocs/WARNINGS
|
||
rm -rvf demo/html
|
||
install -m 0444 docs/*.info* $RPM_BUILD_ROOT/%{_infodir}/
|
||
install -m 0444 docs/*.pdf $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/gpcard.ps $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/htmldocs/* $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/html
|
||
install -m 0444 docs/psdoc/*.pdf $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/psdoc/*.ps $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/psdoc/*.gpi $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/psdoc/*.doc $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 docs/psdoc/README $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 tutorial/*.pdf $RPM_BUILD_ROOT/%{_docdir}/gnuplot/doc/
|
||
install -m 0444 demo/* $RPM_BUILD_ROOT/%{_docdir}/gnuplot/demo/
|
||
install -m 0444 README* $RPM_BUILD_ROOT/%{_docdir}/gnuplot/
|
||
install -m 0444 Copyright $RPM_BUILD_ROOT/%{_docdir}/gnuplot/
|
||
install -m 0444 FAQ TODO VERSION $RPM_BUILD_ROOT/%{_docdir}/gnuplot/
|
||
install -m 0444 NEWS VERSION BUGS $RPM_BUILD_ROOT/%{_docdir}/gnuplot/
|
||
install -m 0444 %{SOURCE3} $RPM_BUILD_ROOT/%{_docdir}/gnuplot/
|
||
rm -f $RPM_BUILD_ROOT/%{_docdir}/gnuplot/demo/Makefile*
|
||
|
||
%clean
|
||
rm -rf $RPM_BUILD_ROOT
|
||
|
||
%post
|
||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||
|
||
%postun
|
||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%doc %{_docdir}/gnuplot/
|
||
/usr/bin/gnuplot
|
||
/usr/%{_lib}/gnuplot
|
||
%doc %{_infodir}/%{name}.info.gz
|
||
%doc %{_mandir}/man1/gnuplot.1.gz
|
||
/usr/share/gnuplot
|
||
/usr/share/texmf/tex/latex/gnuplot/
|
||
%{_appdef}/Gnuplot.app-defaults
|
||
|
||
%changelog
|
||
* Fri May 11 2007 - werner@suse.de
|
||
- Use setlocale(..,NULL) instead of gentenv() (bug #272915)
|
||
* Tue Apr 24 2007 - werner@suse.de
|
||
- Enable new but experimental wxt terminal (bug #266693)
|
||
* Fri Apr 20 2007 - aj@suse.de
|
||
- Use texlive for Building.
|
||
* Thu Apr 05 2007 - werner@suse.de
|
||
- Update to gnuplot 4.2.0
|
||
* NEW autogenerated read-only variables prefixed GPVAL_ and "show variables all"
|
||
* NEW Japanese language documentation - FAQ and User Manual
|
||
* NEW multi-platform and interactive wxWidgets terminal
|
||
* NEW windows terminal supports enhanced text mode
|
||
* NEW support for placement of individual rectangles within plot or canvas
|
||
* NEW command "set style increment user" allows customization of default lines
|
||
* NEW commands raise and lower
|
||
* NEW y and y2 axis label rotation can be explicitly controlled (2D plots only)
|
||
* NEW {no}enhanced flag can be applied to individual labels
|
||
* NEW suboption 'set pm3d interpolate' for bilinear interpolation of surfaces
|
||
* NEW 3D plots can read RGB color triples as part of input data
|
||
* NEW write command history file also for gnuplot's readline
|
||
* NEW more versatile key placement and arrangement
|
||
* NEW 'splot x*y with pm3d' no longer requires prior 'set pm3d'
|
||
* NEW store a sequence of plots to an animated gif (requires libgd > 2.0.28)
|
||
* NEW multi-byte font support in x11, controlled by the locale setting LC_CTYPE
|
||
* NEW control decimal sign conventions using locale setting LC_NUMERIC
|
||
* NEW pstex, pslatex and epslatex terminals share functionality with postscript
|
||
* NEW suboptions "set pm3d corners2color min|max"
|
||
* NEW suboption "set pm3d depthorder" does hidden-surface removal (sort of)
|
||
* NEW linetype colors via "lt {palette {frac <val> | cb <val>}}"
|
||
* NEW linetype colors via "lt {rgbcolor {"name" | "#RRGGBB"}}"
|
||
* NEW palette and rgb linetype colors apply to all 2D and 3D plot elements
|
||
* NEW user defined variables can contain strings
|
||
* NEW expression evaluation can manipulate and return strings
|
||
* NEW built-in string functions sprintf, gprintf, substr, strstrt, word, words
|
||
* NEW built-in string function system("shell command")
|
||
* NEW command line macro expansion @<stringvariablename>
|
||
* NEW automatic variable $# expanded to number of arguments after "call"
|
||
* NEW reading of (almost) arbitrary image binary files
|
||
* NEW plot styles "with image" and "with rgbimage"
|
||
* NEW plot style "with labels" reads text data along with X/Y/Z coordinates
|
||
* NEW plot style "with histograms" creates clustered or stacked histograms
|
||
* NEW auto-layout of multiplot using "set multiplot layout <rows>, <cols>"
|
||
* NEW variant of plot "with filledcurves" that fills the area between two curves
|
||
* NEW variant of "with filledcurves" that fills only above or below the curve
|
||
* NEW using options {x|y|z}ticlabels(<col>)
|
||
* NEW option to read plot title from data file: set key autotitle columnheader
|
||
* NEW command 'set termoption <foo>' changes single property of current terminal
|
||
* NEW png driver supports antialiasing and TrueColor images
|
||
* NEW encoding koi8-u
|
||
* NEW plot style "with vectors" applies to both 2D and 3D plots
|
||
* NEW plot style "with points" can read variable point size from input file
|
||
* NEW "set tics" can change most settings for {x|y|z|cb}tics at once
|
||
* NEW tic scale can be set per axis using "set {x|y|z|cb}tics scale"
|
||
* CHANGE history file is written by default
|
||
* CHANGE PostScript prolog and character encoding files now maintained separately
|
||
* CHANGE Placement of z-axis label in 3D plots is now equivalent to x and y axes
|
||
* CHANGE "set ticsscale" is deprecated, use "set tics scale" instead
|
||
* CHANGE gnuplot on x11 has mousing always enabled on startup
|
||
* CHANGE 'set datafile fortran' is now required in order to read D or Q constants
|
||
* CHANGE let the string in '{s}plot ... notitle "string"' be silently ignored
|
||
* CHANGE libgd versions 2.0.28+ support GIF images as well as PNG/JPEG
|
||
* CHANGE remove old (non-libgd) GIF and PNG drivers
|
||
* CHANGE X-resource gnuplot*ctrlq:on requires <ctrl>q to kill plot window
|
||
* CHANGE X-resource gnuplot*exportselection:off disables plot->clipboard export
|
||
* CHANGE prefer use of offset keyword in 'set [xyz]label "foo" offset -1,-1'
|
||
* CHANGE 'set table "outfile"; ...; unset table' replaces 'set term table'
|
||
* CHANGE 'defined(foo)' is deprecated; new syntax is 'exists("foo")'
|
||
* FIXED empty datafiles are not a fatal error
|
||
* FIXED setenv GNUTERM now works for png, jpeg, and gif drivers
|
||
* FIXED PostScript output can be restricted to Level 1 compatible features
|
||
* FIXED emf output is compatible with MSWin XP SP 2
|
||
* FIXED limit size of X11 requests to half the maximum allowed by the X display
|
||
* FIXED arrowheads drawn in solid lines even if the shaft is dotted (PostScript)
|
||
* FIXED estimate true effective length of strings in enhanced text mode
|
||
* FIXED clipping of filled curves
|
||
* Wed Aug 16 2006 - sndirsch@suse.de
|
||
- gnuplot-4.0.0-fonts.dif: fixed font paths for X.Org 7
|
||
* Tue Jan 31 2006 - werner@suse.de
|
||
- Fix stupid buffer overflow in x11 display program (bug #146870)
|
||
* Wed Jan 25 2006 - mls@suse.de
|
||
- converted neededforbuild to BuildRequires
|
||
* Thu Jul 21 2005 - werner@suse.de
|
||
- Re-use libgd because we get jpeg/png support with truetype font
|
||
and gif dummy support which is png output for term gif (#97208)
|
||
* Thu Feb 10 2005 - ro@suse.de
|
||
- remove dropped tetex subpackages from nfb
|
||
* Thu Apr 29 2004 - werner@suse.de
|
||
- Use GNU readline library
|
||
- Enable thin splines for 3D
|
||
* Tue Apr 27 2004 - werner@suse.de
|
||
- Update to gnuplot 4.0.0
|
||
* Tue Apr 20 2004 - meissner@suse.de
|
||
- aliasing fixes.
|
||
* Thu Oct 16 2003 - meissner@suse.de
|
||
- Do not build as root.
|
||
- Fixed lib64 handling to be more correct, since 32bit systems
|
||
can now have /lib64/ too.
|
||
* Fri Jun 13 2003 - coolo@suse.de
|
||
- fixing docs installation
|
||
* Thu Jun 12 2003 - coolo@suse.de
|
||
- use BuildRoot
|
||
* Thu Apr 24 2003 - ro@suse.de
|
||
- fix install_info --delete call and move from preun to postun
|
||
* Tue Mar 25 2003 - werner@suse.de
|
||
- Make mouse patch work as it should
|
||
* Mon Mar 24 2003 - werner@suse.de
|
||
- Update to gnuplot 3.7.3
|
||
- Port patches (if needed) to 3.7.3
|
||
* Fri Feb 28 2003 - werner@suse.de
|
||
- Fix bug #23417: use intall-info for info file
|
||
* Fri Nov 22 2002 - werner@suse.de
|
||
- Fix buffer overflow
|
||
- Fix svgalib handling for secure svgalibs
|
||
* Tue Sep 17 2002 - ro@suse.de
|
||
- removed bogus self-provides
|
||
* Fri Jul 26 2002 - adrian@suse.de
|
||
- fix neededforbuild
|
||
* Mon May 06 2002 - werner@suse.de
|
||
- Do some lib64 stuff
|
||
* Thu Apr 04 2002 - ro@suse.de
|
||
- more brackets for autoconf
|
||
* Sun Feb 10 2002 - ro@suse.de
|
||
- tar option for bz2 is now "j"
|
||
* Fri Feb 01 2002 - ro@suse.de
|
||
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
||
* Wed Jan 09 2002 - ro@suse.de
|
||
- fixed to compile (don't include fcntl when building the help)
|
||
* Sat Jan 05 2002 - kukuk@suse.de
|
||
- fix neededforbuild (plotutil -> plotutils)
|
||
* Tue Dec 18 2001 - werner@suse.de
|
||
- Be sure that the waitforinput function is called even if real
|
||
readline library is used or none interactive mode is on. Be sure
|
||
that the buffered token will be handles even if there is no
|
||
activity on stdin and set a time out to be not blocked (#12625)
|
||
* Mon Nov 12 2001 - ro@suse.de
|
||
- no svgalib
|
||
* Tue Jun 12 2001 - schwab@suse.de
|
||
- Fix for new autoconf.
|
||
* Tue May 08 2001 - mfabian@suse.de
|
||
- bzip2 sources
|
||
* Thu Mar 29 2001 - garloff@suse.de
|
||
- Prevent stupid rounding errors 10*10^23 instead of 10^24
|
||
in graphics.c: mant_exp()
|
||
* Fri Feb 23 2001 - ro@suse.de
|
||
- added readline/readline-devel to neededforbuild (split from bash)
|
||
* Sun Dec 03 2000 - schwab@suse.de
|
||
- Fix resource leak in X11 terminal driver.
|
||
* Wed Jun 21 2000 - werner@suse.de
|
||
- Add French doc (somewhat out of date)
|
||
* Wed Jun 07 2000 - werner@suse.de
|
||
- New version 3.7.1 with many bug fixes included
|
||
* Tue Jun 06 2000 - uli@suse.de
|
||
- moved docs to /usr/share/doc
|
||
* Fri Feb 25 2000 - kukuk@suse.de
|
||
- Move /usr/{info,man} -> /usr/share/{info,man}
|
||
* Mon Oct 11 1999 - ro@suse.de
|
||
- disabled gdlib support (we have png anyway and gd doesn't support
|
||
gif any more)
|
||
* Mon Sep 13 1999 - bs@suse.de
|
||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||
* Mon May 03 1999 - werner@suse.de
|
||
- Do not use system time because gnuplot interface isn't able
|
||
to handle summer time
|
||
- Use /tmp/ for temporaray files of demos
|
||
* Wed Mar 10 1999 - werner@suse.de
|
||
- Fix from one of the authors (HBB) to avoid buffer overflow
|
||
* Tue Mar 09 1999 - werner@suse.de
|
||
- New patchlevel 0.1 with patch gnuplot.990304 for security
|
||
* Tue Mar 02 1999 - werner@suse.de
|
||
- New version: 3.7
|
||
* add some official fixes
|
||
* fix the official fix of fit.c
|
||
* add gif and unixplot for output
|
||
* Sun Aug 23 1998 - bs@suse.de
|
||
- fixed "neededforbuild"
|
||
* Mon Jul 13 1998 - werner@suse.de
|
||
- New version: 3.5beta6.347
|
||
* Security fix for svga linux driver call
|
||
* Some enhancements
|
||
* Some bug fixes
|
||
* Thu Oct 23 1997 - werner@suse.de
|
||
- New version: 3.5beta6.336
|
||
* Mon Feb 03 1997 - werner@suse.de
|
||
- Update auf Version 3.5-beta-3.6pl319
|
||
- Diese Version hat splines und bezier zum Fit f<EFBFBD>r
|
||
von Messdaten.
|
||
- verschoben von ap1 -> xap1
|
||
* Thu Jan 02 1997 - werner@suse.de
|
||
- Neu Erstellen des Paketes:
|
||
Mit vollst<EFBFBD>ndiger Dokumentation und Beispielen
|
||
unter /usr/doc/packages/gnuplot/
|
||
- fig und bfig (xfig-Format 2.1)
|
||
wird von xfig in xfig-Format 3.2 konvertiert.
|