forked from pool/gnuplot
Accepting request 283903 from Publishing
1 OBS-URL: https://build.opensuse.org/request/show/283903 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuplot?expand=0&rev=53
This commit is contained in:
commit
8a96973dd3
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 31 12:54:31 UTC 2015 - alinm.elena@gmail.com
|
||||||
|
|
||||||
|
- for versions greater than 13.1 we shall build against qt5
|
||||||
|
* cleaned up various rpmlint warning
|
||||||
|
* got rid of configure options obsoleted
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 21 07:29:58 UTC 2015 - burnus@net-b.de
|
Wed Jan 21 07:29:58 UTC 2015 - burnus@net-b.de
|
||||||
|
|
||||||
|
74
gnuplot.spec
74
gnuplot.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gnuplot
|
# spec file for package gnuplot
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -17,7 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_without h3d_gridbox
|
%bcond_without h3d_gridbox
|
||||||
|
%if %{suse_version} > 1310
|
||||||
|
%define qtver 5
|
||||||
|
%else
|
||||||
|
%define qtver 4
|
||||||
|
%endif
|
||||||
Name: gnuplot
|
Name: gnuplot
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -28,17 +32,24 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: gd-devel
|
BuildRequires: gd-devel
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libqt4-devel >= 4.5
|
BuildRequires: libqt5-linguist-devel
|
||||||
BuildRequires: netpbm
|
BuildRequires: netpbm
|
||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
%if %suse_version <= 1140
|
%if %qtver >= 5
|
||||||
BuildRequires: zziplib
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
%endif
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
|
BuildRequires: pkgconfig(Qt5Network)
|
||||||
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
||||||
|
BuildRequires: pkgconfig(Qt5Svg)
|
||||||
|
%else
|
||||||
|
BuildRequires: libqt4-devel >= 4.5
|
||||||
|
%endif
|
||||||
BuildRequires: latex2html
|
BuildRequires: latex2html
|
||||||
BuildRequires: texlive-latex
|
BuildRequires: texlive-latex
|
||||||
BuildRequires: texlive-tex4ht
|
BuildRequires: texlive-tex4ht
|
||||||
BuildRequires: texlive-ucs
|
BuildRequires: texlive-ucs
|
||||||
|
BuildRequires: zziplib
|
||||||
%if %suse_version >= 1220
|
%if %suse_version >= 1220
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
%endif
|
%endif
|
||||||
@ -51,24 +62,17 @@ BuildRequires: tex(fancyhdr.sty)
|
|||||||
BuildRequires: tex(pdftex.def)
|
BuildRequires: tex(pdftex.def)
|
||||||
BuildRequires: tex(subfigure.sty)
|
BuildRequires: tex(subfigure.sty)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: xorg-x11
|
BuildRequires: fdupes
|
||||||
BuildRequires: xorg-x11-devel
|
|
||||||
%if %suse_version > 1130
|
|
||||||
BuildRequires: wxWidgets-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: wxGTK-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
BuildRequires: plotutils-devel
|
BuildRequires: plotutils-devel
|
||||||
%else
|
BuildRequires: wxWidgets-devel
|
||||||
BuildRequires: plotutils
|
BuildRequires: xorg-x11
|
||||||
%endif
|
BuildRequires: xorg-x11-devel
|
||||||
Url: http://www.gnuplot.info/
|
Url: http://www.gnuplot.info/
|
||||||
Version: 5.0.0
|
Version: 5.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GNUplot a Function Plotting Utility
|
Summary: Function Plotting Utility and more
|
||||||
License: SUSE-Gnuplot and GPL-2.0+
|
License: SUSE-Gnuplot and GPL-2.0+
|
||||||
Group: Productivity/Graphics/Visualization/Graph
|
Group: Productivity/Graphics/Visualization/Graph
|
||||||
# http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.4/gnuplot-4.6.4.tar.gz/download
|
# http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.4/gnuplot-4.6.4.tar.gz/download
|
||||||
@ -102,10 +106,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
%define _x11inc %{_includedir}
|
%define _x11inc %{_includedir}
|
||||||
%define _appdef %{_x11data}/app-defaults
|
%define _appdef %{_x11data}/app-defaults
|
||||||
%endif
|
%endif
|
||||||
%if %suse_version > 1130
|
|
||||||
%define _use_internal_dependency_generator 0
|
%define _use_internal_dependency_generator 0
|
||||||
%define __find_requires %wx_requires
|
%define __find_requires %wx_requires
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GNUplot is a command line driven interactive function plotting utility.
|
GNUplot is a command line driven interactive function plotting utility.
|
||||||
@ -119,9 +121,7 @@ Group: Productivity/Graphics/Visualization/Graph
|
|||||||
Requires: %{name}
|
Requires: %{name}
|
||||||
Requires(post): %install_info_prereq
|
Requires(post): %install_info_prereq
|
||||||
Requires(postun): %install_info_prereq
|
Requires(postun): %install_info_prereq
|
||||||
%if 0%{?suse_version} >= 1120
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
GNUplot documentation files including the man and info pages. GNUplot
|
GNUplot documentation files including the man and info pages. GNUplot
|
||||||
@ -144,6 +144,7 @@ cp %{_sourcedir}/picins.sty docs
|
|||||||
%patch1 -p 0 -b .x11ovf
|
%patch1 -p 0 -b .x11ovf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
SECSVGA="-DSVGA_IS_SECURE=1"
|
SECSVGA="-DSVGA_IS_SECURE=1"
|
||||||
export CPPFLAGS="-I%{_x11inc} -I%{_includedir}/gd -DAppDefDir=\\\"%{_appdef}\\\""
|
export CPPFLAGS="-I%{_x11inc} -I%{_includedir}/gd -DAppDefDir=\\\"%{_appdef}\\\""
|
||||||
export CPPFLAGS="$CPPFLAGS -DGNUPLOT_LIB_DEFAULT=\\\"%{_docdir}/%{name}/demo\\\""
|
export CPPFLAGS="$CPPFLAGS -DGNUPLOT_LIB_DEFAULT=\\\"%{_docdir}/%{name}/demo\\\""
|
||||||
@ -157,8 +158,17 @@ cp %{_sourcedir}/picins.sty docs
|
|||||||
done
|
done
|
||||||
|
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%configure \
|
# sed -i "s;bin/uic;bin/uic-qt5;g" ./configure
|
||||||
--with-gcc \
|
# sed -i "s;bin/moc;bin/moc-qt5;g" ./configure
|
||||||
|
# sed -i "s;bin/rcc;bin/rcc-qt5;g" ./configure
|
||||||
|
# sed -i "s;bin/lrelease;bin/lrelease-qt5;g" ./configure
|
||||||
|
# sed -i "s;UIC=uic;UIC=uic-qt5;g" ./configure
|
||||||
|
# sed -i "s;MOC=moc;MOC=moc-qt5;g" ./configure
|
||||||
|
# sed -i "s;RCC=rcc;RCC=rcc-qt5;g" ./configure
|
||||||
|
# sed -i "s;LRELEASE=lrelease;LRELEASE=lrelease-qt5;g" ./configure
|
||||||
|
|
||||||
|
%configure \
|
||||||
|
--enable-stats \
|
||||||
--with-x \
|
--with-x \
|
||||||
--x-includes=%{_x11inc} \
|
--x-includes=%{_x11inc} \
|
||||||
--x-libraries=%{_x11lib}\
|
--x-libraries=%{_x11lib}\
|
||||||
@ -177,19 +187,18 @@ cp %{_sourcedir}/picins.sty docs
|
|||||||
--enable-h3d-gridbox \
|
--enable-h3d-gridbox \
|
||||||
%endif
|
%endif
|
||||||
--enable-backwards-compatibility\
|
--enable-backwards-compatibility\
|
||||||
--with-zlib \
|
|
||||||
--with-gd \
|
--with-gd \
|
||||||
--enable-thin-splines \
|
|
||||||
--without-row-help \
|
--without-row-help \
|
||||||
--with-kpsexpand \
|
--with-kpsexpand \
|
||||||
--with-plot=%{_libdir} \
|
--with-qt=qt%{qtver}
|
||||||
--enable-qt
|
|
||||||
%if %suse_version <= 1140
|
%if %{qtver} >= 5
|
||||||
make %{?_smp_mflags} RCC=/usr/bin/rcc LRELEASE=/usr/bin/lrelease
|
make %{?_smp_mflags} UIC=/usr/bin/uic-qt5 MOC=/usr/bin/moc-qt5 RCC=/usr/bin/rcc-qt5 LRELEASE=/usr/bin/lrelease-qt5
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%endif
|
%endif
|
||||||
pushd docs/
|
|
||||||
|
pushd docs/
|
||||||
make srcdir=. clean all html pdf gpcard.ps info
|
make srcdir=. clean all html pdf gpcard.ps info
|
||||||
pushd psdoc/
|
pushd psdoc/
|
||||||
make srcdir=. clean pdf
|
make srcdir=. clean pdf
|
||||||
@ -239,6 +248,7 @@ cp %{_sourcedir}/picins.sty docs
|
|||||||
install -m 0444 lisp/gnuplot*.el* %{buildroot}/%{_datadir}/emacs/site-lisp/
|
install -m 0444 lisp/gnuplot*.el* %{buildroot}/%{_datadir}/emacs/site-lisp/
|
||||||
mv %{buildroot}/%{_mandir}/man1/gnuplot-ja.1 %{buildroot}/%{_mandir}/ja/man1/gnuplot.1
|
mv %{buildroot}/%{_mandir}/man1/gnuplot-ja.1 %{buildroot}/%{_mandir}/ja/man1/gnuplot.1
|
||||||
rm -f %{buildroot}/%{_docdir}/gnuplot/demo/Makefile*
|
rm -f %{buildroot}/%{_docdir}/gnuplot/demo/Makefile*
|
||||||
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%post doc
|
%post doc
|
||||||
%install_info --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
|
%install_info --info-dir=.%{_infodir} .%{_infodir}/%{name}.info.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user