From 47f5b3bd90a1ba3c8143c1f500ba680e4207fbb3f91d43bcdb4b40c617ab4b5a Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Fri, 23 Aug 2024 12:15:07 +0200 Subject: [PATCH] enable reproducible builds https://jira.suse.com/browse/SMO-426 This still needs the changes in rpm from sr 342025 . --- _config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/_config b/_config index b80f532..ca152ba 100644 --- a/_config +++ b/_config @@ -3839,8 +3839,16 @@ Macros: %_vendor suse # Reproducible builds +%if "%{sub %_project 1 9}" == "openSUSE:" || "%{sub %_project 1 5}" == "SUSE:" +Macros: %source_date_epoch_from_changelog Y -# clamp_mtime_to_source_date_epoch Y +:Macros +%endif +Macros: +%set_mtime_to_source_date_epoch Y +%use_source_date_epoch_as_buildtime Y +%_buildhost reproducible +:Macros # define which postgres is default %postgresql_default_ver 15