diff -r 5a7d77eba1e7 -r 192d78fefb97 asterisk/asterisk.spec --- a/asterisk/asterisk.spec Sun Oct 28 23:53:41 2012 +0100 +++ b/asterisk/asterisk.spec Tue Jan 08 20:08:32 2013 +0100 @@ -22,8 +22,8 @@ ## # package version -%define V_opkg 1.8.16.0 -%define V_asterisk 1.8.16.0 +%define V_opkg 1.8.19.1 +%define V_asterisk 1.8.19.1 %define V_asterisk_fax_subdir 1.8.4 %define V_asterisk_fax_digium 1.8.4_1.3.1 %define V_asterisk_sounds_core 1.4.22 @@ -39,7 +39,7 @@ %define V_fswitch_sounds_ru 1.0.13 %define V_fswitch_music 1.0.8 %define V_asterisk_codecs_ilbc 20110104 -%define V_chan_capi 1.1.5.20120615 +%define V_chan_capi 1.1.6 # package information Name: asterisk @@ -76,6 +76,13 @@ %option with_xfersips yes %option with_proxymwi yes %option with_smdipoll 10 +%option with_motxchan Local/17094009 + +# correct implicit interdependencies +%if "%{with_capi}" == "yes" +#%define with_motxchan CAPI/ISDN1/090032669002 # Materna (Anny Way) +%define with_motxchan CAPI/ISDN1/17094009 +%endif # list of sources Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{V_asterisk}.tar.gz @@ -339,6 +346,10 @@ utils/utils.xml \ agi/agi.xml %{l_shtool} subst \ + -e 's;\(\*motxchannel = "\)[^"][^"]*",;\1%{with_motxchan}",;' \ + -e 's;\(\*spooldir = "\)[^"][^"]*",;\1%{l_prefix}/var/asterisk/spool",;' \ + utils/smsq.c + %{l_shtool} subst \ -e 's;\(-DSOLARIS\);\1 -D__EXTENSIONS__=1;g' \ main/editline/Makefile.in \ main/db1-ast/Makefile @@ -379,6 +390,9 @@ -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \ -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \ chan_capi-%{V_chan_capi}/Makefile + %{l_shtool} subst \ + -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' \ + chan_capi-%{V_chan_capi}/chan_capi_devstate.c case "%{l_platform -t}" in *-sunos* ) %{l_shtool} subst \ @@ -596,7 +610,7 @@ ln -s ../include/asterisk.h . %{l_make} %{l_mflags -O} V=1 \ INSTALL_PREFIX=%{l_prefix} \ - ASTERISK_HEADER_DIR="`pwd`" \ + ASTERISK_HEADER_DIR="`pwd`" ) || exit $? %endif