diff --git a/leptonica.spec b/leptonica.spec index 737ac66..3bff9ff 100644 --- a/leptonica.spec +++ b/leptonica.spec @@ -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