Browse code

pkg/kamailio: fixed python3 deps for RHEL 6

(cherry picked from commit 5f31a56acd25f892e6275e6ac786677f2eb2be0c)

Sergey Safarov authored on 12/04/2020 16:03:52 • Henning Westerholt committed on 13/05/2020 12:23:11
Showing 1 changed files
... ...
@@ -1092,6 +1092,10 @@ UUID module for Kamailio.
1092 1092
 
1093 1093
 %prep
1094 1094
 %setup -n %{name}-%{ver}
1095
+# python3 does not exist in RHEL 6 and similar dist.
1096
+%if 0%{?rhel} == 6
1097
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1098
+%endif
1095 1099
 
1096 1100
 %build
1097 1101
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}