From 9a1883f32a4cf39c1808d9979ecc13463b5ae932 Mon Sep 17 00:00:00 2001 From: Sergey Safarov Date: Tue, 16 Aug 2022 12:30:56 +0000 Subject: [PATCH] pkg/kamailio/obs: fixed packaging for RHEL 7 and RHEL 6 based dists [skip ci] (cherry picked from commit 4a6aa75dd1de4e33ba6ac3f1d770a1beed61e157) --- pkg/kamailio/obs/kamailio.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec index cab1a685437..c76b3c95cfb 100644 --- a/pkg/kamailio/obs/kamailio.spec +++ b/pkg/kamailio/obs/kamailio.spec @@ -1786,8 +1786,14 @@ fi %dir %{_libdir}/kamailio/kamctl/dbtextdb %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py +%if 0%{?rhel} > 8 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__ %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc +%endif +%if 0%{?rhel} == 6 || 0%{?rhel} == 7 +%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc +%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo +%endif %{_mandir}/man5/* %{_mandir}/man8/*