Browse code

Merge 36b9689e9d9c0735362f8e56998d4ea76b1c8ec2 into ffecc676c4c5d947c9a3163570be1aaaf0e5e8d9

space88man authored on 11/06/2021 07:30:19 • GitHub committed on 11/06/2021 07:30:19
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