SHA256
1
0
forked from pool/gnuplot
gnuplot/gnuplot.spec

219 lines
7.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnuplot
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gnuplot
BuildRequires: cairo-devel emacs-nox freetype2-devel gcc-c++ gd-devel gtk2-devel latex2html libjpeg-devel netpbm pango-devel readline-devel texlive-latex xorg-x11 xorg-x11-devel
%if %suse_version > 1130
BuildRequires: wxWidgets-devel
%else
BuildRequires: wxGTK-devel
%endif
%if 0%{?suse_version} > 1120
BuildRequires: libpng14-devel lua-devel
%else
BuildRequires: libpng-devel
%endif
%if 0%{?suse_version} > 1110
BuildRequires: plotutils-devel
%else
BuildRequires: plotutils
%endif
Url: http://www.gnuplot.info/
License: BSD3c(or similar)
Group: Productivity/Graphics/Visualization/Graph
AutoReqProv: on
Accepting request 94492 from home:burnus:branches:Publishing The package might regress on SLE_10 as cairo >= 1.2 is needed and only cairo 1.0.2 is available. (Maybe it is no regresion - and cairo didn't work before, either.) The build currently fails on SLE_10 with some TeX/epstopdf error, on SLE_11/i586 with a texlive-2007/2010 conflict, on SLE_11/x86-64 with a tex.fmt error, and on oS 11.4 and oS11.3/i586, it cannot resolve libzzip which is needed by texlive. I think those are all problems related to an incomplete texlive*rpm build in "Publishing". - Update to gnuplot 4.4.4 * NEW boxxyerrors plot style now allows variable color * NEW splot with pm3d now allows variable rgb color * NEW "nonuniform matrix" indicates ascii data with explicit x, y * CHANGE columnhead(N) is a string-valued function, not a keyword * CHANGE Demarcate plots in svg output using <g id="Plot_#"><title>... * CHANGE xticlabels() works for binary data files as well as ascii * CHANGE "set key maxrows" now applies to 3D plots as well as 2D * CHANGE rewrite installation path rules for TeX files * FIX wxt terminal should now work on at least some flavors of OSX * FIX incorrect space allowed for outside left key box * FIX buffer overflow from enhanced text timefmt tic labels * FIX correction for offset in epochs when reading in time format "%s" * FIX discontinuity in defined palette limited by maxcolors * FIX initialization of svg pattern-fill definitions * FIX positioning of histogram bars when some data entries are missing * FIX emf terminal can handle UTF-8 encoding * FIX User-specified axis tick labels override auto labels in 3D just as in 2D * FIX `plot with labels` failed to skip labels with UNDEFINED coords * FIX NaN (not a number) implementation for Windows build * FIX work-around for poor scaling in pdfcairo pattern fill * FIX segfault if mismatch between palette sizes of successive terminals OBS-URL: https://build.opensuse.org/request/show/94492 OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=23
2011-11-30 18:17:21 +01:00
Version: 4.4.4
Release: 1
Summary: GNUplot a Function Plotting Utility
Source0: gnuplot-%{version}.tar.bz2
Source2: gnuplot-fr.doc.bz2
Source3: README.whynot
Patch0: gnuplot-4.4.1.dif
Patch1: gnuplot-4.4.0-x11ovf.dif
Patch2: gnuplot-4.4.0-fonts.dif
Patch4: gnuplot-4.4.0-demo.dif
Patch6: gnuplot-4.2.5-fix-format-errors.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 %{_exec_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
%if %suse_version > 1130
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%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.
%package doc
License: BSD3c(or similar)
Summary: Documentation of GNUplot
Group: Productivity/Graphics/Visualization/Graph
Requires: %{name}
Requires(post): %install_info_prereq
Requires(postun): %install_info_prereq
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
GNUplot documentation files including the man and info pages. 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.
%{name} documentation files including the man and info pages
%prep
%setup -q -n gnuplot-%{version}
bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc
test $? -eq 0 || exit 1
%patch -P 1 -p 0 -b .x11ovf
%patch -P 2 -p 0 -b .font
%patch -P 4 -p 0
%patch -P 6 -p 0
%patch -P 0 -p 0
%build
SECSVGA="-DSVGA_IS_SECURE=1"
export CPPFLAGS="-I%{_x11inc} -I%{_includedir}/gd -DAppDefDir=\\\"%{_appdef}\\\""
export CPPFLAGS="$CPPFLAGS -DGNUPLOT_LIB_DEFAULT=\\\"%{_docdir}/%{name}/demo\\\""
export CFLAGS="${RPM_OPT_FLAGS} -pipe ${SECSVGA} -D_GNU_SOURCE"
export CXXFLAGS="$CFLAGS -fno-strict-aliasing"
export LDFLAGS="-L%{_x11lib} -Wl,--as-needed"
export ARCHLIB=%_lib
for f in docs/makefile*; do
test -e $f || continue
mv $f $f.bak
done
Accepting request 94492 from home:burnus:branches:Publishing The package might regress on SLE_10 as cairo >= 1.2 is needed and only cairo 1.0.2 is available. (Maybe it is no regresion - and cairo didn't work before, either.) The build currently fails on SLE_10 with some TeX/epstopdf error, on SLE_11/i586 with a texlive-2007/2010 conflict, on SLE_11/x86-64 with a tex.fmt error, and on oS 11.4 and oS11.3/i586, it cannot resolve libzzip which is needed by texlive. I think those are all problems related to an incomplete texlive*rpm build in "Publishing". - Update to gnuplot 4.4.4 * NEW boxxyerrors plot style now allows variable color * NEW splot with pm3d now allows variable rgb color * NEW "nonuniform matrix" indicates ascii data with explicit x, y * CHANGE columnhead(N) is a string-valued function, not a keyword * CHANGE Demarcate plots in svg output using <g id="Plot_#"><title>... * CHANGE xticlabels() works for binary data files as well as ascii * CHANGE "set key maxrows" now applies to 3D plots as well as 2D * CHANGE rewrite installation path rules for TeX files * FIX wxt terminal should now work on at least some flavors of OSX * FIX incorrect space allowed for outside left key box * FIX buffer overflow from enhanced text timefmt tic labels * FIX correction for offset in epochs when reading in time format "%s" * FIX discontinuity in defined palette limited by maxcolors * FIX initialization of svg pattern-fill definitions * FIX positioning of histogram bars when some data entries are missing * FIX emf terminal can handle UTF-8 encoding * FIX User-specified axis tick labels override auto labels in 3D just as in 2D * FIX `plot with labels` failed to skip labels with UNDEFINED coords * FIX NaN (not a number) implementation for Windows build * FIX work-around for poor scaling in pdfcairo pattern fill * FIX segfault if mismatch between palette sizes of successive terminals OBS-URL: https://build.opensuse.org/request/show/94492 OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=23
2011-11-30 18:17:21 +01:00
%if 0%{?suse_version} >= 1110
touch configure.in
rm -f config.status config.log config.cache configure aclocal.m4
aclocal -I m4
autoconf
Accepting request 94492 from home:burnus:branches:Publishing The package might regress on SLE_10 as cairo >= 1.2 is needed and only cairo 1.0.2 is available. (Maybe it is no regresion - and cairo didn't work before, either.) The build currently fails on SLE_10 with some TeX/epstopdf error, on SLE_11/i586 with a texlive-2007/2010 conflict, on SLE_11/x86-64 with a tex.fmt error, and on oS 11.4 and oS11.3/i586, it cannot resolve libzzip which is needed by texlive. I think those are all problems related to an incomplete texlive*rpm build in "Publishing". - Update to gnuplot 4.4.4 * NEW boxxyerrors plot style now allows variable color * NEW splot with pm3d now allows variable rgb color * NEW "nonuniform matrix" indicates ascii data with explicit x, y * CHANGE columnhead(N) is a string-valued function, not a keyword * CHANGE Demarcate plots in svg output using <g id="Plot_#"><title>... * CHANGE xticlabels() works for binary data files as well as ascii * CHANGE "set key maxrows" now applies to 3D plots as well as 2D * CHANGE rewrite installation path rules for TeX files * FIX wxt terminal should now work on at least some flavors of OSX * FIX incorrect space allowed for outside left key box * FIX buffer overflow from enhanced text timefmt tic labels * FIX correction for offset in epochs when reading in time format "%s" * FIX discontinuity in defined palette limited by maxcolors * FIX initialization of svg pattern-fill definitions * FIX positioning of histogram bars when some data entries are missing * FIX emf terminal can handle UTF-8 encoding * FIX User-specified axis tick labels override auto labels in 3D just as in 2D * FIX `plot with labels` failed to skip labels with UNDEFINED coords * FIX NaN (not a number) implementation for Windows build * FIX work-around for poor scaling in pdfcairo pattern fill * FIX segfault if mismatch between palette sizes of successive terminals OBS-URL: https://build.opensuse.org/request/show/94492 OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=23
2011-11-30 18:17:21 +01:00
%endif
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--libexecdir=%{_libdir} \
--datadir=%{_datadir} \
--with-gcc \
--with-x \
--x-includes=%{_x11inc} \
--x-libraries=%{_x11lib}\
--with-x-app-defaultdir=%{_appdef}\
--with-readline=gnu \
--enable-history-file \
--with-linux-vga \
--with-gif=png \
--with-freetype=%{_libdir}\
--enable-x11-mbfonts \
--enable-h3d-quadtree \
--with-zlib \
--with-gd \
--enable-thin-splines \
--without-row-help \
--with-kpsexpand \
--with-plot=%{_libdir}
make %{?jobs:-j%jobs}
pushd docs/
make srcdir=. clean all html pdf gpcard.ps
pushd psdoc/
make srcdir=. clean pdf
popd
popd
pushd tutorial/
make srcdir=. clean pdf
popd
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} appdefaultdir=%{_appdef} install
mkdir -p %{buildroot}/%{_infodir}
mkdir -p %{buildroot}/%{_docdir}/gnuplot/doc
mkdir -p %{buildroot}/%{_docdir}/gnuplot/doc/html
mkdir -p %{buildroot}/%{_docdir}/gnuplot/demo
rm -vf docs/htmldocs/images.{aux,idx,log,out,tex}
rm -vf docs/htmldocs/*.pl
rm -vf docs/htmldocs/*.sty
rm -vf docs/htmldocs/WARNINGS
rm -vf docs/htmldocs/VERSION
rm -rvf demo/html
install -m 0444 docs/*.info* %{buildroot}/%{_infodir}/
install -m 0444 docs/*.pdf %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/gpcard.ps %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/htmldocs/* %{buildroot}/%{_docdir}/gnuplot/doc/html
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/*.gpi %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/psdoc/*.doc %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 docs/psdoc/README %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 tutorial/*.pdf %{buildroot}/%{_docdir}/gnuplot/doc/
install -m 0444 demo/* %{buildroot}/%{_docdir}/gnuplot/demo/
install -m 0444 README* %{buildroot}/%{_docdir}/gnuplot/
install -m 0444 Copyright %{buildroot}/%{_docdir}/gnuplot/
install -m 0444 TODO VERSION %{buildroot}/%{_docdir}/gnuplot/
install -m 0444 NEWS BUGS %{buildroot}/%{_docdir}/gnuplot/
install -m 0444 %{SOURCE3} %{buildroot}/%{_docdir}/gnuplot/
rm -f %{buildroot}/%{_docdir}/gnuplot/demo/Makefile*
rm -f %{buildroot}/%{_datadir}/emacs/site-lisp/info-look.*
%clean
rm -rf %{buildroot}
%post doc
%install_info --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
%postun doc
%install_info_delete --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
%{_bindir}/gnuplot
%{_libdir}/gnuplot
%{_datadir}/gnuplot
%{_datadir}/texmf/tex/latex/gnuplot/
%{_datadir}/emacs/site-lisp/
%{_appdef}/Gnuplot
%files doc
%defattr(-,root,root,-)
%doc %{_docdir}/gnuplot/
%doc %{_infodir}/%{name}.info.gz
%doc %{_mandir}/man1/gnuplot.1.gz
%changelog