# Conditional build:
+%bcond_with bootstrap # avoid dependency on nss-tools
%bcond_with tests # enable tests
%define nspr_ver 1:4.29
# Upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=1083900
URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
BuildRequires: nspr-devel >= %{nspr_ver}
-BuildRequires: nss-tools
+%{!?with_bootstrap:BuildRequires: nss-tools}
BuildRequires: perl-base
BuildRequires: sqlite3-devel
BuildRequires: zlib-devel
%endif
%build
+%if %{without bootstrap}
# http://wiki.cacert.org/wiki/NSSLib
addbuiltin -n "CAcert Inc." -t "CT,C,C" < %{SOURCE3} >> nss/lib/ckfw/builtins/certdata.txt
+%endif
%ifarch %{x8664} ppc64 sparc64 aarch64
export USE_64=1