]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8931: Added Perl and Python ESL Language Module
authorMatthew Vale <matthew.vale@tuxtel.net>
Sun, 13 Mar 2016 12:43:31 +0000 (12:43 +0000)
committerMatthew Vale <matthew.vale@tuxtel.net>
Tue, 25 Apr 2017 21:16:03 +0000 (22:16 +0100)
the packager currently bundles the python language libraries into mod_python and doesn't provide any perl language libraries

removed ESL libraries from mod_python and added them to the new package python-ESL
added new package perl-ESL that contains the perl ESL libs

freeswitch.spec

index 0b7438662e59a9d2d13ab9d438b5055c9c55a5ac..dfa42da551dcdf0d6fee224657c7a1239a26b8d1 100644 (file)
@@ -1335,6 +1335,24 @@ Requires:        %{name} = %{version}-%{release}
 %description xml-rpc
 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
 ######################################################################################################################
@@ -1646,6 +1664,7 @@ unset MODULES
 
 cd libs/esl
 %{__make} pymod
+%{__make} perlmod
 
 
 ######################################################################################################################
@@ -1665,6 +1684,7 @@ cd libs/esl
 #install the esl stuff
 cd libs/esl
 %{__make} DESTDIR=%{buildroot} pymod-install
+%{__make} DESTDIR=%{buildroot} perlmod-install
 
 %if %{build_py26_esl}
 #install esl for python 26
@@ -2378,9 +2398,6 @@ fi
 
 %files python
 %{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
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
 
@@ -2516,12 +2533,32 @@ fi
 %files xml-curl
 %{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
+* Sun Mar 13 2016 - Matthew Vale
+- add perl and python ESL language module packages
 * Thu Jul 09 2015 - Artur ZaprzaƂa
 - add systemd service file for CentOS 7
 * Thu Jun 25 2015 - s.safarov@gmail.com