summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile.python
diff options
context:
space:
mode:
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