From f674ced1eaa13ded7f04ea1ec18a740b0ba4d5e5 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sun, 16 Jul 2006 08:01:00 +0000 Subject: [PATCH] upgrading package: openser 1.0.1 -> 1.1.0 --- openser/openser.patch | 21 ++++++++++++++++----- openser/openser.spec | 26 ++++++++++++++++++++------ 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/openser/openser.patch b/openser/openser.patch index 6cf66307d6..99edadb875 100644 --- a/openser/openser.patch +++ b/openser/openser.patch @@ -1,12 +1,23 @@ Index: Makefile.defs ---- Makefile.defs.orig 2005-07-01 14:13:43 +0200 -+++ Makefile.defs 2005-10-09 18:37:26 +0200 -@@ -982,6 +982,8 @@ - found_lock_method=yes - endif +--- Makefile.defs.orig 2006-07-10 19:57:20 +0200 ++++ Makefile.defs 2006-07-16 09:54:39 +0200 +@@ -987,6 +987,8 @@ + + endif #mode=release +LDFLAGS += -L$(prefix)/lib +LIBS += -lfsl + #*FLAGS used for compiling the modules + ifeq ($(CC_NAME), gcc) +@@ -1199,8 +1201,8 @@ + #add libssl if needed + ifneq ($(TLS),) +-DEFS+= -I$(LOCALBASE)/ssl/include +-LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl -lcrypto ++DEFS+= -I$(prefix)/include ++LIBS+= -L$(prefix)/lib -lssl -lcrypto + endif + ifneq ($(found_lock_method), yes) diff --git a/openser/openser.spec b/openser/openser.spec index 5c1478e081..326d13c7ea 100644 --- a/openser/openser.spec +++ b/openser/openser.spec @@ -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"