Fix conditional for Amazon Linux 2023 in repoconfig spec file. (#17056)
In Amazon Linux 2 the macros centos_ver, amzn2 and amzn are defined. Amazon Linux 2023 defines fedora, amzn2023 and amzn.
Paul Szymanski committed
Mar 29, 2024 at 06:27 UTC
a43d435c261d43c003e05ee82ca2de629008eb14
1 file changed
+5
-6
packaging/repoconfig/netdata-repo.spec
+5
-6
@@ -49,21 +49,20 @@ install -pm 644 %{SOURCE3} ./netdata-edge.repo
49
%endif
50
51
%if 0%{?centos_ver}
52
-# Amazon Linux 2 looks like CentOS, but with extra macros.
53
-%if 0%{?amzn2}
54
-install -pm 644 %{SOURCE8} ./netdata.repo
55
-install -pm 644 %{SOURCE9} ./netdata-edge.repo
56
-%else
52
install -pm 644 %{SOURCE4} ./netdata.repo
53
install -pm 644 %{SOURCE5} ./netdata-edge.repo
54
%endif
60
-%endif
55
56
%if 0%{?oraclelinux}
57
install -pm 644 %{SOURCE6} ./netdata.repo
58
install -pm 644 %{SOURCE7} ./netdata-edge.repo
59
%endif
60
61
+%if 0%{?amzn}
62
+install -pm 644 %{SOURCE8} ./netdata.repo
63
+install -pm 644 %{SOURCE9} ./netdata-edge.repo
64
+%endif
65
+
66
%build
67
true
68