Browse code

Add zlib-devel for %check for openssl

Change-Id: Ibac23777f19d0d6e1a9905a7a1211ce96b64a323
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3480
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Rongrong Qiu <rqiu@vmware.com>

changpil authored on 2017/08/11 05:41:18
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Management tools and libraries relating to cryptography
2 2
 Name:           openssl
3 3
 Version:        1.0.2k
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        OpenSSL
6 6
 URL:            http://www.openssl.org
7 7
 Group:          System Environment/Security
... ...
@@ -13,6 +13,9 @@ Patch0:         c_rehash.patch
13 13
 Patch1:         openssl-1.0.2f-ipv6apps.patch
14 14
 Patch2:         openssl-init-conslidate.patch
15 15
 Patch3:         openssl-drbg-default-read-system-fips.patch
16
+%if %{with_check}
17
+BuildRequires: zlib-devel
18
+%endif
16 19
 Requires:       bash glibc libgcc
17 20
 
18 21
 %description
... ...
@@ -73,7 +76,7 @@ ln -sf libssl.so.1.0.0 %{buildroot}%{_libdir}/libssl.so.1.0.2
73 73
 ln -sf libcrypto.so.1.0.0 %{buildroot}%{_libdir}/libcrypto.so.1.0.2
74 74
 
75 75
 %check
76
-make %{?_smp_mflags} tests
76
+make tests
77 77
 
78 78
 %post   -p /sbin/ldconfig
79 79
 %postun -p /sbin/ldconfig
... ...
@@ -112,6 +115,8 @@ rm -rf %{buildroot}/*
112 112
 /%{_bindir}/c_rehash
113 113
 
114 114
 %changelog
115
+*   Thu Aug 10 2017 Chang Lee <changlee@vmware.com> 1.0.2k-4
116
+-   Add zlib-devel for %check
115 117
 *   Fri Jul 28 2017 Anish Swaminathan <anishs@vmware.com> 1.0.2k-3
116 118
 -   Patch to support enabling FIPS_mode through kernel parameter
117 119
 *   Sun Jun 04 2017 Bo Gan <ganb@vmware.com> 1.0.2k-2