rpm: Added support for RHEL 9.
diff --git a/rpm/SPECS/Makefile.module-perl b/rpm/SPECS/Makefile.module-perl index 826fbfc..89bc9df 100644 --- a/rpm/SPECS/Makefile.module-perl +++ b/rpm/SPECS/Makefile.module-perl
@@ -15,6 +15,9 @@ BuildRequires: perl-ExtUtils-Embed %endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $$version)) +%if 0%{?rhel} == 9 +BuildRequires: perl-macros +%endif endef export MODULE_DEFINITIONS_perl
diff --git a/rpm/SPECS/nginx-module.spec.in b/rpm/SPECS/nginx-module.spec.in index cfe2928..ea5a7e3 100644 --- a/rpm/SPECS/nginx-module.spec.in +++ b/rpm/SPECS/nginx-module.spec.in
@@ -34,6 +34,12 @@ %define _debugsource_template %{nil} %endif +%if 0%{?rhel} == 9 +%define epoch 1 +Epoch: %{epoch} +%define _debugsource_template %{nil} +%endif + %if 0%{?fedora} %define _debugsource_template %{nil} %global _hardened_build 1
diff --git a/rpm/SPECS/nginx.spec.in b/rpm/SPECS/nginx.spec.in index 266cdca..b8f025b 100644 --- a/rpm/SPECS/nginx.spec.in +++ b/rpm/SPECS/nginx.spec.in
@@ -38,6 +38,14 @@ %define _debugsource_template %{nil} %endif +%if 0%{?rhel} == 9 +%define epoch 1 +Epoch: %{epoch} +Requires(pre): shadow-utils +BuildRequires: openssl-devel +%define _debugsource_template %{nil} +%endif + %if 0%{?suse_version} >= 1315 %define _group Productivity/Networking/Web/Servers %define nginx_loggroup trusted