summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-06-20 18:20:11 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-06-20 18:20:11 +0400
commit637a2006a6c0da5825dd6b04940e05e2c9feda5d (patch)
tree6efca6167a19089ed19e278831458f77ffccd9d1 /pkg/rpm
parentc3e40ae932f0cf9ae33166479049d2d3c9fa1615 (diff)
downloadunit-637a2006a6c0da5825dd6b04940e05e2c9feda5d.tar.gz
unit-637a2006a6c0da5825dd6b04940e05e2c9feda5d.tar.bz2
Packages: cleanup targets that are not supported anymore.
Diffstat (limited to 'pkg/rpm')
-rw-r--r--pkg/rpm/Makefile45
-rw-r--r--pkg/rpm/Makefile.python57
-rw-r--r--pkg/rpm/Makefile.python3552
-rw-r--r--pkg/rpm/Makefile.python3857
-rw-r--r--pkg/rpm/rpmbuild/SOURCES/COPYRIGHT.unit-jsc1032
-rw-r--r--pkg/rpm/rpmbuild/SOURCES/unit.example-python35-config16
-rw-r--r--pkg/rpm/rpmbuild/SOURCES/unit.example-python38-config16
7 files changed, 2 insertions, 273 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index a360b36e..a6b2955b 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -10,16 +10,12 @@ 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)
@@ -28,7 +24,7 @@ else ifeq ($(shell test `rpm --eval '0%{?suse_version} -ge 1330 -a 0%{?is_opensu
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,10 +34,6 @@ 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
@@ -56,14 +48,6 @@ 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 +80,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
@@ -143,20 +115,7 @@ 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
diff --git a/pkg/rpm/Makefile.python b/pkg/rpm/Makefile.python
deleted file mode 100644
index 334d62c1..00000000
--- a/pkg/rpm/Makefile.python
+++ /dev/null
@@ -1,57 +0,0 @@
-MODULES+= python
-MODULE_SUFFIX_python= python
-
-MODULE_SUMMARY_python= Python module for NGINX Unit
-
-MODULE_VERSION_python= $(VERSION)
-MODULE_RELEASE_python= 1
-
-MODULE_CONFARGS_python= python
-MODULE_MAKEARGS_python= python
-MODULE_INSTARGS_python= python-install
-
-MODULE_SOURCES_python= unit.example-python-app \
- unit.example-python-config
-
-ifeq ($(shell rpm --eval "%{?amzn}"), 1)
-BUILD_DEPENDS_python= python26-devel
-else
-BUILD_DEPENDS_python= python-devel
-endif
-
-BUILD_DEPENDS+= $(BUILD_DEPENDS_python)
-
-define MODULE_PREINSTALL_python
-%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python/examples/python-app
-%{__install} -m 644 -p %{SOURCE100} \
- %{buildroot}%{_datadir}/doc/unit-python/examples/python-app/wsgi.py
-%{__install} -m 644 -p %{SOURCE101} \
- %{buildroot}%{_datadir}/doc/unit-python/examples/unit.config
-endef
-export MODULE_PREINSTALL_python
-
-define MODULE_FILES_python
-%{_libdir}/unit/modules/*
-%{_libdir}/unit/debug-modules/*
-endef
-export MODULE_FILES_python
-
-define MODULE_POST_python
-cat <<BANNER
-----------------------------------------------------------------------
-
-The $(MODULE_SUMMARY_python) has been installed.
-
-To check the sample app, run these commands:
-
- sudo service unit start
- cd /usr/share/doc/%{name}/examples
- sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/unit/control.sock http://localhost/config
- curl http://localhost:8400/
-
-Online documentation is available at https://unit.nginx.org
-
-----------------------------------------------------------------------
-BANNER
-endef
-export MODULE_POST_python
diff --git a/pkg/rpm/Makefile.python35 b/pkg/rpm/Makefile.python35
deleted file mode 100644
index 6f866771..00000000
--- a/pkg/rpm/Makefile.python35
+++ /dev/null
@@ -1,52 +0,0 @@
-MODULES+= python35
-MODULE_SUFFIX_python35= python3.5
-
-MODULE_SUMMARY_python35= Python 3.5 module for NGINX Unit
-
-MODULE_VERSION_python35= $(VERSION)
-MODULE_RELEASE_python35= 1
-
-MODULE_CONFARGS_python35= python --config=python3.5-config
-MODULE_MAKEARGS_python35= python3.5
-MODULE_INSTARGS_python35= python3.5-install
-
-MODULE_SOURCES_python35= unit.example-python-app \
- unit.example-python35-config
-
-BUILD_DEPENDS_python35= python35-devel
-BUILD_DEPENDS+= $(BUILD_DEPENDS_python35)
-
-define MODULE_PREINSTALL_python35
-%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python35/examples/python-app
-%{__install} -m 644 -p %{SOURCE100} \
- %{buildroot}%{_datadir}/doc/unit-python35/examples/python-app/wsgi.py
-%{__install} -m 644 -p %{SOURCE101} \
- %{buildroot}%{_datadir}/doc/unit-python35/examples/unit.config
-endef
-export MODULE_PREINSTALL_python35
-
-define MODULE_FILES_python35
-%{_libdir}/unit/modules/*
-%{_libdir}/unit/debug-modules/*
-endef
-export MODULE_FILES_python35
-
-define MODULE_POST_python35
-cat <<BANNER
-----------------------------------------------------------------------
-
-The $(MODULE_SUMMARY_python35) has been installed.
-
-To check the sample app, run these commands:
-
- sudo service unit start
- cd /usr/share/doc/%{name}/examples
- sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/unit/control.sock http://localhost/config
- curl http://localhost:8400/
-
-Online documentation is available at https://unit.nginx.org
-
-----------------------------------------------------------------------
-BANNER
-endef
-export MODULE_POST_python35
diff --git a/pkg/rpm/Makefile.python38 b/pkg/rpm/Makefile.python38
deleted file mode 100644
index ffcca07f..00000000
--- a/pkg/rpm/Makefile.python38
+++ /dev/null
@@ -1,57 +0,0 @@
-MODULES+= python38
-MODULE_SUFFIX_python38= python3.8
-
-MODULE_SUMMARY_python38= Python 3.8 module for NGINX Unit
-
-MODULE_VERSION_python38= $(VERSION)
-MODULE_RELEASE_python38= 1
-
-MODULE_CONFARGS_python38= python --config=python3.8-config
-MODULE_MAKEARGS_python38= python3.8
-MODULE_INSTARGS_python38= python3.8-install
-
-MODULE_SOURCES_python38= unit.example-python-app \
- unit.example-python38-config
-
-ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2))
-BUILD_DEPENDS_python38= python3-devel
-else
-BUILD_DEPENDS_python38= python38-devel
-endif
-
-BUILD_DEPENDS+= $(BUILD_DEPENDS_python38)
-
-define MODULE_PREINSTALL_python38
-%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python38/examples/python-app
-%{__install} -m 644 -p %{SOURCE100} \
- %{buildroot}%{_datadir}/doc/unit-python38/examples/python-app/wsgi.py
-%{__install} -m 644 -p %{SOURCE101} \
- %{buildroot}%{_datadir}/doc/unit-python38/examples/unit.config
-endef
-export MODULE_PREINSTALL_python38
-
-define MODULE_FILES_python38
-%{_libdir}/unit/modules/*
-%{_libdir}/unit/debug-modules/*
-endef
-export MODULE_FILES_python38
-
-define MODULE_POST_python38
-cat <<BANNER
-----------------------------------------------------------------------
-
-The $(MODULE_SUMMARY_python38) has been installed.
-
-To check the sample app, run these commands:
-
- sudo service unit start
- cd /usr/share/doc/%{name}/examples
- sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/unit/control.sock http://localhost/config
- curl http://localhost:8400/
-
-Online documentation is available at https://unit.nginx.org
-
-----------------------------------------------------------------------
-BANNER
-endef
-export MODULE_POST_python38
diff --git a/pkg/rpm/rpmbuild/SOURCES/COPYRIGHT.unit-jsc10 b/pkg/rpm/rpmbuild/SOURCES/COPYRIGHT.unit-jsc10
deleted file mode 100644
index c7860e4b..00000000
--- a/pkg/rpm/rpmbuild/SOURCES/COPYRIGHT.unit-jsc10
+++ /dev/null
@@ -1,32 +0,0 @@
-
- NGINX Unit.
-
- Copyright 2017-2022 NGINX, Inc.
- Copyright 2017-2022 Valentin V. Bartenev
- Copyright 2017-2022 Max Romanov
- Copyright 2017-2022 Andrei Zeliankou
- Copyright 2018-2022 Konstantin Pavlov
- Copyright 2021-2022 Zhidao Hong
- Copyright 2021-2022 Oisín Canty
- Copyright 2017-2021 Igor Sysoev
- Copyright 2017-2021 Andrei Belov
- Copyright 2019-2021 Tiago Natel de Moura
- Copyright 2019-2020 Axel Duch
- Copyright 2018-2019 Alexander Borisov
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- The unit-jsc10 package provides Java servlet container module
- for NGINX Unit.
-
- Java is a registered trademark of Oracle and/or its affiliates.
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.example-python35-config b/pkg/rpm/rpmbuild/SOURCES/unit.example-python35-config
deleted file mode 100644
index f9923a49..00000000
--- a/pkg/rpm/rpmbuild/SOURCES/unit.example-python35-config
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "applications": {
- "example_python": {
- "type": "python 3.5",
- "processes": 2,
- "path": "/usr/share/doc/unit-python35/examples/python-app",
- "module": "wsgi"
- }
- },
-
- "listeners": {
- "*:8400": {
- "pass": "applications/example_python"
- }
- }
-}
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.example-python38-config b/pkg/rpm/rpmbuild/SOURCES/unit.example-python38-config
deleted file mode 100644
index c98d1a52..00000000
--- a/pkg/rpm/rpmbuild/SOURCES/unit.example-python38-config
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "applications": {
- "example_python": {
- "type": "python 3.8",
- "processes": 2,
- "path": "/usr/share/doc/unit-python38/examples/python-app",
- "module": "wsgi"
- }
- },
-
- "listeners": {
- "*:8400": {
- "pass": "applications/example_python"
- }
- }
-}