Browse Source

pkg/kamailio: fixed python3 deps for RHEL 6

(cherry picked from commit 5f31a56acd25f892e6275e6ac786677f2eb2be0c)
Sergey Safarov 5 years ago
parent
commit
59eb7e9efc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pkg/kamailio/obs/kamailio.spec

+ 4 - 0
pkg/kamailio/obs/kamailio.spec

@@ -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}