_config: Move reproducible builds macros.

This commit is contained in:
Giacomo Leidi 2024-08-30 16:30:37 +02:00
parent 47f5b3bd90
commit 9b7e9d3fd7
Signed by untrusted user: gleidi
GPG Key ID: DE9BE0ACE8246F08

24
_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,18 +3850,6 @@ Macros:
%opensuse_bs 1
%_vendor suse
# 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
# define which postgres is default
%postgresql_default_ver 15