Skip to content

Commit 3f49ea1

Browse files
committed
Reproducible builds
1 parent f96a4c9 commit 3f49ea1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/obs/psylla.spec

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,23 @@ Requires: jpackage-utils
7777
This package contains the API documentation for %{name}.
7878

7979
%prep
80-
%setup -q
80+
%autosetup
8181

8282
%build
83-
LC_ALL=C.UTF-8 %{ant} -v -Divy.mode=local build
83+
ANT_OPTS=-Djava.properties.date=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
84+
LC_ALL=C.UTF-8 \
85+
%{ant} -v -Divy.mode=local build
8486

8587
%check
86-
LC_ALL=C.UTF-8 %{ant} -v -Divy.mode=local test
88+
ANT_OPTS=-Djava.properties.date=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
89+
LC_ALL=C.UTF-8 \
90+
%{ant} -v -Divy.mode=local test
8791

8892
%install
89-
LC_ALL=C.UTF-8 %{ant} -v -Divy.mode=local -Ddestdir=%{buildroot} install
93+
ANT_OPTS=-Djava.properties.date=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
94+
LC_ALL=C.UTF-8 \
95+
%{ant} -v -Divy.mode=local -Ddestdir=%{buildroot} install
96+
9097
%fdupes %{buildroot}%{_javadocdir}/%{name}
9198

9299
%add_maven_depmap %{name}/coneforest.%{name}.pom %{name}/coneforest.%{name}.jar

0 commit comments

Comments
 (0)