[sr-dev] git:master:b3d3cb36: pkg: add support for AlmaLinux and Rocky Linux
sergey-safarov
s.safarov at gmail.com
Fri Jun 11 13:41:17 CEST 2021
Module: kamailio
Branch: master
Commit: b3d3cb366b67941ecebd297038522580114e3a0b
URL: https://github.com/kamailio/kamailio/commit/b3d3cb366b67941ecebd297038522580114e3a0b
Author: SPChan <shihping.chan at gmail.com>
Committer: sergey-safarov <s.safarov at gmail.com>
Date: 2021-06-11T14:41:12+03:00
pkg: add support for AlmaLinux and Rocky Linux
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff: https://github.com/kamailio/kamailio/commit/b3d3cb366b67941ecebd297038522580114e3a0b.diff
Patch: https://github.com/kamailio/kamailio/commit/b3d3cb366b67941ecebd297038522580114e3a0b.patch
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 4f5a833a57..74912950eb 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
More information about the sr-dev
mailing list