1.1 --- a/asterisk/asterisk.spec Sun Oct 28 23:53:41 2012 +0100 1.2 +++ b/asterisk/asterisk.spec Tue Jan 08 20:08:32 2013 +0100 1.3 @@ -22,8 +22,8 @@ 1.4 ## 1.5 1.6 # package version 1.7 -%define V_opkg 1.8.16.0 1.8 -%define V_asterisk 1.8.16.0 1.9 +%define V_opkg 1.8.19.1 1.10 +%define V_asterisk 1.8.19.1 1.11 %define V_asterisk_fax_subdir 1.8.4 1.12 %define V_asterisk_fax_digium 1.8.4_1.3.1 1.13 %define V_asterisk_sounds_core 1.4.22 1.14 @@ -39,7 +39,7 @@ 1.15 %define V_fswitch_sounds_ru 1.0.13 1.16 %define V_fswitch_music 1.0.8 1.17 %define V_asterisk_codecs_ilbc 20110104 1.18 -%define V_chan_capi 1.1.5.20120615 1.19 +%define V_chan_capi 1.1.6 1.20 1.21 # package information 1.22 Name: asterisk 1.23 @@ -76,6 +76,13 @@ 1.24 %option with_xfersips yes 1.25 %option with_proxymwi yes 1.26 %option with_smdipoll 10 1.27 +%option with_motxchan Local/17094009 1.28 + 1.29 +# correct implicit interdependencies 1.30 +%if "%{with_capi}" == "yes" 1.31 +#%define with_motxchan CAPI/ISDN1/090032669002 # Materna (Anny Way) 1.32 +%define with_motxchan CAPI/ISDN1/17094009 1.33 +%endif 1.34 1.35 # list of sources 1.36 Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{V_asterisk}.tar.gz 1.37 @@ -339,6 +346,10 @@ 1.38 utils/utils.xml \ 1.39 agi/agi.xml 1.40 %{l_shtool} subst \ 1.41 + -e 's;\(\*motxchannel = "\)[^"][^"]*",;\1%{with_motxchan}",;' \ 1.42 + -e 's;\(\*spooldir = "\)[^"][^"]*",;\1%{l_prefix}/var/asterisk/spool",;' \ 1.43 + utils/smsq.c 1.44 + %{l_shtool} subst \ 1.45 -e 's;\(-DSOLARIS\);\1 -D__EXTENSIONS__=1;g' \ 1.46 main/editline/Makefile.in \ 1.47 main/db1-ast/Makefile 1.48 @@ -379,6 +390,9 @@ 1.49 -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \ 1.50 -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \ 1.51 chan_capi-%{V_chan_capi}/Makefile 1.52 + %{l_shtool} subst \ 1.53 + -e 's;#ifdef CC_AST_HAS_VERSION_1_6$;#if (defined(CC_AST_HAS_VERSION_1_6) \&\& !defined(CC_AST_HAS_VERSION_1_8));g' \ 1.54 + chan_capi-%{V_chan_capi}/chan_capi_devstate.c 1.55 case "%{l_platform -t}" in 1.56 *-sunos* ) 1.57 %{l_shtool} subst \ 1.58 @@ -596,7 +610,7 @@ 1.59 ln -s ../include/asterisk.h . 1.60 %{l_make} %{l_mflags -O} V=1 \ 1.61 INSTALL_PREFIX=%{l_prefix} \ 1.62 - ASTERISK_HEADER_DIR="`pwd`" \ 1.63 + ASTERISK_HEADER_DIR="`pwd`" 1.64 ) || exit $? 1.65 %endif 1.66