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