Packaging: added support for RHEL 9.

This commit is contained in:
Konstantin Pavlov
2022-05-31 18:35:39 +04:00
parent caa05887ff
commit 3d53bba5b3
2 changed files with 13 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ else ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo
OSVER = centos7 OSVER = centos7
else ifeq ($(shell rpm --eval "%{?rhel}"), 8) else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
OSVER = centos8 OSVER = centos8
else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
OSVER = centos9
else ifeq ($(shell rpm --eval "%{?amzn}"), 1) else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
OSVER = amazonlinux1 OSVER = amazonlinux1
else ifeq ($(shell rpm --eval "%{?amzn}"), 2) else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
@@ -84,6 +86,16 @@ include Makefile.jsc8
include Makefile.jsc11 include Makefile.jsc11
endif endif
ifeq ($(OSVER), centos9)
include Makefile.php
include Makefile.python39
include Makefile.go
include Makefile.perl
include Makefile.jsc-common
include Makefile.jsc8
include Makefile.jsc11
endif
ifeq ($(OSVER), amazonlinux1) ifeq ($(OSVER), amazonlinux1)
include Makefile.php include Makefile.php
include Makefile.python27 include Makefile.python27

View File

@@ -13,7 +13,7 @@ MODULE_INSTARGS_python39= python3.9-install
MODULE_SOURCES_python39= unit.example-python-app \ MODULE_SOURCES_python39= unit.example-python-app \
unit.example-python39-config unit.example-python39-config
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2)) ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2 centos9))
BUILD_DEPENDS_python39= python3-devel BUILD_DEPENDS_python39= python3-devel
else else
BUILD_DEPENDS_python39= python39-devel BUILD_DEPENDS_python39= python39-devel