|
3 | 3 | # spec file for package freeswitch
|
4 | 4 | #
|
5 | 5 | # includes module(s): freeswitch-devel freeswitch-codec-passthru-amr freeswitch-codec-passthru-amrwb freeswitch-codec-passthru-g729
|
6 |
| -# freeswitch-codec-passthru-g7231 freeswitch-lua freeswitch-mariadb freeswitch-pgsql freeswitch-perl freeswitch-python freeswitch-v8 freeswitch-signalwire |
| 6 | +# freeswitch-codec-passthru-g7231 freeswitch-lua freeswitch-mariadb freeswitch-pgsql freeswitch-perl freeswitch-python3 freeswitch-v8 freeswitch-signalwire |
7 | 7 | # freeswitch-lan-de freeswitch-lang-en freeswitch-lang-fr freeswitch-lang-hu freeswitch-lang-ru
|
8 | 8 | # and others
|
9 | 9 | #
|
@@ -1127,14 +1127,14 @@ BuildRequires: perl-ExtUtils-Embed
|
1127 | 1127 |
|
1128 | 1128 | %description perl
|
1129 | 1129 |
|
1130 |
| -%package python |
| 1130 | +%package python3 |
1131 | 1131 | Summary: Python support for the FreeSWITCH open source telephony platform
|
1132 | 1132 | Group: System/Libraries
|
1133 | 1133 | Requires: %{name} = %{version}-%{release}
|
1134 |
| -Requires: python |
1135 |
| -BuildRequires: python-devel |
| 1134 | +Requires: python3.12 |
| 1135 | +BuildRequires: python3.12-devel, python3.12-setuptools |
1136 | 1136 |
|
1137 |
| -%description python |
| 1137 | +%description python3 |
1138 | 1138 |
|
1139 | 1139 | %if %{build_mod_v8}
|
1140 | 1140 | %package v8
|
@@ -1276,13 +1276,13 @@ Group: System Environment/Libraries
|
1276 | 1276 | %description -n perl-ESL
|
1277 | 1277 | The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface.
|
1278 | 1278 |
|
1279 |
| -%package -n python-ESL |
| 1279 | +%package -n python3-ESL |
1280 | 1280 | Summary: The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
|
1281 | 1281 | Group: System Environment/Libraries
|
1282 |
| -Requires: python |
1283 |
| -BuildRequires: python-devel |
| 1282 | +Requires: python3.12 |
| 1283 | +BuildRequires: python3.12-devel, python3.12-setuptools |
1284 | 1284 |
|
1285 |
| -%description -n python-ESL |
| 1285 | +%description -n python3-ESL |
1286 | 1286 | The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
|
1287 | 1287 |
|
1288 | 1288 | ######################################################################################################################
|
@@ -1493,7 +1493,7 @@ FORMATS_MODULES+=" formats/mod_ssml"
|
1493 | 1493 | # Embedded Languages
|
1494 | 1494 | #
|
1495 | 1495 | ######################################################################################################################
|
1496 |
| -LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python " |
| 1496 | +LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python3 " |
1497 | 1497 | %if %{build_mod_v8}
|
1498 | 1498 | LANGUAGES_MODULES+="languages/mod_v8"
|
1499 | 1499 | %endif
|
@@ -1606,13 +1606,14 @@ autoreconf --force --install
|
1606 | 1606 | --with-odbc \
|
1607 | 1607 | --with-erlang \
|
1608 | 1608 | --with-openssl \
|
| 1609 | +--with-python3=/usr/bin/python3.12 \ |
1609 | 1610 | %{?configure_options}
|
1610 | 1611 |
|
1611 | 1612 | unset MODULES
|
1612 | 1613 | %{__make}
|
1613 | 1614 |
|
1614 | 1615 | cd libs/esl
|
1615 |
| -%{__make} pymod |
| 1616 | +%{__make} py3mod |
1616 | 1617 | %{__make} perlmod
|
1617 | 1618 |
|
1618 | 1619 |
|
@@ -1642,7 +1643,7 @@ cd libs/esl
|
1642 | 1643 |
|
1643 | 1644 | #install the esl stuff
|
1644 | 1645 | cd libs/esl
|
1645 |
| -%{__make} DESTDIR=%{buildroot} pymod-install |
| 1646 | +%{__make} DESTDIR=%{buildroot} py3mod-install |
1646 | 1647 | %{__make} DESTDIR=%{buildroot} perlmod-install
|
1647 | 1648 |
|
1648 | 1649 | %if %{build_py26_esl}
|
|
2332 | 2333 | %{prefix}/perl/*
|
2333 | 2334 | %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/perl.conf.xml
|
2334 | 2335 |
|
2335 |
| -%files python |
| 2336 | +%files python3 |
2336 | 2337 | %{MODINSTDIR}/mod_python*.so*
|
2337 | 2338 | %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
|
2338 | 2339 |
|
|
2482 | 2483 | %{perl_archlib}/ESL/Dispatch.pm
|
2483 | 2484 | %{perl_archlib}/ESL/IVR.pm
|
2484 | 2485 |
|
2485 |
| -%files -n python-ESL |
| 2486 | +%files -n python3-ESL |
2486 | 2487 | %attr(0644, root, bin) /usr/lib*/python*/site-packages/freeswitch.py*
|
2487 | 2488 | %attr(0755, root, bin) /usr/lib*/python*/site-packages/_ESL.so*
|
2488 | 2489 | %attr(0755, root, bin) /usr/lib*/python*/site-packages/ESL.py*
|
|
0 commit comments