opensips/opensips.spec

changeset 382
b972dc20871f
parent 377
67e813202d53
child 385
7d62cfad2a24
equal deleted inserted replaced
1:6c6fac3770c3 2:fd92ce5cdd40
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package options 24 # package options
25 %define V_major 1.6.4
26 %define V_minor 2
25 %define V_rtpproxy 1.2.1 27 %define V_rtpproxy 1.2.1
26 28
27 # package information 29 # package information
28 Name: opensips 30 Name: opensips
29 Summary: Open SIP Router 31 Summary: Open SIP Router
32 Packager: OpenPKG Foundation e.V. 34 Packager: OpenPKG Foundation e.V.
33 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
34 Class: PLUS 36 Class: PLUS
35 Group: VoIP 37 Group: VoIP
36 License: GPL 38 License: GPL
37 Version: 1.7.0 39 Version: %{V_major}.%{V_minor}
38 Release: 20110912 40 Release: 20110200
39 41
40 # package options 42 # package options
41 %option with_cons yes 43 %option with_cons yes
42 %option with_fsl yes 44 %option with_fsl yes
43 %option with_ssl yes 45 %option with_ssl yes
55 %option with_odbc no 57 %option with_odbc no
56 %option with_geoip no 58 %option with_geoip no
57 %option with_dbgmem no 59 %option with_dbgmem no
58 60
59 # list of sources 61 # list of sources
60 Source0: http://www.opensips.org/pub/opensips/%{version}/src/opensips-%{version}_src.tar.gz 62 Source0: http://www.opensips.org/pub/opensips/%{V_major}/src/opensips-%{V_major}-%{V_minor}-tls_src.tar.gz
61 Source1: http://www.b2bua.org/chrome/site/rtpproxy-%{V_rtpproxy}.tar.gz 63 Source1: http://www.b2bua.org/chrome/site/rtpproxy-%{V_rtpproxy}.tar.gz
62 Source2: rc.opensips 64 Source2: rc.opensips
63 Source3: fsl.opensips 65 Source3: fsl.opensips
64 Source4: opensips.cfg 66 Source4: opensips.cfg
65 Patch0: opensips.patch 67 Patch0: opensips.patch
66 Patch1: opensips.patch.dict 68 Patch1: opensips.patch.dict
67 Patch2: opensips.patch.uac 69 Patch2: opensips.patch.uac
68 Patch3: opensips.patch.reg 70 Patch3: opensips.patch.lcr
69 Patch4: opensips.patch.rtpproxy 71 Patch4: opensips.patch.reg
72 Patch5: opensips.patch.rtpproxy
70 73
71 # build information 74 # build information
72 Prefix: %{l_prefix} 75 Prefix: %{l_prefix}
73 BuildRoot: %{l_buildroot} 76 BuildRoot: %{l_buildroot}
74 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, flex, bison, sed 77 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, flex, bison, sed
164 NAT traversal unit 167 NAT traversal unit
165 Application server 168 Application server
166 169
167 %track 170 %track
168 prog opensips = { 171 prog opensips = {
169 version = %{version} 172 version = %{V_major}-%{V_minor}
170 url = http://www.opensips.org/pub/opensips/ 173 url = http://www.opensips.org/pub/opensips/
171 regex = (\d+\.\d+\.\d+)/ 174 regex = (\d+\.\d+\.\d+)/
172 url = http://www.opensips.org/pub/opensips/__NEWVER__/src/ 175 url = http://www.opensips.org/pub/opensips/__NEWVER__/src/
173 regex = opensips-(__VER__)_src\.tar\.gz 176 regex = opensips-(__VER__)-tls_src\.tar\.gz
174 } 177 }
175 prog opensips:rtpproxy = { 178 prog opensips:rtpproxy = {
176 version = %{V_rtpproxy} 179 version = %{V_rtpproxy}
177 url = http://www.rtpproxy.org/ 180 url = http://www.rtpproxy.org/
178 regex = rtpproxy-(\d+(?:\.\d+)+)\.tar\.gz 181 regex = rtpproxy-(\d+(?:\.\d+)+)\.tar\.gz
179 } 182 }
180 183
181 %prep 184 %prep
182 %setup -q -n opensips-%{version}-tls 185 %setup -q -n opensips-%{V_major}-%{V_minor}-tls
183 %setup -q -n opensips-%{version}-tls -T -D -a 1 186 %setup -q -n opensips-%{V_major}-%{V_minor}-tls -T -D -a 1
184 %patch -p0 187 %patch -p0
185 %patch -p0 -P 1 188 %patch -p0 -P 1
186 %patch -p0 -P 2 189 %patch -p0 -P 2
187 %patch -p0 -P 3 190 %patch -p0 -P 3
191 %patch -p0 -P 4
188 ( cd rtpproxy-%{V_rtpproxy} 192 ( cd rtpproxy-%{V_rtpproxy}
189 %patch -p0 -P 4 193 %patch -p0 -P 5
190 ) || exit $? 194 ) || exit $?
191 %{l_shtool} subst \ 195 %{l_shtool} subst \
192 -e 's;^#! */bin/sh;#! %{l_prefix}/bin/bash;' \ 196 -e 's;^#! */bin/sh;#! %{l_prefix}/bin/bash;' \
193 scripts/opensipsctl 197 scripts/opensipsctl
194 %{l_shtool} subst \ 198 %{l_shtool} subst \
299 scripts/opensipsdbctl.mysql \ 303 scripts/opensipsdbctl.mysql \
300 scripts/opensipsdbctl.pgsql 304 scripts/opensipsdbctl.pgsql
301 %{l_shtool} subst \ 305 %{l_shtool} subst \
302 -e 's;\(script_flags(int\));\1,null);' \ 306 -e 's;\(script_flags(int\));\1,null);' \
303 scripts/dbtext/opensips/dialog 307 scripts/dbtext/opensips/dialog
308 %{l_shtool} subst \
309 -e 's;\(gw_name(string).*\) *$;\1 user(string,null) realm(string,null) passwd(string,null);' \
310 scripts/dbtext/opensips/gw
304 %{l_shtool} subst \ 311 %{l_shtool} subst \
305 -e 's;body(string);body(blob);' \ 312 -e 's;body(string);body(blob);' \
306 -e 's;sender(string);sender(string,null);' \ 313 -e 's;sender(string);sender(string,null);' \
307 scripts/dbtext/opensips/presentity 314 scripts/dbtext/opensips/presentity
308 %{l_shtool} subst \ 315 %{l_shtool} subst \

mercurial