Packages: removed CentOS 7 due to EOL

This commit is contained in:
Konstantin Pavlov 2024-06-18 09:50:47 -07:00 committed by Konstantin Pavlov
parent 929a275a4b
commit 63fb95ed5f
4 changed files with 3 additions and 28 deletions

View file

@ -10,9 +10,7 @@ RELEASE ?= $(DEFAULT_RELEASE)
PACKAGE_VENDOR = NGINX Packaging <nginx-packaging@f5.com>
ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo $$?), 0)
OSVER = centos7
else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
ifeq ($(shell rpm --eval "%{?rhel}"), 8)
OSVER = centos8
else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
OSVER = centos9
@ -26,10 +24,6 @@ endif
BUILD_DEPENDS_unit = gcc rpm-build rpmlint clang llvm
ifeq ($(OSVER), centos7)
BUILD_DEPENDS_unit += which
endif
ifneq (,$(findstring $(OSVER),amazonlinux2))
BUILD_DEPENDS_unit += libxml2 libxslt openssl11-devel
else
@ -40,17 +34,6 @@ BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
MODULES=
ifeq ($(OSVER), centos7)
include Makefile.php
include Makefile.python27
include Makefile.python36
include Makefile.go
include Makefile.perl
include Makefile.jsc-common
include Makefile.jsc8
include Makefile.jsc11
endif
ifeq ($(OSVER), centos8)
include Makefile.php
include Makefile.python27

View file

@ -15,7 +15,7 @@ MODULE_SOURCES_python27= unit.example-python-app \
ifneq (,$(findstring $(OSVER),centos8))
BUILD_DEPENDS_python27= python2-devel
else ifneq (,$(findstring $(OSVER),centos7 amazonlinux2))
else ifneq (,$(findstring $(OSVER),amazonlinux2))
BUILD_DEPENDS_python27= python-devel
else
BUILD_DEPENDS_python27= python27-devel
@ -24,7 +24,7 @@ endif
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
define MODULE_DEFINITIONS_python27
%if (0%{?rhel} == 7) || (0%{?amzn} == 2)
%if 0%{?amzn} == 2
Obsoletes: unit-python
%endif
endef

View file

@ -13,11 +13,7 @@ MODULE_INSTARGS_python36= python3.6-install
MODULE_SOURCES_python36= unit.example-python-app \
unit.example-python36-config
ifneq (,$(findstring $(OSVER),centos7))
BUILD_DEPENDS_python36= python3-devel
else
BUILD_DEPENDS_python36= python36-devel
endif
BUILD_DEPENDS+= $(BUILD_DEPENDS_python36)

View file

@ -1,10 +1,6 @@
# distribution specific definitions
%define bdir %{_builddir}/%{name}-%{version}
%if (0%{?rhel} == 7 && 0%{?amzn} == 0)
%define dist .el7
%endif
%%MODULE_DEFINITIONS%%
%if 0%{?rhel}%{?fedora}