summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-11-16 17:06:42 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-11-16 17:06:42 +0400
commit0feab91c5ba1bfd3e1e71cadb4cb0687bae846cd (patch)
treeb9ef7c40fd1a3851a82b9a3796125040bd2a48f6 /pkg/rpm/Makefile
parent09ac678943e253dfea65f84cd84963d863580efe (diff)
downloadunit-0feab91c5ba1bfd3e1e71cadb4cb0687bae846cd.tar.gz
unit-0feab91c5ba1bfd3e1e71cadb4cb0687bae846cd.tar.bz2
Packages: added Fedora 37 support.
Diffstat (limited to 'pkg/rpm/Makefile')
-rw-r--r--pkg/rpm/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index ef824c65..a1ac2af9 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -18,8 +18,10 @@ else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
OSVER = centos9
else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
OSVER = amazonlinux2
-else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 35'`; echo $$?),0)
+else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 35 -a 0%{?fedora} -le 36'`; echo $$?),0)
OSVER = fedora
+else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 37'`; echo $$?),0)
+OSVER = fedora37
endif
BUILD_DEPENDS_unit = gcc rpm-build rpmlint
@@ -93,6 +95,17 @@ include Makefile.jsc8
include Makefile.jsc11
endif
+ifeq ($(OSVER), fedora37)
+include Makefile.php
+include Makefile.python311
+include Makefile.go
+include Makefile.perl
+include Makefile.ruby
+include Makefile.jsc-common
+include Makefile.jsc8
+include Makefile.jsc11
+endif
+
CONFIGURE_ARGS=\
--prefix=/usr \
--state=%{_sharedstatedir}/unit \