Packages: added Fedora 37 support.

This commit is contained in:
Konstantin Pavlov
2022-11-16 17:06:42 +04:00
parent 09ac678943
commit 0feab91c5b
3 changed files with 85 additions and 1 deletions

View File

@@ -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 \