|
@@ -221,7 +221,7 @@ happened, on your systems and applications.
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%setup -q -n %{name}-%{version}
|
|
export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-mosquitto.sh ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-mosquitto.sh ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
-%if 0%{?centos_ver} >= 8 || 0%{?fedora}
|
|
|
|
|
|
+%if 0%{?centos_ver} < 8 || 0%{!?fedora:1}
|
|
export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-lws.sh ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-lws.sh ${RPM_BUILD_DIR}/%{name}-%{version}
|
|
%endif
|
|
%endif
|
|
# Only bundle libJudy if this isn't Fedora or SUSE
|
|
# Only bundle libJudy if this isn't Fedora or SUSE
|
|
@@ -239,7 +239,7 @@ autoreconf -ivf
|
|
%if 0%{!?fedora:1} && 0%{!?suse_version:1}
|
|
%if 0%{!?fedora:1} && 0%{!?suse_version:1}
|
|
--with-libJudy=externaldeps/libJudy \
|
|
--with-libJudy=externaldeps/libJudy \
|
|
%endif
|
|
%endif
|
|
- %if 0%{?centos_ver} >= 8 || 0%{?fedora}
|
|
|
|
|
|
+ %if 0%{?centos_ver} < 8 || 0%{!?fedora:1}
|
|
--with-bundled-lws=externaldeps/libwebsockets \
|
|
--with-bundled-lws=externaldeps/libwebsockets \
|
|
%endif
|
|
%endif
|
|
--prefix="%{_prefix}" \
|
|
--prefix="%{_prefix}" \
|