summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2021-04-08 10:55:30 +0300
committerKonstantin Pavlov <thresh@nginx.com>2021-04-08 10:55:30 +0300
commit30922c5741af0c712f465d0e98b71f8848c0db91 (patch)
tree0c3fd7ef12ceb0a3ddf9a48b4bbf76294da912f0
parent6c97a1a069f0ae8cf683c8364fb7f9dabc5e89cb (diff)
downloadunit-30922c5741af0c712f465d0e98b71f8848c0db91.tar.gz
unit-30922c5741af0c712f465d0e98b71f8848c0db91.tar.bz2
Packages: moved Amazon Linux 2 packages to use openssl 1.1
Diffstat (limited to '')
-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