Only enable ws starting with EL9

This commit is contained in:
Daniel Berteaud 2023-10-23 09:25:51 +02:00
parent a17ebac507
commit 1e86605b62
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,9 @@ BuildRequires: gcc
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: make
%if 0%{?rhel} >= 9
BuildRequires: libwebsockets-devel
%endif
BuildRequires: pkgconfig(fuse)
BuildRequires: pkgconfig(glib-2.0)
@ -58,7 +60,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build
./autogen.sh
%configure --disable-static PYTHON=%{__python3}
%configure \
--disable-static \
%if 0%{?rhel} < 9
--disable-ws \
%endif
PYTHON=%{__python3}
%make_build