diff --git a/json-simple.changes b/json-simple.changes index f7e2c0f..f265c1e 100644 --- a/json-simple.changes +++ b/json-simple.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 13 05:24:18 UTC 2023 - Fridrich Strba + +- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp + ------------------------------------------------------------------- Tue Mar 28 08:51:41 UTC 2023 - John Vandenberg diff --git a/json-simple.spec b/json-simple.spec index 7737b42..0bdd3bb 100644 --- a/json-simple.spec +++ b/json-simple.spec @@ -69,7 +69,9 @@ find . -type f -exec sed -i 's/\r//' {} \; %{mvn_file} : %{name} %build -%{mvn_build} -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 +%{mvn_build} -f -- \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install