Browse code

gnutls: configured to use default trust store file

Change-Id: I12b4299c75ea8b5d5a63ea89376b03e0e4794be0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1886
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

Alexey Makhalov authored on 2016/12/18 18:26:01
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        The GnuTLS Transport Layer Security Library
2 2
 Name:           gnutls
3 3
 Version:        3.4.11
4
-Release:        3%{?dist}
4
+Release:        4%{?dist}
5 5
 License:        GPLv3+ and LGPLv2+
6 6
 URL:            http://www.gnutls.org
7 7
 Source0:        http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/gnutls/v3.4/%{name}-%{version}.tar.xz
... ...
@@ -38,11 +38,15 @@ developing applications that use gnutls.
38 38
 %setup -q
39 39
 %patch0 -p1
40 40
 %build
41
+# check for trust store file presence
42
+[ -f %{_sysconfdir}/pki/tls/certs/ca-bundle.crt ] || exit 1
43
+
41 44
 ./configure \
42 45
     --prefix=%{_prefix} \
43 46
     --without-p11-kit \
44 47
     --disable-openssl-compatibility \
45
-    --with-system-priority-file=%{_sysconfdir}/gnutls/default-priorities
48
+    --with-system-priority-file=%{_sysconfdir}/gnutls/default-priorities \
49
+    --with-default-trust-store-file=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
46 50
 make %{?_smp_mflags}
47 51
 %install
48 52
 make DESTDIR=%{buildroot} install
... ...
@@ -72,6 +76,8 @@ make %{?_smp_mflags} check
72 72
 %{_mandir}/man3/*
73 73
 
74 74
 %changelog
75
+*   Sun Dec 18 2016 Alexey Makhalov <amakhalov@vmware.com> 3.4.11-4
76
+-   configure to use default trust store file
75 77
 *   Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 3.4.11-3
76 78
 -   Moved man3 to devel subpackage.
77 79
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.4.11-2