Make gnuplot build dependency optional
No changes to the build process are needed. Gnuplot is used only for several tests, which will get skipped automatically if gnuplot is not present. Allows to reduce dependencies, esp. on RHEL.
This commit is contained in:
parent
01c89b7216
commit
a372b2ebd3
@ -1,3 +1,9 @@
|
||||
%if 0%{?rhel} >= 9
|
||||
%bcond_with gnuplot
|
||||
%else
|
||||
%bcond_without gnuplot
|
||||
%endif
|
||||
|
||||
Name: leptonica
|
||||
Version: 1.80.0
|
||||
Release: 2%{?dist}
|
||||
@ -18,8 +24,10 @@ BuildRequires: libtiff-devel
|
||||
BuildRequires: libwebp-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
# Needed for baseline_reg test
|
||||
# Needed for several tests
|
||||
%if %{with gnuplot}
|
||||
BuildRequires: gnuplot
|
||||
%endif
|
||||
BuildRequires: make
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user