SHA256
1
0
forked from pool/gnuplot

Accepting request 292328 from home:jengelh:branches:Publishing

- Enable CACA output module
- Build with wxWidgets 3. Add patch gnuplot-wx3.diff

OBS-URL: https://build.opensuse.org/request/show/292328
OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=63
This commit is contained in:
2015-03-28 09:00:57 +00:00
committed by Git OBS Bridge
parent 71f4391fed
commit 52318a5d62
3 changed files with 40 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ BuildRequires: libqt5-linguist-devel
BuildRequires: netpbm
BuildRequires: pango-devel
BuildRequires: readline-devel
BuildRequires: pkgconfig(caca)
%if %qtver >= 5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
@@ -66,7 +67,13 @@ BuildRequires: fdupes
BuildRequires: libpng-devel
BuildRequires: lua-devel
BuildRequires: plotutils-devel
%if 0%{?suse_version} > 0 && %{?suse_version} <= 1310
BuildRequires: wxWidgets-devel
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%else
BuildRequires: wxWidgets-devel >= 3
%endif
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
Url: http://www.gnuplot.info/
@@ -91,6 +98,7 @@ Patch0: gnuplot-4.6.0.dif
Patch1: gnuplot-4.4.0-x11ovf.dif
Patch2: gnuplot-4.6.0-fonts.diff
Patch4: gnuplot-4.6.0-demo.diff
Patch5: gnuplot-wx3.diff
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"
@@ -106,8 +114,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _x11inc %{_includedir}
%define _appdef %{_x11data}/app-defaults
%endif
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
%description
GNUplot is a command line driven interactive function plotting utility.
@@ -133,8 +139,7 @@ and can easily be extended to include new devices.
%{name} documentation files including the man and info pages
%prep
%setup -q
%setup -T -D -a 4
%setup -qa 4
bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc
test $? -eq 0 || exit 1
cp %{_sourcedir}/picins.sty docs
@@ -142,8 +147,10 @@ cp %{_sourcedir}/picins.sty docs
%patch4 -p 0 -b .demo
%patch0 -p 0 -b .0
%patch1 -p 0 -b .x11ovf
%patch5 -p1
%build
autoreconf -fi
SECSVGA="-DSVGA_IS_SECURE=1"
export CPPFLAGS="-I%{_x11inc} -I%{_includedir}/gd -DAppDefDir=\\\"%{_appdef}\\\""
@@ -190,6 +197,7 @@ cp %{_sourcedir}/picins.sty docs
--with-gd \
--without-row-help \
--with-kpsexpand \
--with-caca \
--with-qt=qt%{qtver}
%if %{qtver} >= 5