Only Require nginx-all-modules for EPEL and current Fedora releases

This commit is contained in:
Jamie Nguyen 2016-04-27 12:30:00 +01:00
parent 8ce940ba30
commit 72706a4189

View File

@ -18,7 +18,7 @@
Name: nginx Name: nginx
Epoch: 1 Epoch: 1
Version: 1.10.0 Version: 1.10.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: A high performance web server and reverse proxy server Summary: A high performance web server and reverse proxy server
Group: System Environment/Daemons Group: System Environment/Daemons
@ -54,8 +54,10 @@ BuildRequires: zlib-devel
Requires: nginx-filesystem = %{epoch}:%{version}-%{release} Requires: nginx-filesystem = %{epoch}:%{version}-%{release}
%if 0%{?rhel} || 0%{?fedora} < 24
# Introduced at 1:1.10.0-1 to ease upgrade path. To be removed later. # Introduced at 1:1.10.0-1 to ease upgrade path. To be removed later.
Requires: nginx-all-modules = %{epoch}:%{version}-%{release} Requires: nginx-all-modules = %{epoch}:%{version}-%{release}
%endif
Requires: openssl Requires: openssl
Requires: pcre Requires: pcre
@ -89,6 +91,14 @@ Requires: nginx-mod-stream = %{epoch}:%{version}-%{release}
%description all-modules %description all-modules
%{summary}. %{summary}.
%if 0%{?rhel}
The main nginx package depends on this to ease the upgrade path. After a grace
period of several months, modules will become optional.
%endif
%if 0%{?fedora} && 0%{?fedora} < 24
The main nginx package depends on this to ease the upgrade path. Starting from
Fedora 24, modules are optional.
%endif
%package filesystem %package filesystem
Group: System Environment/Daemons Group: System Environment/Daemons
@ -163,6 +173,10 @@ Requires: nginx
%patch0 -p0 %patch0 -p0
cp %{SOURCE200} . cp %{SOURCE200} .
%if 0%{?rhel} < 8
sed -i -e 's#KillMode=.*#KillMode=process#g' %{SOURCE10}
%endif
%build %build
# nginx does not utilize a standard configure script. It has its own # nginx does not utilize a standard configure script. It has its own
@ -409,6 +423,9 @@ fi
%changelog %changelog
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-2
- only Require nginx-all-modules for EPEL and current Fedora releases
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-1 * Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-1
- update to upstream release 1.10.0 - update to upstream release 1.10.0
- split dynamic modules into subpackages - split dynamic modules into subpackages