summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/rpm/Makefile')
-rw-r--r--pkg/rpm/Makefile78
1 files changed, 2 insertions, 76 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index a360b36e..bbe44fe5 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -10,25 +10,15 @@ RELEASE ?= $(DEFAULT_RELEASE)
PACKAGE_VENDOR = NGINX Packaging <nginx-packaging@f5.com>
-ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 6 -a 0%{?amzn} -eq 0'`; echo $$?), 0)
-OSVER = centos6
-else ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo $$?), 0)
+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)
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)
OSVER = amazonlinux2
-else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1315 -a 0%{?suse_version} -lt 1330 -a 0%{?is_opensuse} -eq 1'`; echo $$?), 0)
-OSVER = opensuse-leap
-else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1330 -a 0%{?is_opensuse} -eq 1'`; echo $$?), 0)
-OSVER = opensuse-tumbleweed
-else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1315 -a 0%{?is_opensuse} -eq 0'`; echo $$?), 0)
-OSVER = sles
-else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 26'`; echo $$?),0)
+else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 35'`; echo $$?),0)
OSVER = fedora
endif
@@ -38,32 +28,16 @@ ifeq ($(OSVER), centos7)
BUILD_DEPENDS_unit += which
endif
-ifeq ($(OSVER), amazonlinux1)
-BUILD_DEPENDS_unit += system-rpm-config
-endif
-
-ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
-BUILD_DEPENDS_unit += libxml2-tools libxslt1 libopenssl-devel
-else
ifneq (,$(findstring $(OSVER),amazonlinux2))
BUILD_DEPENDS_unit += libxml2 libxslt openssl11-devel
else
BUILD_DEPENDS_unit += libxml2 libxslt openssl-devel
endif
-endif
BUILD_DEPENDS = $(BUILD_DEPENDS_unit)
MODULES=
-ifeq ($(OSVER), centos6)
-include Makefile.php
-include Makefile.python
-include Makefile.go
-include Makefile.jsc-common
-include Makefile.jsc8
-endif
-
ifeq ($(OSVER), centos7)
include Makefile.php
include Makefile.python27
@@ -96,18 +70,6 @@ include Makefile.jsc8
include Makefile.jsc11
endif
-ifeq ($(OSVER), amazonlinux1)
-include Makefile.php
-include Makefile.python27
-include Makefile.python34
-include Makefile.python35
-include Makefile.python36
-include Makefile.go
-include Makefile.perl
-include Makefile.jsc-common
-include Makefile.jsc8
-endif
-
ifeq ($(OSVER), amazonlinux2)
include Makefile.php
include Makefile.python27
@@ -118,45 +80,9 @@ include Makefile.jsc-common
include Makefile.jsc8
endif
-ifeq ($(OSVER), opensuse-leap)
-include Makefile.python27
-include Makefile.python34
-include Makefile.go
-include Makefile.perl
-include Makefile.ruby
-endif
-
-ifeq ($(OSVER), opensuse-tumbleweed)
-include Makefile.php
-include Makefile.python27
-include Makefile.python36
-include Makefile.go
-include Makefile.perl
-include Makefile.ruby
-endif
-
-ifeq ($(OSVER), sles)
-include Makefile.python27
-include Makefile.python34
-include Makefile.perl
-endif
-
ifeq ($(OSVER), fedora)
include Makefile.php
-ifeq ($(shell test `rpm --eval '0%{?fedora} -lt 32'`; echo $$?),0)
-include Makefile.python27
-endif
-ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 35'`; echo $$?),0)
include Makefile.python310
-else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 33'`; echo $$?),0)
-include Makefile.python39
-else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 32'`; echo $$?),0)
-include Makefile.python38
-else ifeq ($(shell test `rpm --eval '0%{?fedora} -ge 29'`; echo $$?),0)
-include Makefile.python37
-else
-include Makefile.python36
-endif
include Makefile.go
include Makefile.perl
include Makefile.ruby