summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile.python
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-01-22 16:39:31 +0300
committerAndrei Belov <defan@nginx.com>2018-01-22 16:39:31 +0300
commit0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939 (patch)
tree0f1610a6b727325a80ce3e7d458a457e3ec760ac /pkg/rpm/Makefile.python
parentbe8df0631a6fa4e5afa8c03ed5b84cec72da20d4 (diff)
downloadunit-0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939.tar.gz
unit-0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939.tar.bz2
Packages: added support for Amazon Linux.
Diffstat (limited to 'pkg/rpm/Makefile.python')
-rw-r--r--pkg/rpm/Makefile.python5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/rpm/Makefile.python b/pkg/rpm/Makefile.python
index 21ba8a5d..f13179b5 100644
--- a/pkg/rpm/Makefile.python
+++ b/pkg/rpm/Makefile.python
@@ -12,7 +12,12 @@ MODULE_INSTARGS_python= python-install
MODULE_SOURCES_python= unit.example-python-app \
unit.example-python-config
+ifeq ($(shell rpm --eval "%{?amzn}"), 1)
+BUILD_DEPENDS_python= python26-devel
+else
BUILD_DEPENDS_python= python-devel
+endif
+
BUILD_DEPENDS+= $(BUILD_DEPENDS_python)
define MODULE_PREINSTALL_python