Skip to content

Commit c41ac53

Browse files
committed
RPM spec: modernize with Python 3.12 for EL8+
- since we no longer build for CentOS modernize Python to 3.12 for EL8, EL9
1 parent 4658192 commit c41ac53

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

freeswitch.spec

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# spec file for package freeswitch
44
#
55
# 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
77
# freeswitch-lan-de freeswitch-lang-en freeswitch-lang-fr freeswitch-lang-hu freeswitch-lang-ru
88
# and others
99
#
@@ -1127,14 +1127,14 @@ BuildRequires: perl-ExtUtils-Embed
11271127

11281128
%description perl
11291129

1130-
%package python
1130+
%package python3
11311131
Summary: Python support for the FreeSWITCH open source telephony platform
11321132
Group: System/Libraries
11331133
Requires: %{name} = %{version}-%{release}
1134-
Requires: python
1135-
BuildRequires: python-devel
1134+
Requires: python3.12
1135+
BuildRequires: python3.12-devel, python3.12-setuptools
11361136

1137-
%description python
1137+
%description python3
11381138

11391139
%if %{build_mod_v8}
11401140
%package v8
@@ -1276,13 +1276,13 @@ Group: System Environment/Libraries
12761276
%description -n perl-ESL
12771277
The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface.
12781278

1279-
%package -n python-ESL
1279+
%package -n python3-ESL
12801280
Summary: The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
12811281
Group: System Environment/Libraries
1282-
Requires: python
1283-
BuildRequires: python-devel
1282+
Requires: python3.12
1283+
BuildRequires: python3.12-devel, python3.12-setuptools
12841284

1285-
%description -n python-ESL
1285+
%description -n python3-ESL
12861286
The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.
12871287

12881288
######################################################################################################################
@@ -1493,7 +1493,7 @@ FORMATS_MODULES+=" formats/mod_ssml"
14931493
# Embedded Languages
14941494
#
14951495
######################################################################################################################
1496-
LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python "
1496+
LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python3 "
14971497
%if %{build_mod_v8}
14981498
LANGUAGES_MODULES+="languages/mod_v8"
14991499
%endif
@@ -1606,13 +1606,14 @@ autoreconf --force --install
16061606
--with-odbc \
16071607
--with-erlang \
16081608
--with-openssl \
1609+
--with-python3=/usr/bin/python3.12 \
16091610
%{?configure_options}
16101611

16111612
unset MODULES
16121613
%{__make}
16131614

16141615
cd libs/esl
1615-
%{__make} pymod
1616+
%{__make} py3mod
16161617
%{__make} perlmod
16171618

16181619

@@ -1642,7 +1643,7 @@ cd libs/esl
16421643

16431644
#install the esl stuff
16441645
cd libs/esl
1645-
%{__make} DESTDIR=%{buildroot} pymod-install
1646+
%{__make} DESTDIR=%{buildroot} py3mod-install
16461647
%{__make} DESTDIR=%{buildroot} perlmod-install
16471648

16481649
%if %{build_py26_esl}
@@ -2332,7 +2333,7 @@ fi
23322333
%{prefix}/perl/*
23332334
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/perl.conf.xml
23342335

2335-
%files python
2336+
%files python3
23362337
%{MODINSTDIR}/mod_python*.so*
23372338
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/python.conf.xml
23382339

@@ -2482,7 +2483,7 @@ fi
24822483
%{perl_archlib}/ESL/Dispatch.pm
24832484
%{perl_archlib}/ESL/IVR.pm
24842485

2485-
%files -n python-ESL
2486+
%files -n python3-ESL
24862487
%attr(0644, root, bin) /usr/lib*/python*/site-packages/freeswitch.py*
24872488
%attr(0755, root, bin) /usr/lib*/python*/site-packages/_ESL.so*
24882489
%attr(0755, root, bin) /usr/lib*/python*/site-packages/ESL.py*

0 commit comments

Comments
 (0)