|
|
@@ -23,7 +23,7 @@
|
|
|
##
|
|
|
|
|
|
# package options
|
|
|
-%define V_openser 1.0.1
|
|
|
+%define V_openser 1.1.0
|
|
|
%define V_rtpproxy 20060705-021301
|
|
|
|
|
|
# package information
|
|
|
@@ -37,13 +37,14 @@ Class: EVAL
|
|
|
Group: Network
|
|
|
License: GPL
|
|
|
Version: %{V_openser}
|
|
|
-Release: 20060705
|
|
|
+Release: 20060716
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl yes
|
|
|
+%option with_ssl no
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://openser.org/pub/openser/%{version}/src/openser-%{V_openser}_src.tar.gz
|
|
|
+Source0: http://openser.org/pub/openser/%{version}/src/openser-%{V_openser}-tls_src.tar.gz
|
|
|
Source1: http://openser.org/downloads/snapshots/rtpproxy/rtpproxy-cvs-%{V_rtpproxy}.tgz
|
|
|
Source2: rc.openser
|
|
|
Source3: fsl.openser
|
|
|
@@ -60,6 +61,10 @@ PreReq: OpenPKG, openpkg >= 20040130
|
|
|
BuildPreReq: fsl >= 1.2.0
|
|
|
PreReq: fsl >= 1.2.0
|
|
|
%endif
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+BuildPreReq: openssl
|
|
|
+PreReq: openssl
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -76,7 +81,7 @@ AutoReqProv: no
|
|
|
url = http://openser.org/pub/openser/
|
|
|
regex = (\d+\.\d+\.\d+)/
|
|
|
url = http://openser.org/pub/openser/__NEWVER__/src/
|
|
|
- regex = openser-(__VER__)_src\.tar\.gz
|
|
|
+ regex = openser-(__VER__)-tls_src\.tar\.gz
|
|
|
}
|
|
|
prog openser:rtpproxy = {
|
|
|
version = %{V_rtpproxy}
|
|
|
@@ -85,25 +90,34 @@ AutoReqProv: no
|
|
|
}
|
|
|
|
|
|
%prep
|
|
|
- %setup -q
|
|
|
- %setup -q -T -D -a 1
|
|
|
+ %setup -q -n openser-%{version}-tls
|
|
|
+ %setup -q -n openser-%{version}-tls -T -D -a 1
|
|
|
%patch -p0
|
|
|
|
|
|
%build
|
|
|
# build dependencies
|
|
|
%{l_make} %{l_mflags} \
|
|
|
CC="%{l_cc}" \
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+ TLS=1 \
|
|
|
+%endif
|
|
|
prefix=%{l_prefix} \
|
|
|
dep >/dev/null 2>&1 || true
|
|
|
|
|
|
# build program
|
|
|
%{l_make} %{l_mflags} \
|
|
|
CC="%{l_cc}" \
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+ TLS=1 \
|
|
|
+%endif
|
|
|
prefix=%{l_prefix}
|
|
|
|
|
|
# build modules
|
|
|
%{l_make} %{l_mflags} \
|
|
|
CC="%{l_cc}" \
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+ TLS=1 \
|
|
|
+%endif
|
|
|
prefix=%{l_prefix} \
|
|
|
modules \
|
|
|
skip_modules="mysql jabber"
|