2007-01-16 00:15:11 +01:00
|
|
|
#
|
2011-04-21 11:22:18 +02:00
|
|
|
# spec file for package gnuplot
|
2007-01-16 00:15:11 +01:00
|
|
|
#
|
2014-02-26 21:17:25 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:11 +01:00
|
|
|
#
|
2009-01-16 01:31:55 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:15:11 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-13 16:43:25 +01:00
|
|
|
|
2012-04-04 14:15:08 +02:00
|
|
|
%bcond_without h3d_gridbox
|
|
|
|
|
2007-01-16 00:15:11 +01:00
|
|
|
Name: gnuplot
|
2012-04-02 17:18:13 +02:00
|
|
|
BuildRequires: ImageMagick
|
2011-12-03 13:56:02 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: emacs-nox
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gd-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
2012-04-02 16:02:56 +02:00
|
|
|
BuildRequires: libqt4-devel >= 4.5
|
2011-12-03 13:56:02 +01:00
|
|
|
BuildRequires: netpbm
|
|
|
|
BuildRequires: pango-devel
|
|
|
|
BuildRequires: readline-devel
|
2012-04-02 17:18:13 +02:00
|
|
|
%if %suse_version <= 1140
|
|
|
|
BuildRequires: zziplib
|
|
|
|
%endif
|
2011-12-03 13:56:02 +01:00
|
|
|
BuildRequires: texlive-latex
|
2012-04-02 17:18:13 +02:00
|
|
|
BuildRequires: texlive-tex4ht
|
2013-04-01 20:27:45 +02:00
|
|
|
%if %suse_version >= 1220
|
2012-07-23 00:43:08 +02:00
|
|
|
BuildRequires: makeinfo
|
2013-04-01 20:27:45 +02:00
|
|
|
%endif
|
|
|
|
%if %suse_version > 1220
|
2012-07-10 11:49:03 +02:00
|
|
|
BuildRequires: texlive-dvips
|
|
|
|
BuildRequires: texlive-epstopdf
|
2012-07-23 00:43:08 +02:00
|
|
|
BuildRequires: texlive-tex
|
2012-07-23 11:04:36 +02:00
|
|
|
BuildRequires: texlive-texinfo
|
2012-07-10 11:49:03 +02:00
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
BuildRequires: tex(pdftex.def)
|
|
|
|
BuildRequires: tex(subfigure.sty)
|
|
|
|
%endif
|
2011-12-03 13:56:02 +01:00
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-devel
|
2011-01-17 15:53:01 +01:00
|
|
|
%if %suse_version > 1130
|
|
|
|
BuildRequires: wxWidgets-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: wxGTK-devel
|
|
|
|
%endif
|
2010-04-07 21:19:15 +02:00
|
|
|
BuildRequires: libpng-devel
|
2012-10-16 13:16:23 +02:00
|
|
|
BuildRequires: lua-devel
|
2009-05-28 04:44:00 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: plotutils-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: plotutils
|
|
|
|
%endif
|
2007-12-14 16:29:45 +01:00
|
|
|
Url: http://www.gnuplot.info/
|
2014-10-28 22:27:23 +01:00
|
|
|
Version: 4.6.6
|
2011-12-03 13:56:02 +01:00
|
|
|
Release: 0
|
2009-05-28 04:44:00 +02:00
|
|
|
Summary: GNUplot a Function Plotting Utility
|
2012-02-13 16:43:25 +01:00
|
|
|
License: SUSE-Gnuplot and GPL-2.0+
|
|
|
|
Group: Productivity/Graphics/Visualization/Graph
|
2013-11-02 04:10:21 +01:00
|
|
|
# http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.4/gnuplot-4.6.4.tar.gz/download
|
2012-04-02 16:02:56 +02:00
|
|
|
Source0: gnuplot-%{version}.tar.gz
|
2007-01-16 00:15:11 +01:00
|
|
|
Source2: gnuplot-fr.doc.bz2
|
|
|
|
Source3: README.whynot
|
2012-04-02 17:18:13 +02:00
|
|
|
Patch0: gnuplot-4.6.0.dif
|
2010-04-07 21:19:15 +02:00
|
|
|
Patch1: gnuplot-4.4.0-x11ovf.dif
|
2012-04-02 16:02:56 +02:00
|
|
|
Patch2: gnuplot-4.6.0-fonts.diff
|
|
|
|
Patch4: gnuplot-4.6.0-demo.diff
|
2012-07-03 09:28:52 +02:00
|
|
|
Patch8: gnuplot-4.6.0-backtick.diff
|
2007-01-16 00:15:11 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-04-12 17:32:27 +02:00
|
|
|
%{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}
|
2010-09-14 17:16:45 +02:00
|
|
|
%define _x11inc %{_exec_prefix}/include
|
2007-04-12 17:32:27 +02:00
|
|
|
%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
|
2011-01-17 15:53:01 +01:00
|
|
|
%if %suse_version > 1130
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
|
|
|
%endif
|
2007-01-16 00:15:11 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2009-05-28 04:44:00 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation of GNUplot
|
2012-02-13 16:43:25 +01:00
|
|
|
Group: Productivity/Graphics/Visualization/Graph
|
2009-05-28 04:44:00 +02:00
|
|
|
Requires: %{name}
|
2010-04-07 21:19:15 +02:00
|
|
|
Requires(post): %install_info_prereq
|
|
|
|
Requires(postun): %install_info_prereq
|
2010-09-18 01:08:13 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2009-05-28 04:44:00 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2007-01-16 00:15:11 +01:00
|
|
|
%prep
|
2012-05-30 18:26:21 +02:00
|
|
|
%setup -q
|
2008-03-14 17:41:50 +01:00
|
|
|
bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc
|
2007-01-16 00:15:11 +01:00
|
|
|
test $? -eq 0 || exit 1
|
2012-04-02 16:02:56 +02:00
|
|
|
%patch1 -p 0 -b .x11ovf
|
2012-04-02 17:18:13 +02:00
|
|
|
%patch2 -p 0 -b .font
|
|
|
|
%patch4 -p 0 -b .demo
|
2012-07-03 09:28:52 +02:00
|
|
|
%patch8 -p 0 -b .btick
|
2012-04-02 17:18:13 +02:00
|
|
|
%patch0 -p 0 -b .0
|
2007-01-16 00:15:11 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
SECSVGA="-DSVGA_IS_SECURE=1"
|
2008-03-27 21:57:09 +01:00
|
|
|
export CPPFLAGS="-I%{_x11inc} -I%{_includedir}/gd -DAppDefDir=\\\"%{_appdef}\\\""
|
2009-06-15 16:35:00 +02:00
|
|
|
export CPPFLAGS="$CPPFLAGS -DGNUPLOT_LIB_DEFAULT=\\\"%{_docdir}/%{name}/demo\\\""
|
2010-04-07 21:19:15 +02:00
|
|
|
export CFLAGS="${RPM_OPT_FLAGS} -pipe ${SECSVGA} -D_GNU_SOURCE"
|
2007-04-24 13:56:15 +02:00
|
|
|
export CXXFLAGS="$CFLAGS -fno-strict-aliasing"
|
2010-04-07 21:19:15 +02:00
|
|
|
export LDFLAGS="-L%{_x11lib} -Wl,--as-needed"
|
2007-01-16 00:15:11 +01:00
|
|
|
export ARCHLIB=%_lib
|
|
|
|
for f in docs/makefile*; do
|
|
|
|
test -e $f || continue
|
|
|
|
mv $f $f.bak
|
|
|
|
done
|
2012-05-30 18:26:21 +02:00
|
|
|
|
|
|
|
autoreconf -fi
|
2012-02-13 16:55:45 +01:00
|
|
|
%configure \
|
2007-01-16 00:15:11 +01:00
|
|
|
--with-gcc \
|
|
|
|
--with-x \
|
2008-03-14 17:41:50 +01:00
|
|
|
--x-includes=%{_x11inc} \
|
|
|
|
--x-libraries=%{_x11lib}\
|
2010-05-12 18:26:55 +02:00
|
|
|
--with-x-app-defaultdir=%{_appdef}\
|
2007-01-16 00:15:11 +01:00
|
|
|
--with-readline=gnu \
|
|
|
|
--enable-history-file \
|
|
|
|
--with-linux-vga \
|
2012-04-02 17:18:13 +02:00
|
|
|
--with-bitmap-terminals \
|
2008-03-14 17:41:50 +01:00
|
|
|
--with-freetype=%{_libdir}\
|
2007-05-31 21:34:47 +02:00
|
|
|
--enable-x11-mbfonts \
|
2012-04-04 14:15:08 +02:00
|
|
|
%if ! %{with h3d_gridbox}
|
2007-12-14 16:29:45 +01:00
|
|
|
--enable-h3d-quadtree \
|
2012-04-02 17:18:13 +02:00
|
|
|
--disable-h3d-gridbox \
|
|
|
|
%else
|
|
|
|
--disable-h3d-quadtree \
|
|
|
|
--enable-h3d-gridbox \
|
|
|
|
%endif
|
|
|
|
--enable-backwards-compatibility\
|
2007-01-16 00:15:11 +01:00
|
|
|
--with-zlib \
|
|
|
|
--with-gd \
|
|
|
|
--enable-thin-splines \
|
2007-04-12 17:32:27 +02:00
|
|
|
--without-row-help \
|
|
|
|
--with-kpsexpand \
|
2012-04-02 16:02:56 +02:00
|
|
|
--with-plot=%{_libdir} \
|
|
|
|
--enable-qt
|
2012-04-02 17:38:11 +02:00
|
|
|
%if %suse_version <= 1140
|
2012-05-30 18:26:21 +02:00
|
|
|
make %{?_smp_mflags} RCC=/usr/bin/rcc LRELEASE=/usr/bin/lrelease
|
2012-04-02 17:38:11 +02:00
|
|
|
%else
|
2012-05-30 18:26:21 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-04-02 17:38:11 +02:00
|
|
|
%endif
|
2007-01-16 00:15:11 +01:00
|
|
|
pushd docs/
|
2009-05-28 04:44:00 +02:00
|
|
|
make srcdir=. clean all html pdf gpcard.ps
|
2007-01-16 00:15:11 +01:00
|
|
|
pushd psdoc/
|
2009-05-28 04:44:00 +02:00
|
|
|
make srcdir=. clean pdf
|
2007-01-16 00:15:11 +01:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
pushd tutorial/
|
2009-05-28 04:44:00 +02:00
|
|
|
make srcdir=. clean pdf
|
2007-01-16 00:15:11 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2008-03-14 17:41:50 +01:00
|
|
|
rm -rf %{buildroot}
|
2008-03-27 21:57:09 +01:00
|
|
|
make DESTDIR=%{buildroot} appdefaultdir=%{_appdef} install
|
2008-03-14 17:41:50 +01:00
|
|
|
mkdir -p %{buildroot}/%{_infodir}
|
|
|
|
mkdir -p %{buildroot}/%{_docdir}/gnuplot/doc
|
|
|
|
mkdir -p %{buildroot}/%{_docdir}/gnuplot/doc/html
|
|
|
|
mkdir -p %{buildroot}/%{_docdir}/gnuplot/demo
|
2007-05-31 21:34:47 +02:00
|
|
|
rm -vf docs/htmldocs/images.{aux,idx,log,out,tex}
|
2007-04-12 17:32:27 +02:00
|
|
|
rm -vf docs/htmldocs/*.pl
|
2007-05-31 21:34:47 +02:00
|
|
|
rm -vf docs/htmldocs/*.sty
|
2007-04-12 17:32:27 +02:00
|
|
|
rm -vf docs/htmldocs/WARNINGS
|
2007-05-31 21:34:47 +02:00
|
|
|
rm -vf docs/htmldocs/VERSION
|
2007-04-12 17:32:27 +02:00
|
|
|
rm -rvf demo/html
|
2008-03-14 17:41:50 +01:00
|
|
|
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/
|
2012-11-06 13:17:21 +01:00
|
|
|
install -m 0444 VERSION %{buildroot}/%{_docdir}/gnuplot/
|
2010-04-07 21:19:15 +02:00
|
|
|
install -m 0444 NEWS BUGS %{buildroot}/%{_docdir}/gnuplot/
|
2008-03-14 17:41:50 +01:00
|
|
|
install -m 0444 %{SOURCE3} %{buildroot}/%{_docdir}/gnuplot/
|
|
|
|
rm -f %{buildroot}/%{_docdir}/gnuplot/demo/Makefile*
|
2010-04-06 22:38:04 +02:00
|
|
|
rm -f %{buildroot}/%{_datadir}/emacs/site-lisp/info-look.*
|
2007-01-16 00:15:11 +01:00
|
|
|
|
2009-05-28 04:44:00 +02:00
|
|
|
%post doc
|
2008-03-14 17:41:50 +01:00
|
|
|
%install_info --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
|
2007-01-16 00:15:11 +01:00
|
|
|
|
2009-05-28 04:44:00 +02:00
|
|
|
%postun doc
|
2008-03-14 17:41:50 +01:00
|
|
|
%install_info_delete --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
|
2007-01-16 00:15:11 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-03-14 17:41:50 +01:00
|
|
|
%{_bindir}/gnuplot
|
2012-02-13 16:55:45 +01:00
|
|
|
%{_libexecdir}/gnuplot
|
2007-05-31 21:34:47 +02:00
|
|
|
%{_datadir}/gnuplot
|
|
|
|
%{_datadir}/texmf/tex/latex/gnuplot/
|
2010-04-06 22:38:04 +02:00
|
|
|
%{_datadir}/emacs/site-lisp/
|
2007-09-06 22:19:11 +02:00
|
|
|
%{_appdef}/Gnuplot
|
2007-01-16 00:15:11 +01:00
|
|
|
|
2009-05-28 04:44:00 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_docdir}/gnuplot/
|
|
|
|
%doc %{_infodir}/%{name}.info.gz
|
|
|
|
%doc %{_mandir}/man1/gnuplot.1.gz
|
|
|
|
|
2007-04-12 17:32:27 +02:00
|
|
|
%changelog
|