opensips/opensips.spec

changeset 382
b972dc20871f
parent 377
67e813202d53
child 385
7d62cfad2a24
     1.1 --- a/opensips/opensips.spec	Wed Sep 21 14:31:41 2011 +0200
     1.2 +++ b/opensips/opensips.spec	Wed Sep 21 16:06:14 2011 +0200
     1.3 @@ -22,6 +22,8 @@
     1.4  ##
     1.5  
     1.6  #   package options
     1.7 +%define       V_major  1.6.4
     1.8 +%define       V_minor  2
     1.9  %define       V_rtpproxy  1.2.1
    1.10  
    1.11  #   package information
    1.12 @@ -34,8 +36,8 @@
    1.13  Class:        PLUS
    1.14  Group:        VoIP
    1.15  License:      GPL
    1.16 -Version:      1.7.0
    1.17 -Release:      20110912
    1.18 +Version:      %{V_major}.%{V_minor}
    1.19 +Release:      20110200
    1.20  
    1.21  #   package options
    1.22  %option       with_cons    yes
    1.23 @@ -57,7 +59,7 @@
    1.24  %option       with_dbgmem  no
    1.25  
    1.26  #   list of sources
    1.27 -Source0:      http://www.opensips.org/pub/opensips/%{version}/src/opensips-%{version}_src.tar.gz
    1.28 +Source0:      http://www.opensips.org/pub/opensips/%{V_major}/src/opensips-%{V_major}-%{V_minor}-tls_src.tar.gz
    1.29  Source1:      http://www.b2bua.org/chrome/site/rtpproxy-%{V_rtpproxy}.tar.gz
    1.30  Source2:      rc.opensips
    1.31  Source3:      fsl.opensips
    1.32 @@ -65,8 +67,9 @@
    1.33  Patch0:       opensips.patch
    1.34  Patch1:       opensips.patch.dict
    1.35  Patch2:       opensips.patch.uac
    1.36 -Patch3:       opensips.patch.reg
    1.37 -Patch4:       opensips.patch.rtpproxy
    1.38 +Patch3:       opensips.patch.lcr
    1.39 +Patch4:       opensips.patch.reg
    1.40 +Patch5:       opensips.patch.rtpproxy
    1.41  
    1.42  #   build information
    1.43  Prefix:       %{l_prefix}
    1.44 @@ -166,11 +169,11 @@
    1.45  
    1.46  %track
    1.47      prog opensips = {
    1.48 -        version   = %{version}
    1.49 +        version   = %{V_major}-%{V_minor}
    1.50          url       = http://www.opensips.org/pub/opensips/
    1.51          regex     = (\d+\.\d+\.\d+)/
    1.52          url       = http://www.opensips.org/pub/opensips/__NEWVER__/src/
    1.53 -        regex     = opensips-(__VER__)_src\.tar\.gz
    1.54 +        regex     = opensips-(__VER__)-tls_src\.tar\.gz
    1.55      }
    1.56      prog opensips:rtpproxy = {
    1.57          version   = %{V_rtpproxy}
    1.58 @@ -179,14 +182,15 @@
    1.59      }
    1.60  
    1.61  %prep
    1.62 -    %setup -q -n opensips-%{version}-tls
    1.63 -    %setup -q -n opensips-%{version}-tls -T -D -a 1
    1.64 +    %setup -q -n opensips-%{V_major}-%{V_minor}-tls
    1.65 +    %setup -q -n opensips-%{V_major}-%{V_minor}-tls -T -D -a 1
    1.66      %patch -p0
    1.67      %patch -p0 -P 1
    1.68      %patch -p0 -P 2
    1.69      %patch -p0 -P 3
    1.70 +    %patch -p0 -P 4
    1.71      ( cd rtpproxy-%{V_rtpproxy}
    1.72 -      %patch -p0 -P 4
    1.73 +      %patch -p0 -P 5
    1.74      ) || exit $?
    1.75      %{l_shtool} subst \
    1.76          -e 's;^#! */bin/sh;#! %{l_prefix}/bin/bash;' \
    1.77 @@ -302,6 +306,9 @@
    1.78          -e 's;\(script_flags(int\));\1,null);' \
    1.79          scripts/dbtext/opensips/dialog
    1.80      %{l_shtool} subst \
    1.81 +        -e 's;\(gw_name(string).*\)  *$;\1 user(string,null) realm(string,null) passwd(string,null);' \
    1.82 +        scripts/dbtext/opensips/gw
    1.83 +    %{l_shtool} subst \
    1.84          -e 's;body(string);body(blob);' \
    1.85          -e 's;sender(string);sender(string,null);' \
    1.86          scripts/dbtext/opensips/presentity

mercurial