From 6571417ff46056d7d6256bceb8e0066abe1fe961 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sun, 29 May 2022 15:41:22 -0400 Subject: [PATCH] use %bcond_with to disable brainpool curves The `%bcond_with` macro allows others to rebuild the package with the brainpool curves enabled by passing `--with brainpool` to `rpmbuild`. --- libgcrypt.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgcrypt.spec b/libgcrypt.spec index f766487..5ed4f4c 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -13,6 +13,8 @@ sha256sum:close() print(string.sub(hash, 0, 16)) } +# disable brainpool curves by default +%bcond_with brainpool Name: libgcrypt Version: 1.10.1 @@ -83,7 +85,7 @@ autoreconf -f %endif --enable-noexecstack \ --enable-hmac-binary-check=%{hmackey} \ - --disable-brainpool \ + %{!?with_brainpool:--disable-brainpool} \ --enable-digests="$DIGESTS" \ --enable-ciphers="$CIPHERS" \ --with-fips-module-version="$FIPS_MODULE_NAME %{version}-%{srpmhash}" @@ -178,6 +180,7 @@ mkdir -p -m 755 $RPM_BUILD_ROOT/etc/gcrypt %changelog * Sun May 29 2022 Todd Zullinger - 1.10.1-3 - improve --disable-brainpool configure output +- use %%bcond_with to disable brainpool curves * Fri Apr 08 2022 Jakub Jelen - 1.10.1-2 - Adjust integrity check creation to match upstream (#2073018)