From d648a3fe80e68a663428c9ba9a1dd3ff7e1cdbc4 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 6 Jan 2021 00:11:29 +0100 Subject: [PATCH] add wxwidgets bcond --- gnuplot.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnuplot.spec b/gnuplot.spec index 86f2d6d..9769bc9 100644 --- a/gnuplot.spec +++ b/gnuplot.spec @@ -7,6 +7,7 @@ %bcond_with qt # Qt terminal %bcond_with qt4 # use Qt 4 instead of Qt 5 %bcond_with svga # Linux SVGA console driver +%bcond_without wxwidgets # wxWidgets terminal # Summary: A program for plotting mathematical expressions and data Summary(de.UTF-8): GNU-Plotter-Paket @@ -76,7 +77,7 @@ BuildRequires: texinfo BuildRequires: texlive BuildRequires: texlive-format-pdflatex BuildRequires: texlive-latex -BuildRequires: wxGTK2-unicode-devel >= 2.6 +%{?with_wxwidgets:BuildRequires: wxGTK2-unicode-devel >= 2.6} BuildRequires: xorg-lib-libX11-devel BuildRequires: zlib-devel Requires: cairo >= 1.6 @@ -159,6 +160,7 @@ Obsługa gnuplota dla LaTeXa. %configure \ WX_CONFIG=/usr/bin/wx-gtk2-unicode-config \ --enable-history-file \ + %{!?with_wxwidgets:--disable-wxwidgets} \ %{?with_caca:--with-caca} \ --with-gd \ %{?with_ggi:--with-ggi} \ -- 2.44.0