Merge pull request 'enable reproducible builds (jsc#SMO-426)' (#26) from gleidi/SLFO_main:enable-reproducible into main

Reviewed-on: https://src.suse.de/products/SLFO_main/pulls/26
Reviewed-by: Ruediger Oertel <oertel@gitea_noreply@suse.de>
This commit is contained in:
Ruediger Oertel 2024-08-30 16:47:50 +02:00
commit ae6b0a21f9

16
_config
View File

@ -3815,6 +3815,18 @@ Substitute: gcc6-c++-32bit
Substitute: gcc-c++-32bit
%endif
# Reproducible builds
%if "%{sub %_project 1 9}" == "openSUSE:" || "%{sub %_project 1 5}" == "SUSE:"
Macros:
%source_date_epoch_from_changelog Y
:Macros
%endif
Macros:
%set_mtime_to_source_date_epoch Y
%use_source_date_epoch_as_buildtime Y
%_buildhost reproducible
:Macros
Macros:
%suse_version 1600
%workbench_version 0100
@ -3838,10 +3850,6 @@ Macros:
%opensuse_bs 1
%_vendor suse
# Reproducible builds
%source_date_epoch_from_changelog Y
# clamp_mtime_to_source_date_epoch Y
# define which postgres is default
%postgresql_default_ver 15