From 20fb5fb5b969e16059b71cd6c8a235c2aa2aefbb Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Thu, 19 May 2022 10:52:54 -0500 Subject: [PATCH] don't build against gsoap on el7 el7's gsoap is too old --- distros/redhat/zoneminder.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index a4692806e..6f1cc0595 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -19,6 +19,7 @@ # Newer php's keep json functions in a subpackage %if 0%{?fedora} || 0%{?rhel} >= 8 +%global with_gsoap 1 %global with_php_json 1 %endif @@ -93,7 +94,7 @@ BuildRequires: libv4l-devel BuildRequires: desktop-file-utils BuildRequires: gzip BuildRequires: zlib-devel -BuildRequires: gsoap-devel +%{?with_gsoap:BuildRequires: gsoap-devel} # ZoneMinder looks for and records the location of the ffmpeg binary during build BuildRequires: ffmpeg @@ -141,7 +142,7 @@ Requires: perl(Net::FTP) Requires: perl(LWP::Protocol::https) Requires: ca-certificates Requires: zip -Requires: gsoap +%{?with_gsoap:Requires: gsoap} %{?systemd_requires} Requires(post): %{_bindir}/gpasswd