Browse code

pkg/kamailio: fixed python3 deps for RHEL 6

Sergey Safarov authored on 12/04/2020 16:03:52
Showing 1 changed files
... ...
@@ -1113,6 +1113,10 @@ UUID module for Kamailio.
1113 1113
 
1114 1114
 %prep
1115 1115
 %setup -n %{name}-%{ver}
1116
+# python3 does not exist in RHEL 6 and similar dist.
1117
+%if 0%{?rhel} == 6
1118
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1119
+%endif
1116 1120
 
1117 1121
 %build
1118 1122
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}