Skip to content

Commit 886b2d3

Browse files
committed
FS-11567: [Build-System] CentOS packaging: Disable mod_v8 build
1 parent efd35f6 commit 886b2d3

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

freeswitch-config-rayo.spec

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ FreeSWITCH rayo server implementation.
165165
#
166166
######################################################################################################################
167167
%changelog
168+
* Tue Apr 23 2019 - Andrey Volk
169+
- Fix build for Stack 20.x
168170
* Tue Jun 10 2014 [email protected]
169171
- Remove dependency to high resolution music and sounds files
170172
- Remove dependency to specific FreeSWITCH package version

freeswitch.spec

+16-6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
%define build_mod_ssml 1
4040
%define build_mod_shout 1
4141
%define build_mod_opusfile 0
42+
%define build_mod_v8 0
4243

4344
%{?with_sang_tc:%define build_sng_tc 1 }
4445
%{?with_sang_isdn:%define build_sng_isdn 1 }
@@ -48,6 +49,7 @@
4849
%{?with_mod_esl:%define build_mod_esl 1 }
4950
%{?with_mod_shout:%define build_mod_shout 1 }
5051
%{?with_mod_opusfile:%define build_mod_opusfile 1 }
52+
%{?with_mod_v8:%define build_mod_v8 1 }
5153

5254
%define nonparsedversion 1.7.0
5355
%define version %(echo '%{nonparsedversion}' | sed 's/-//g')
@@ -1218,12 +1220,14 @@ Requires: python
12181220

12191221
%description python
12201222

1223+
%if %{build_mod_v8}
12211224
%package v8
12221225
Summary: JavaScript support for the FreeSWITCH open source telephony platform, using Google V8 JavaScript engine
12231226
Group: System/Libraries
12241227
Requires: %{name} = %{version}-%{release}
12251228

12261229
%description v8
1230+
%endif
12271231

12281232
######################################################################################################################
12291233
# FreeSWITCH Say Modules
@@ -1572,7 +1576,9 @@ FORMATS_MODULES+=" formats/mod_opusfile"
15721576
#
15731577
######################################################################################################################
15741578
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
15761582

15771583
######################################################################################################################
15781584
#
@@ -2421,12 +2427,14 @@ fi
24212427
%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
24222428
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
24232429

2430+
%if %{build_mod_v8}
24242431
%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
24302438
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/v8.conf.xml
24312439

24322440
######################################################################################################################
@@ -2577,6 +2585,8 @@ fi
25772585
#
25782586
######################################################################################################################
25792587
%changelog
2588+
* Tue Apr 23 2019 - Andrey Volk
2589+
- Fix build for Stack 20.x
25802590
* Tue Dec 11 2018 - Andrey Volk
25812591
- add mod_signalwire
25822592
* Sun Mar 13 2016 - Matthew Vale

0 commit comments

Comments
 (0)