From 38744b2060f43cbe3fdf22d04cd1934bed77fd61 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: May 30 2020 22:20:23 +0000 Subject: macros: Set more settings for package builds --- diff --git a/midipix/macros b/midipix/macros index e23fa02..d5a1728 100644 --- a/midipix/macros +++ b/midipix/macros @@ -65,6 +65,16 @@ # RPM package build settings # +# Ensure SOURCE_DATE_EPOCH is set based on changelog for reproducible builds +%source_date_epoch_from_changelog 1 + +# Automatically trim changelog entries after 2 years +%_changelog_trimtime %{lua:print(os.time() - 2 * 365 * 86400)} + +# Use SHA-256 for FILEDIGESTS instead of default MD5 +%_source_filedigest_algorithm 8 +%_binary_filedigest_algorithm 8 + # We want to use zstd payloads by default %_source_payload w9.zstdio %_binary_payload w9.zstdio