Browse code

pkg/kamailio/obs: fixed packaging for RHEL 7 and RHEL 6 based dists [skip ci]

(cherry picked from commit 4a6aa75dd1de4e33ba6ac3f1d770a1beed61e157)

Sergey Safarov authored on 16/08/2022 12:30:56
Showing 1 changed files
... ...
@@ -1809,8 +1809,14 @@ fi
1809 1809
 
1810 1810
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1811 1811
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1812
+%if 0%{?rhel} > 8
1812 1813
 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1813 1814
 %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1815
+%endif
1816
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
1817
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1818
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1819
+%endif
1814 1820
 
1815 1821
 %{_mandir}/man5/*
1816 1822
 %{_mandir}/man8/*