diff --git a/akka.changes b/akka.changes index 400782f..7709325 100644 --- a/akka.changes +++ b/akka.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 19 05:25:48 UTC 2024 - Fridrich Strba + +- Specify jar timestamp for reproducible builds + ------------------------------------------------------------------- Thu Oct 12 11:47:29 UTC 2023 - Fridrich Strba diff --git a/akka.spec b/akka.spec index a5d581c..862a9cc 100644 --- a/akka.spec +++ b/akka.spec @@ -1,7 +1,7 @@ # # spec file for package akka # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -101,7 +101,12 @@ scalac -nobootcp -d target/classes -cp $(build-classpath scala typesafe-config) javac -d target/classes -cp $(build-classpath scala typesafe-config):target/classes \ -source 8 -target 8 -encoding utf-8 \ $(find src/main -name \*.java | xargs) -jar -cf target/%{name}-actor.jar -C target/classes . -C src/main/resources . +jar \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0} + --date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \ +%endif + --create --file=target/%{name}-actor.jar -C target/classes . -C src/main/resources . + mkdir -p target/apidocs scaladoc -nobootcp -d target/apidocs -cp $(build-classpath scala typesafe-config) -target:8 \ $(find src/main -name \*.scala -o -name \*.java | xargs)