Merge pull request #747 in FS/freeswitch from ~MAFOOUK/freeswitch:feature/FS-8931-create-seperate-packages-for-esl to master

* commit '1d616e74473043c880eee55e70783d68d49de445':
  FS-8931: Added Perl and Python ESL Language Module
This commit is contained in:
Ken Rice 2017-04-25 22:12:21 +00:00
commit a20b174e2b
1 changed files with 40 additions and 3 deletions

View File

@ -1335,6 +1335,24 @@ Requires: %{name} = %{version}-%{release}
%description xml-rpc %description xml-rpc
Provides XML-RPC interface for the FreeSWITCH Open Source telephone platform. Provides XML-RPC interface for the FreeSWITCH Open Source telephone platform.
######################################################################################################################
# FreeSWITCH ESL language modules
######################################################################################################################
%package -n perl-ESL
Summary: The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface.
Group: System Environment/Libraries
%description -n perl-ESL
The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface.
%package -n python-ESL
Summary: The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
Group: System Environment/Libraries
%description -n python-ESL
The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
###################################################################################################################### ######################################################################################################################
# FreeSWITCH basic config module # FreeSWITCH basic config module
###################################################################################################################### ######################################################################################################################
@ -1646,6 +1664,7 @@ unset MODULES
cd libs/esl cd libs/esl
%{__make} pymod %{__make} pymod
%{__make} perlmod
###################################################################################################################### ######################################################################################################################
@ -1665,6 +1684,7 @@ cd libs/esl
#install the esl stuff #install the esl stuff
cd libs/esl cd libs/esl
%{__make} DESTDIR=%{buildroot} pymod-install %{__make} DESTDIR=%{buildroot} pymod-install
%{__make} DESTDIR=%{buildroot} perlmod-install
%if %{build_py26_esl} %if %{build_py26_esl}
#install esl for python 26 #install esl for python 26
@ -2378,9 +2398,6 @@ fi
%files python %files python
%{MODINSTDIR}/mod_python*.so* %{MODINSTDIR}/mod_python*.so*
%attr(0644, root, bin) /usr/lib*/python*/site-packages/freeswitch.py*
%attr(0755, root, bin) /usr/lib*/python*/site-packages/_ESL.so*
%attr(0755, root, bin) /usr/lib*/python*/site-packages/ESL.py*
%dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs %dir %attr(0750, freeswitch, daemon) %{sysconfdir}/autoload_configs
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
@ -2516,12 +2533,32 @@ fi
%files xml-curl %files xml-curl
%{MODINSTDIR}/mod_xml_curl.so* %{MODINSTDIR}/mod_xml_curl.so*
######################################################################################################################
# FreeSWITCH ESL language modules
######################################################################################################################
%files -n perl-ESL
%defattr(644,root,root,755)
%{perl_archlib}/ESL.pm
%{perl_archlib}/ESL.so
%{perl_archlib}/ESL.la
%dir %{perl_archlib}/ESL
%{perl_archlib}/ESL/Dispatch.pm
%{perl_archlib}/ESL/IVR.pm
%files -n python-ESL
%attr(0644, root, bin) /usr/lib*/python*/site-packages/freeswitch.py*
%attr(0755, root, bin) /usr/lib*/python*/site-packages/_ESL.so*
%attr(0755, root, bin) /usr/lib*/python*/site-packages/ESL.py*
###################################################################################################################### ######################################################################################################################
# #
# Changelog # Changelog
# #
###################################################################################################################### ######################################################################################################################
%changelog %changelog
* Sun Mar 13 2016 - Matthew Vale
- add perl and python ESL language module packages
* Thu Jul 09 2015 - Artur Zaprzała * Thu Jul 09 2015 - Artur Zaprzała
- add systemd service file for CentOS 7 - add systemd service file for CentOS 7
* Thu Jun 25 2015 - s.safarov@gmail.com * Thu Jun 25 2015 - s.safarov@gmail.com