diff --git a/libgcrypt.changes b/libgcrypt.changes index a4b4595..c8c7d4c 100644 --- a/libgcrypt.changes +++ b/libgcrypt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Aug 1 07:27:35 UTC 2022 - Stephan Kulow + +- Fix reproducible build problems: + - Do not use %release in binaries (but use SOURCE_DATE_EPOCH) + - Fix date call messed up by spec-cleaner + ------------------------------------------------------------------- Tue Feb 1 11:28:51 UTC 2022 - Pedro Monreal diff --git a/libgcrypt.spec b/libgcrypt.spec index 56f1f25..65b5a93 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -179,11 +179,11 @@ understanding of applied cryptography is required to use Libgcrypt. %build echo building with build_hmac256 set to %{build_hmac256} autoreconf -fi -date=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE99}) +date=$(date -u '+%%Y-%%m-%%dT%%H:%%M+0000' -r %{SOURCE99}) sed -e "s,BUILD_TIMESTAMP=.*,BUILD_TIMESTAMP=$date," -i configure export CFLAGS="%{optflags} $(getconf LFS_CFLAGS)" %configure \ - --with-fips-module-version="Libgcrypt version %{version}-%{release}" \ + --with-fips-module-version="Libgcrypt version %{version}-$SOURCE_DATE_EPOCH" \ --enable-noexecstack \ --disable-static \ --enable-m-guard \