Packages: added support for Amazon Linux.

This commit is contained in:
Andrei Belov
2018-01-22 16:39:31 +03:00
parent be8df0631a
commit 0c4ec72ca8
12 changed files with 302 additions and 2 deletions

View File

@@ -11,8 +11,33 @@ RELEASE ?= $(DEFAULT_RELEASE)
BUILD_DEPENDS_unit = libxml2 libxslt rpm-build rpmlint
BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
ifeq ($(shell rpm --eval "%{?rhel}"), 6)
OSVER = centos6
else ifeq ($(shell rpm --eval "%{?rhel}"), 7)
OSVER = centos7
else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
OSVER = amazonlinux1
BUILD_DEPENDS += system-rpm-config
else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
OSVER = amazonlinux2
endif
MODULES=
-include Makefile.*
ifneq (,$(findstring $(OSVER),centos6 centos7 amazonlinux2))
include Makefile.php
include Makefile.python
include Makefile.go
endif
ifeq ($(OSVER), amazonlinux1)
include Makefile.php
include Makefile.python27
include Makefile.python34
include Makefile.python35
include Makefile.python36
include Makefile.go
endif
CONFIGURE_ARGS=\
--prefix=/usr \