summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile.python27
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-12-10 19:35:12 +0300
committerAndrei Belov <defan@nginx.com>2019-12-10 19:35:12 +0300
commit68a22923728ddbbda25bc3ee048520a76056fb33 (patch)
treeb68aaf2fbd17299d718da3bcf08d1fc5930ce1fd /pkg/rpm/Makefile.python27
parent55a368e5058451b99600b983f6cb98402fcd57cc (diff)
downloadunit-68a22923728ddbbda25bc3ee048520a76056fb33.tar.gz
unit-68a22923728ddbbda25bc3ee048520a76056fb33.tar.bz2
Packages: added Python 3 support on Amazon Linux 2 (LTS).
Diffstat (limited to 'pkg/rpm/Makefile.python27')
-rw-r--r--pkg/rpm/Makefile.python274
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rpm/Makefile.python27 b/pkg/rpm/Makefile.python27
index 19e64d43..079a8512 100644
--- a/pkg/rpm/Makefile.python27
+++ b/pkg/rpm/Makefile.python27
@@ -17,7 +17,7 @@ ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
BUILD_DEPENDS_python27= python-devel
else ifneq (,$(findstring $(OSVER),fedora centos8))
BUILD_DEPENDS_python27= python2-devel
-else ifneq (,$(findstring $(OSVER),centos7))
+else ifneq (,$(findstring $(OSVER),centos7 amazonlinux2))
BUILD_DEPENDS_python27= python-devel
else
BUILD_DEPENDS_python27= python27-devel
@@ -26,7 +26,7 @@ endif
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
define MODULE_DEFINITIONS_python27
-%if (0%{?rhel} == 7)
+%if (0%{?rhel} == 7) || (0%{?amzn} == 2)
Obsoletes: unit-python
%endif
endef