From: Jan Palus Date: Sun, 29 Nov 2020 12:16:35 +0000 (+0100) Subject: add boostrap bcond X-Git-Tag: auto/th/nss-3.60-1~3 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fnss.git;a=commitdiff_plain;h=eca4c11 add boostrap bcond --- diff --git a/nss.spec b/nss.spec index f39684c..ac8cca3 100644 --- a/nss.spec +++ b/nss.spec @@ -1,4 +1,5 @@ # Conditional build: +%bcond_with bootstrap # avoid dependency on nss-tools %bcond_with tests # enable tests %define nspr_ver 1:4.29 @@ -21,7 +22,7 @@ Source4: nss-softokn.pc.in # 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 @@ -112,8 +113,10 @@ Biblioteka kryptograficzna freebl dla bibliotek NSS. %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