Module: kamailio
Branch: master
Commit: 5392dbf8070abf36734d9c857924df91186bc2dd
URL:
https://github.com/kamailio/kamailio/commit/5392dbf8070abf36734d9c857924df9…
Author: Oded Arbel <oded(a)geek.co.il>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-03-14T11:01:53+01:00
pkg/kamailio/obs: Allow builders to disable wolfssl module [skip ci]
Building the WolfSSL module should be optional, even if it is on by default, builders
should be able to choose to not need to install 4th party repositories.
fixes #3781
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/5392dbf8070abf36734d9c857924df9…
Patch:
https://github.com/kamailio/kamailio/commit/5392dbf8070abf36734d9c857924df9…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 59f7360f9e2..8bbe77b63dd 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -29,6 +29,7 @@
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
+%bcond_without wolfssl
%endif
%if 0%{?rhel} == 7
@@ -65,6 +66,7 @@
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
+%bcond_without wolfssl
%endif
%if 0%{?rhel} == 8
@@ -111,6 +113,7 @@
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
+%bcond_without wolfssl
%endif
%if 0%{?rhel} == 9
@@ -157,6 +160,7 @@
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
+%bcond_without wolfssl
%endif
%if 0%{?suse_version}
@@ -186,6 +190,7 @@
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
+%bcond_without wolfssl
%endif
# build with openssl 1.1.1 on RHEL 7 based dists
@@ -1037,6 +1042,7 @@ BuildRequires: openssl-devel
TLS transport for Kamailio.
+%if %{with wolfssl}
%package tls_wolfssl
Summary: TLS transport for Kamailio based on wolfSSL
Group: %{PKGGROUP}
@@ -1044,6 +1050,7 @@ BuildRequires: pkgconfig(wolfssl)
%description tls_wolfssl
TLS transport for Kamailio based on wolfSSL
+%endif
%package tcpops
@@ -1291,7 +1298,11 @@ make every-module skip_modules="app_mono db_cassandra
db_oracle iptrtpproxy \
%if "%{?_unitdir}" != ""
ksystemd \
%endif
- ktls ktls_wolfssl kunixodbc kutils \
+ ktls \
+%if %{with wolfssl}
+ ktls_wolfssl \
+%endif
+ kunixodbc kutils \
%if %{with websocket}
kwebsocket \
%endif
@@ -1400,7 +1411,11 @@ make install-modules-all skip_modules="app_mono db_cassandra
db_oracle \
%if "%{?_unitdir}" != ""
ksystemd \
%endif
- ktls ktls_wolfssl kunixodbc kutils \
+ ktls \
+%if %{with wolfssl}
+ ktls_wolfssl \
+%endif
+ kunixodbc kutils \
%if %{with websocket}
kwebsocket \
%endif
@@ -2337,10 +2352,12 @@ fi
%{_libdir}/kamailio/modules/tls.so
+%if %{with wolfssl}
%files tls_wolfssl
%defattr(-,root,root)
%doc %{_docdir}/kamailio/modules/README.tls_wolfssl
%{_libdir}/kamailio/modules/tls_wolfssl.so
+%endif
%files tcpops