summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rpm/Makefile4
-rw-r--r--pkg/rpm/unit.spec.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 75327c49..f9c57b5b 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -41,8 +41,12 @@ endif
ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
BUILD_DEPENDS_unit += libxml2-tools libxslt1 libopenssl-devel
else
+ifneq (,$(findstring $(OSVER),amazonlinux2))
+BUILD_DEPENDS_unit += libxml2 libxslt openssl11-devel
+else
BUILD_DEPENDS_unit += libxml2 libxslt openssl-devel
endif
+endif
BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in
index 9d16265d..07ca9e6f 100644
--- a/pkg/rpm/unit.spec.in
+++ b/pkg/rpm/unit.spec.in
@@ -4,8 +4,12 @@
%if 0%{?rhel}%{?fedora}
BuildRequires: gcc
+%if 0%{?amzn2}
+BuildRequires: openssl11-devel
+%else
BuildRequires: openssl-devel
%endif
+%endif
%if 0%{?rhel}
%if 0%{?amzn} == 0