(cherry picked from commit 5f31a56acd25f892e6275e6ac786677f2eb2be0c)
@@ -1092,6 +1092,10 @@ UUID module for Kamailio.
%prep
%setup -n %{name}-%{ver}
+# python3 does not exist in RHEL 6 and similar dist.
+%if 0%{?rhel} == 6
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
+%endif
%build
ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}