@@ -70,7 +70,6 @@ BuildRequires: gcc
7070Requires: m4
7171BuildRequires: unixODBC-devel
7272BuildRequires: openssl-devel
73- BuildRequires: wolfssl-devel
7473BuildRequires: expat-devel
7574BuildRequires: xmlrpc-c-devel
7675BuildRequires: libconfuse-devel
@@ -856,8 +855,13 @@ This package provides the SQLite database schema files for OpenSIPS.
856855Summary: STIR/SHAKEN support for OpenSIPS
857856Group: System Environment/Daemons
858857Requires: %{name } = %{version }-%{release }
858+ %if 0%{?_with_wolfssl:1 }
859859Requires: wolfssl
860860BuildRequires: wolfssl-devel
861+ %else
862+ Requires: openssl
863+ BuildRequires: openssl-devel
864+ %endif
861865
862866%description stir-shaken-module
863867OpenSIPS is a very fast and flexible SIP (RFC3261)
@@ -1008,14 +1012,14 @@ This package provides the SIP to XMPP IM translator module for OpenSIPS.
10081012%setup -q -n %{name }-%{version }
10091013
10101014%build
1011- LOCALBASE=/usr NICER=0 CFLAGS=" %{optflags}" LDFLAGS=" %{?__global_ldflags}" %{? _with_python3:PYTHON=python3} %{? _with_db_oracle:ORAHOME=" $ORACLE_HOME " } %{__make} all modules-readme %{?_smp_mflags } TLS=1 \
1015+ LOCALBASE=/usr NICER=0 CFLAGS=" %{optflags}" LDFLAGS=" %{?__global_ldflags}" %{? _with_python3:PYTHON=python3} %{? _with_db_oracle:ORAHOME=" $ORACLE_HOME " } %{! ? _with_wolfssl:STIR_SHAKEN_OPENSSL=true} %{ __make} all modules-readme %{?_smp_mflags } TLS=1 \
10121016 exclude_modules=" %EXCLUDE_MODULES" \
10131017 cfg_target=%{_sysconfdir }/opensips/ \
10141018 modules_prefix=%{buildroot }%{_prefix } \
10151019 modules_dir=%{_lib }/%{name }/modules
10161020
10171021%install
1018- %{__make} install TLS=1 LIBDIR=%{_lib } \
1022+ %{__make} install TLS=1 LIBDIR=%{_lib } %{ ! ? _with_wolfssl:STIR_SHAKEN_OPENSSL=true} \
10191023 exclude_modules=" %EXCLUDE_MODULES" \
10201024 basedir=%{buildroot } prefix=%{_prefix } \
10211025 cfg_prefix=%{buildroot } \
0 commit comments