enable reproducible builds

https://jira.suse.com/browse/SMO-426

This still needs the changes in rpm from sr 342025 .
This commit is contained in:
Jan Zerebecki 2024-08-23 12:15:07 +02:00 committed by Giacomo Leidi
parent effe0dca38
commit 47f5b3bd90
Signed by untrusted user: gleidi
GPG Key ID: DE9BE0ACE8246F08

10
_config
View File

@ -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