summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-05-31 18:35:39 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-05-31 18:35:39 +0400
commit3d53bba5b373fc80d9bf7f3e50f63639637e228c (patch)
tree99600917905773825c505e305a6426f012f28039 /pkg/rpm/Makefile
parentcaa05887ff70bbd6338b129959a234ef56f1a287 (diff)
downloadunit-3d53bba5b373fc80d9bf7f3e50f63639637e228c.tar.gz
unit-3d53bba5b373fc80d9bf7f3e50f63639637e228c.tar.bz2
Packaging: added support for RHEL 9.
Diffstat (limited to '')
-rw-r--r--pkg/rpm/Makefile12
-rw-r--r--pkg/rpm/Makefile.python392
2 files changed, 13 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index 73a111c8..a360b36e 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -16,6 +16,8 @@ else ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo
OSVER = centos7
else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
OSVER = centos8
+else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
+OSVER = centos9
else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
OSVER = amazonlinux1
else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
@@ -84,6 +86,16 @@ include Makefile.jsc8
include Makefile.jsc11
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)
include Makefile.php
include Makefile.python27
diff --git a/pkg/rpm/Makefile.python39 b/pkg/rpm/Makefile.python39
index 8e444e56..3f791111 100644
--- a/pkg/rpm/Makefile.python39
+++ b/pkg/rpm/Makefile.python39
@@ -13,7 +13,7 @@ MODULE_INSTARGS_python39= python3.9-install
MODULE_SOURCES_python39= unit.example-python-app \
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
else
BUILD_DEPENDS_python39= python39-devel