add boostrap bcond
authorJan Palus <atler@pld-linux.org>
Sun, 29 Nov 2020 12:16:35 +0000 (13:16 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 29 Nov 2020 12:16:35 +0000 (13:16 +0100)
nss.spec

index f39684ce3179b00cc21db892f48b117920c36506..ac8cca33c8ff4e43e5b4952f45675caab801b6ea 100644 (file)
--- 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
This page took 0.185526 seconds and 4 git commands to generate.