|
39 | 39 | %define build_mod_ssml 1
|
40 | 40 | %define build_mod_shout 1
|
41 | 41 | %define build_mod_opusfile 0
|
| 42 | +%define build_mod_v8 0 |
42 | 43 |
|
43 | 44 | %{?with_sang_tc:%define build_sng_tc 1 }
|
44 | 45 | %{?with_sang_isdn:%define build_sng_isdn 1 }
|
|
48 | 49 | %{?with_mod_esl:%define build_mod_esl 1 }
|
49 | 50 | %{?with_mod_shout:%define build_mod_shout 1 }
|
50 | 51 | %{?with_mod_opusfile:%define build_mod_opusfile 1 }
|
| 52 | +%{?with_mod_v8:%define build_mod_v8 1 } |
51 | 53 |
|
52 | 54 | %define nonparsedversion 1.7.0
|
53 | 55 | %define version %(echo '%{nonparsedversion}' | sed 's/-//g')
|
@@ -1218,12 +1220,14 @@ Requires: python
|
1218 | 1220 |
|
1219 | 1221 | %description python
|
1220 | 1222 |
|
| 1223 | +%if %{build_mod_v8} |
1221 | 1224 | %package v8
|
1222 | 1225 | Summary: JavaScript support for the FreeSWITCH open source telephony platform, using Google V8 JavaScript engine
|
1223 | 1226 | Group: System/Libraries
|
1224 | 1227 | Requires: %{name} = %{version}-%{release}
|
1225 | 1228 |
|
1226 | 1229 | %description v8
|
| 1230 | +%endif |
1227 | 1231 |
|
1228 | 1232 | ######################################################################################################################
|
1229 | 1233 | # FreeSWITCH Say Modules
|
@@ -1572,7 +1576,9 @@ FORMATS_MODULES+=" formats/mod_opusfile"
|
1572 | 1576 | #
|
1573 | 1577 | ######################################################################################################################
|
1574 | 1578 | LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python "
|
1575 |
| -#LANGUAGES_MODULES+="languages/mod_v8" |
| 1579 | +%if %{build_mod_v8} |
| 1580 | +LANGUAGES_MODULES+="languages/mod_v8" |
| 1581 | +%endif |
1576 | 1582 |
|
1577 | 1583 | ######################################################################################################################
|
1578 | 1584 | #
|
@@ -2421,12 +2427,14 @@ fi
|
2421 | 2427 | %dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
|
2422 | 2428 | %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
|
2423 | 2429 |
|
| 2430 | +%if %{build_mod_v8} |
2424 | 2431 | %files v8
|
2425 |
| -#%{MODINSTDIR}/mod_v8*.so* |
2426 |
| -#%{LIBDIR}/libv8.so |
2427 |
| -#%{LIBDIR}/libicui18n.so |
2428 |
| -#%{LIBDIR}/libicuuc.so |
2429 |
| -#%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs |
| 2432 | +%{MODINSTDIR}/mod_v8*.so* |
| 2433 | +%{LIBDIR}/libv8.so |
| 2434 | +%{LIBDIR}/libicui18n.so |
| 2435 | +%{LIBDIR}/libicuuc.so |
| 2436 | +%endif |
| 2437 | +%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs |
2430 | 2438 | %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/v8.conf.xml
|
2431 | 2439 |
|
2432 | 2440 | ######################################################################################################################
|
|
2577 | 2585 | #
|
2578 | 2586 | ######################################################################################################################
|
2579 | 2587 | %changelog
|
| 2588 | +* Tue Apr 23 2019 - Andrey Volk |
| 2589 | +- Fix build for Stack 20.x |
2580 | 2590 | * Tue Dec 11 2018 - Andrey Volk
|
2581 | 2591 | - add mod_signalwire
|
2582 | 2592 | * Sun Mar 13 2016 - Matthew Vale
|
|
0 commit comments