Module: kamailio
Branch: 5.5
Commit: 0f0e7e8f139042e2dd03e01a6ac66d32727dc69a
URL:
https://github.com/kamailio/kamailio/commit/0f0e7e8f139042e2dd03e01a6ac66d3…
Author: SPChan <shihping.chan(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2021-06-20T12:20:34+03:00
pkg: add support for AlmaLinux and Rocky Linux
(cherry picked from commit b3d3cb366b67941ecebd297038522580114e3a0b)
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/0f0e7e8f139042e2dd03e01a6ac66d3…
Patch:
https://github.com/kamailio/kamailio/commit/0f0e7e8f139042e2dd03e01a6ac66d3…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index e095ac9b5e..ce12e50579 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -81,10 +81,23 @@
%bcond_without xmlrpc
%endif
-%if 0%{?centos_ver} == 8
+%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
+%define rhel_rebuild 8
+% if 0%{?centos_ver}
%define dist_name centos
%define dist_version %{?centos}
%define dist .el8.centos
+%endif
+% if 0%{?almalinux_ver}
+%define dist_name centos
+%define dist_version %{?almalinux}
+%define dist .el8.almalinux
+%endif
+% if 0%{?rocky_ver}
+%define dist_name centos
+%define dist_version %{?rocky}
+%define dist .el8.rocky
+%endif
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
@@ -186,7 +199,7 @@
%bcond_without xmlrpc
%endif
-%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
+%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
%define dist_name rhel
%define dist_version %{?rhel}
%bcond_without cnxcc