Browse code

pkg: add support for AlmaLinux and Rocky Linux

(cherry picked from commit b3d3cb366b67941ecebd297038522580114e3a0b)

SPChan authored on 11/06/2021 03:23:55 • Sergey Safarov committed on 20/06/2021 09:20:34
Showing 1 changed files
... ...
@@ -81,10 +81,23 @@
81 81
 %bcond_without xmlrpc
82 82
 %endif
83 83
 
84
-%if 0%{?centos_ver} == 8
84
+%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
85
+%define rhel_rebuild 8
86
+% if 0%{?centos_ver}
85 87
 %define dist_name centos
86 88
 %define dist_version %{?centos}
87 89
 %define dist .el8.centos
90
+%endif
91
+% if 0%{?almalinux_ver}
92
+%define dist_name centos
93
+%define dist_version %{?almalinux}
94
+%define dist .el8.almalinux
95
+%endif
96
+% if 0%{?rocky_ver}
97
+%define dist_name centos
98
+%define dist_version %{?rocky}
99
+%define dist .el8.rocky
100
+%endif
88 101
 %bcond_without cnxcc
89 102
 %bcond_with dnssec
90 103
 %bcond_without evapi
... ...
@@ -186,7 +199,7 @@
186 199
 %bcond_without xmlrpc
187 200
 %endif
188 201
 
189
-%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
202
+%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
190 203
 %define dist_name rhel
191 204
 %define dist_version %{?rhel}
192 205
 %bcond_without cnxcc