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
... ...
@@ -1833,8 +1833,14 @@ fi
1833 1833
 
1834 1834
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1835 1835
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1836
+%if 0%{?rhel} > 8
1836 1837
 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1837 1838
 %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1839
+%endif
1840
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
1841
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1842
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1843
+%endif
1838 1844
 
1839 1845
 %{_mandir}/man5/*
1840 1846
 %{_mandir}/man8/*