Skip to content

Commit

Permalink
FS-11567: [Build-System] CentOS packaging: Disable mod_v8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed May 23, 2019
1 parent efd35f6 commit 886b2d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions freeswitch-config-rayo.spec
Expand Up @@ -165,6 +165,8 @@ FreeSWITCH rayo server implementation.
#
######################################################################################################################
%changelog
* Tue Apr 23 2019 - Andrey Volk
- Fix build for Stack 20.x
* Tue Jun 10 2014 crienzo@grasshopper.com
- Remove dependency to high resolution music and sounds files
- Remove dependency to specific FreeSWITCH package version
Expand Down
22 changes: 16 additions & 6 deletions freeswitch.spec
Expand Up @@ -39,6 +39,7 @@
%define build_mod_ssml 1
%define build_mod_shout 1
%define build_mod_opusfile 0
%define build_mod_v8 0

%{?with_sang_tc:%define build_sng_tc 1 }
%{?with_sang_isdn:%define build_sng_isdn 1 }
Expand All @@ -48,6 +49,7 @@
%{?with_mod_esl:%define build_mod_esl 1 }
%{?with_mod_shout:%define build_mod_shout 1 }
%{?with_mod_opusfile:%define build_mod_opusfile 1 }
%{?with_mod_v8:%define build_mod_v8 1 }

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

%description python

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

%description v8
%endif

######################################################################################################################
# FreeSWITCH Say Modules
Expand Down Expand Up @@ -1572,7 +1576,9 @@ FORMATS_MODULES+=" formats/mod_opusfile"
#
######################################################################################################################
LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python "
#LANGUAGES_MODULES+="languages/mod_v8"
%if %{build_mod_v8}
LANGUAGES_MODULES+="languages/mod_v8"
%endif

######################################################################################################################
#
Expand Down Expand Up @@ -2421,12 +2427,14 @@ fi
%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml

%if %{build_mod_v8}
%files v8
#%{MODINSTDIR}/mod_v8*.so*
#%{LIBDIR}/libv8.so
#%{LIBDIR}/libicui18n.so
#%{LIBDIR}/libicuuc.so
#%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
%{MODINSTDIR}/mod_v8*.so*
%{LIBDIR}/libv8.so
%{LIBDIR}/libicui18n.so
%{LIBDIR}/libicuuc.so
%endif
%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/v8.conf.xml

######################################################################################################################
Expand Down Expand Up @@ -2577,6 +2585,8 @@ fi
#
######################################################################################################################
%changelog
* Tue Apr 23 2019 - Andrey Volk
- Fix build for Stack 20.x
* Tue Dec 11 2018 - Andrey Volk
- add mod_signalwire
* Sun Mar 13 2016 - Matthew Vale
Expand Down

0 comments on commit 886b2d3

Please sign in to comment.