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
... ...
@@ -1786,8 +1786,14 @@ fi
1786 1786
 
1787 1787
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1788 1788
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1789
+%if 0%{?rhel} > 8
1789 1790
 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1790 1791
 %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1792
+%endif
1793
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
1794
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1795
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1796
+%endif
1791 1797
 
1792 1798
 %{_mandir}/man5/*
1793 1799
 %{_mandir}/man8/*