Improved RHEL 8 packaging.

- bumped Epoch to override appstream' version.
- disabled debugsource package generation.
diff --git a/rpm/SPECS/nginx-module.spec.in b/rpm/SPECS/nginx-module.spec.in
index 5b2f952..16073df 100644
--- a/rpm/SPECS/nginx-module.spec.in
+++ b/rpm/SPECS/nginx-module.spec.in
@@ -18,6 +18,12 @@
 %define dist .el7
 %endif
 
+%if 0%{?rhel} == 8
+%define epoch 1
+Epoch: %{epoch}
+%define _debugsource_template %{nil}
+%endif
+
 %%MODULE_DEFINITIONS%%
 
 %define main_version %%MAIN_VERSION%%
diff --git a/rpm/SPECS/nginx.spec.in b/rpm/SPECS/nginx.spec.in
index 04556f4..16822f0 100644
--- a/rpm/SPECS/nginx.spec.in
+++ b/rpm/SPECS/nginx.spec.in
@@ -14,8 +14,11 @@
 Requires(postun): systemd
 %endif
 
-%if 0%{?rhel} == 6
+%if 0%{?rhel}
 %define _group System Environment/Daemons
+%endif
+
+%if 0%{?rhel} == 6
 Requires(pre): shadow-utils
 Requires: initscripts >= 8.36
 Requires(post): chkconfig
@@ -24,7 +27,6 @@
 %endif
 
 %if 0%{?rhel} == 7
-%define _group System Environment/Daemons
 %define epoch 1
 Epoch: %{epoch}
 Requires(pre): shadow-utils
@@ -33,6 +35,14 @@
 %define dist .el7
 %endif
 
+%if 0%{?rhel} == 8
+%define epoch 1
+Epoch: %{epoch}
+Requires(pre): shadow-utils
+BuildRequires: openssl-devel >= 1.1.1
+%define _debugsource_template %{nil}
+%endif
+
 %if 0%{?suse_version} >= 1315
 %define _group Productivity/Networking/Web/Servers
 %define nginx_loggroup trusted