Packages: removed CentOS 7 due to EOL
This commit is contained in:
parent
929a275a4b
commit
63fb95ed5f
4 changed files with 3 additions and 28 deletions
|
@ -10,9 +10,7 @@ RELEASE ?= $(DEFAULT_RELEASE)
|
||||||
|
|
||||||
PACKAGE_VENDOR = NGINX Packaging <nginx-packaging@f5.com>
|
PACKAGE_VENDOR = NGINX Packaging <nginx-packaging@f5.com>
|
||||||
|
|
||||||
ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo $$?), 0)
|
ifeq ($(shell rpm --eval "%{?rhel}"), 8)
|
||||||
OSVER = centos7
|
|
||||||
else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
|
|
||||||
OSVER = centos8
|
OSVER = centos8
|
||||||
else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
|
else ifeq ($(shell rpm --eval "%{?rhel}"), 9)
|
||||||
OSVER = centos9
|
OSVER = centos9
|
||||||
|
@ -26,10 +24,6 @@ endif
|
||||||
|
|
||||||
BUILD_DEPENDS_unit = gcc rpm-build rpmlint clang llvm
|
BUILD_DEPENDS_unit = gcc rpm-build rpmlint clang llvm
|
||||||
|
|
||||||
ifeq ($(OSVER), centos7)
|
|
||||||
BUILD_DEPENDS_unit += which
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(findstring $(OSVER),amazonlinux2))
|
ifneq (,$(findstring $(OSVER),amazonlinux2))
|
||||||
BUILD_DEPENDS_unit += libxml2 libxslt openssl11-devel
|
BUILD_DEPENDS_unit += libxml2 libxslt openssl11-devel
|
||||||
else
|
else
|
||||||
|
@ -40,17 +34,6 @@ BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
|
||||||
|
|
||||||
MODULES=
|
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)
|
ifeq ($(OSVER), centos8)
|
||||||
include Makefile.php
|
include Makefile.php
|
||||||
include Makefile.python27
|
include Makefile.python27
|
||||||
|
|
|
@ -15,7 +15,7 @@ MODULE_SOURCES_python27= unit.example-python-app \
|
||||||
|
|
||||||
ifneq (,$(findstring $(OSVER),centos8))
|
ifneq (,$(findstring $(OSVER),centos8))
|
||||||
BUILD_DEPENDS_python27= python2-devel
|
BUILD_DEPENDS_python27= python2-devel
|
||||||
else ifneq (,$(findstring $(OSVER),centos7 amazonlinux2))
|
else ifneq (,$(findstring $(OSVER),amazonlinux2))
|
||||||
BUILD_DEPENDS_python27= python-devel
|
BUILD_DEPENDS_python27= python-devel
|
||||||
else
|
else
|
||||||
BUILD_DEPENDS_python27= python27-devel
|
BUILD_DEPENDS_python27= python27-devel
|
||||||
|
@ -24,7 +24,7 @@ endif
|
||||||
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
|
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
|
||||||
|
|
||||||
define MODULE_DEFINITIONS_python27
|
define MODULE_DEFINITIONS_python27
|
||||||
%if (0%{?rhel} == 7) || (0%{?amzn} == 2)
|
%if 0%{?amzn} == 2
|
||||||
Obsoletes: unit-python
|
Obsoletes: unit-python
|
||||||
%endif
|
%endif
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -13,11 +13,7 @@ MODULE_INSTARGS_python36= python3.6-install
|
||||||
MODULE_SOURCES_python36= unit.example-python-app \
|
MODULE_SOURCES_python36= unit.example-python-app \
|
||||||
unit.example-python36-config
|
unit.example-python36-config
|
||||||
|
|
||||||
ifneq (,$(findstring $(OSVER),centos7))
|
|
||||||
BUILD_DEPENDS_python36= python3-devel
|
|
||||||
else
|
|
||||||
BUILD_DEPENDS_python36= python36-devel
|
BUILD_DEPENDS_python36= python36-devel
|
||||||
endif
|
|
||||||
|
|
||||||
BUILD_DEPENDS+= $(BUILD_DEPENDS_python36)
|
BUILD_DEPENDS+= $(BUILD_DEPENDS_python36)
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# distribution specific definitions
|
# distribution specific definitions
|
||||||
%define bdir %{_builddir}/%{name}-%{version}
|
%define bdir %{_builddir}/%{name}-%{version}
|
||||||
|
|
||||||
%if (0%{?rhel} == 7 && 0%{?amzn} == 0)
|
|
||||||
%define dist .el7
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%%MODULE_DEFINITIONS%%
|
%%MODULE_DEFINITIONS%%
|
||||||
|
|
||||||
%if 0%{?rhel}%{?fedora}
|
%if 0%{?rhel}%{?fedora}
|
||||||
|
|
Loading…
Reference in a new issue