20c20
< else ifneq (,$(findstring $(OSVER),centos7))
---
> else ifneq (,$(findstring $(OSVER),centos7 amazonlinux2))
29c29
< %if (0%{?rhel} == 7)
---
> %if (0%{?rhel} == 7) || (0%{?amzn} == 2)