[packages/nginx] use macro for openssl version

glen glen at pld-linux.org
Sat Apr 16 02:19:25 CEST 2016


commit 27ce902f4910989df3a78064af748c5eb190a30e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 16 03:19:14 2016 +0300

    use macro for openssl version

 nginx.spec | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/nginx.spec b/nginx.spec
index 61e5c6d..88ba62d 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -28,6 +28,7 @@
 %undefine	with_rtsig
 %endif
 
+%define		ssl_version	1.0.2
 %define		rtmp_version	1.1.7
 %define		modsecurity_version	2.9.0
 Summary:	High perfomance HTTP and reverse proxy server
@@ -68,7 +69,7 @@ Patch1:		%{name}-modsecurity-xheaders.patch
 URL:		http://nginx.net/
 %{?with_modsecurity:BuildRequires: lua-devel}
 BuildRequires:	mailcap
-%{?with_ssl:BuildRequires: openssl-devel >= 1.0.2}
+%{?with_ssl:BuildRequires: openssl-devel >= %{ssl_version}}
 BuildRequires:	pcre-devel
 %{?with_perl:BuildRequires: perl-CGI}
 %{?with_perl:BuildRequires: perl-devel}
@@ -132,7 +133,7 @@ Group:		Networking/Daemons/HTTP
 Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun,postun):	systemd-units >= 38
 Requires:	%{name}-common = %{version}-%{release}
-%{?with_ssl:Requires: openssl >= 1.0.2}
+%{?with_ssl:Requires: openssl >= %{ssl_version}}
 Provides:	nginx-daemon
 Provides:	webserver
 
@@ -167,7 +168,7 @@ Group:		Networking/Daemons/HTTP
 Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun,postun):	systemd-units >= 38
 Requires:	%{name}-common = %{version}-%{release}
-%{?with_ssl:Requires: openssl >= 1.0.2}
+%{?with_ssl:Requires: openssl >= %{ssl_version}}
 Provides:	nginx-daemon
 Provides:	webserver
 
@@ -231,7 +232,7 @@ Group:		Networking/Daemons/HTTP
 Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun,postun):	systemd-units >= 38
 Requires:	%{name}-common = %{version}-%{release}
-%{?with_ssl:Requires: openssl >= 1.0.2}
+%{?with_ssl:Requires: openssl >= %{ssl_version}}
 Provides:	nginx
 Provides:	nginx-daemon
 Conflicts:	logrotate < 3.7-4
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nginx.git/commitdiff/27ce902f4910989df3a78064af748c5eb190a30e



More information about the pld-cvs-commit mailing list