asterisk/asterisk.spec

changeset 755
192d78fefb97
parent 712
bf4f2bc90467
child 756
ca81a21bc445
equal deleted inserted replaced
19:ce285df6aa77 20:58a1ad99b23b
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 version 24 # package version
25 %define V_opkg 1.8.16.0 25 %define V_opkg 1.8.19.1
26 %define V_asterisk 1.8.16.0 26 %define V_asterisk 1.8.19.1
27 %define V_asterisk_fax_subdir 1.8.4 27 %define V_asterisk_fax_subdir 1.8.4
28 %define V_asterisk_fax_digium 1.8.4_1.3.1 28 %define V_asterisk_fax_digium 1.8.4_1.3.1
29 %define V_asterisk_sounds_core 1.4.22 29 %define V_asterisk_sounds_core 1.4.22
30 %define V_asterisk_sounds_extra 1.4.11 30 %define V_asterisk_sounds_extra 1.4.11
31 %define V_asterisk_sounds_amoogab 1.4 31 %define V_asterisk_sounds_amoogab 1.4
37 %define V_fswitch_sounds_en 1.0.20 37 %define V_fswitch_sounds_en 1.0.20
38 %define V_fswitch_sounds_fr 1.0.16 38 %define V_fswitch_sounds_fr 1.0.16
39 %define V_fswitch_sounds_ru 1.0.13 39 %define V_fswitch_sounds_ru 1.0.13
40 %define V_fswitch_music 1.0.8 40 %define V_fswitch_music 1.0.8
41 %define V_asterisk_codecs_ilbc 20110104 41 %define V_asterisk_codecs_ilbc 20110104
42 %define V_chan_capi 1.1.5.20120615 42 %define V_chan_capi 1.1.6
43 43
44 # package information 44 # package information
45 Name: asterisk 45 Name: asterisk
46 Summary: Private Branch Exchange (PBX) 46 Summary: Private Branch Exchange (PBX)
47 URL: http://www.asterisk.org/ 47 URL: http://www.asterisk.org/
74 %option with_libpri no 74 %option with_libpri no
75 %option with_esounds no 75 %option with_esounds no
76 %option with_xfersips yes 76 %option with_xfersips yes
77 %option with_proxymwi yes 77 %option with_proxymwi yes
78 %option with_smdipoll 10 78 %option with_smdipoll 10
79 %option with_motxchan Local/17094009
80
81 # correct implicit interdependencies
82 %if "%{with_capi}" == "yes"
83 #%define with_motxchan CAPI/ISDN1/090032669002 # Materna (Anny Way)
84 %define with_motxchan CAPI/ISDN1/17094009
85 %endif
79 86
80 # list of sources 87 # list of sources
81 Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{V_asterisk}.tar.gz 88 Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
82 Source1: ftp://ftp.chan-capi.org/chan-capi/chan_capi-%{V_chan_capi}.tar.gz 89 Source1: ftp://ftp.chan-capi.org/chan-capi/chan_capi-%{V_chan_capi}.tar.gz
83 Source2: ftp://ftp.europalab.com/pub/sfw/machsnds/asterisk-moh-freeplay-sln16.tar.gz 90 Source2: ftp://ftp.europalab.com/pub/sfw/machsnds/asterisk-moh-freeplay-sln16.tar.gz
337 apps/app_ivrdemo.c \ 344 apps/app_ivrdemo.c \
338 apps/app_saycounted.c \ 345 apps/app_saycounted.c \
339 utils/utils.xml \ 346 utils/utils.xml \
340 agi/agi.xml 347 agi/agi.xml
341 %{l_shtool} subst \ 348 %{l_shtool} subst \
349 -e 's;\(\*motxchannel = "\)[^"][^"]*",;\1%{with_motxchan}",;' \
350 -e 's;\(\*spooldir = "\)[^"][^"]*",;\1%{l_prefix}/var/asterisk/spool",;' \
351 utils/smsq.c
352 %{l_shtool} subst \
342 -e 's;\(-DSOLARIS\);\1 -D__EXTENSIONS__=1;g' \ 353 -e 's;\(-DSOLARIS\);\1 -D__EXTENSIONS__=1;g' \
343 main/editline/Makefile.in \ 354 main/editline/Makefile.in \
344 main/db1-ast/Makefile 355 main/db1-ast/Makefile
345 %{l_shtool} subst \ 356 %{l_shtool} subst \
346 -e 's;^\(install:\).*;\1;' \ 357 -e 's;^\(install:\).*;\1;' \
377 -e 's;\(CONFIG_DIR=\).*;\1%{l_prefix}/etc/asterisk;g' \ 388 -e 's;\(CONFIG_DIR=\).*;\1%{l_prefix}/etc/asterisk;g' \
378 -e 's;\(\$(MODULES_DIR)\);$(DESTDIR)\1;g' \ 389 -e 's;\(\$(MODULES_DIR)\);$(DESTDIR)\1;g' \
379 -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \ 390 -e 's;\${CONFIG_DIR};$(DESTDIR)$(CONFIG_DIR);g' \
380 -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \ 391 -e 's;^\(USE_OWN_LIBCAPI\)=yes;\1=no;' \
381 chan_capi-%{V_chan_capi}/Makefile 392 chan_capi-%{V_chan_capi}/Makefile
393 %{l_shtool} subst \
394 -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' \
395 chan_capi-%{V_chan_capi}/chan_capi_devstate.c
382 case "%{l_platform -t}" in 396 case "%{l_platform -t}" in
383 *-sunos* ) 397 *-sunos* )
384 %{l_shtool} subst \ 398 %{l_shtool} subst \
385 -e 's;SO_SUPPRESS_SYMBOLS=-Wl,--version-script,[a-zA-Z0-9@\-_,\.()\$ ][a-zA-Z0-9@\-_,\.()\$ ]*;LOCAL_NOOP=0;' \ 399 -e 's;SO_SUPPRESS_SYMBOLS=-Wl,--version-script,[a-zA-Z0-9@\-_,\.()\$ ][a-zA-Z0-9@\-_,\.()\$ ]*;LOCAL_NOOP=0;' \
386 -e 's;ASTLINK+=-Wl,--version-script,[a-zA-Z0-9\-_\.,][a-zA-Z0-9\-_\.,]*;LOCAL_NOOP=0;' \ 400 -e 's;ASTLINK+=-Wl,--version-script,[a-zA-Z0-9\-_\.,][a-zA-Z0-9\-_\.,]*;LOCAL_NOOP=0;' \
594 ( cd chan_capi-* 608 ( cd chan_capi-*
595 ln -s ../include/asterisk . 609 ln -s ../include/asterisk .
596 ln -s ../include/asterisk.h . 610 ln -s ../include/asterisk.h .
597 %{l_make} %{l_mflags -O} V=1 \ 611 %{l_make} %{l_mflags -O} V=1 \
598 INSTALL_PREFIX=%{l_prefix} \ 612 INSTALL_PREFIX=%{l_prefix} \
599 ASTERISK_HEADER_DIR="`pwd`" \ 613 ASTERISK_HEADER_DIR="`pwd`"
600 ) || exit $? 614 ) || exit $?
601 %endif 615 %endif
602 616
603 %install 617 %install
604 # install program 618 # install program

mercurial