Mailinglist Archive: opensuse-buildservice (89 mails)

< Previous Next >
Re: [opensuse-buildservice] how to get the date of last package change
On Tue, 2015-04-14 at 18:16 +0200, Ruediger Meier wrote:

# export deterministic BUILD_DATE, format like "__DATE__ __TIME__"
CL_DATE="$(awk -F " - " 'NR==2{print $1;}'
test -n "$CL_DATE"
export BUILD_DATE="$(LANG=C date --utc -d "${CL_DATE}" +"%b %e %Y

Make sure to add the .changes file to the Source: list when you access
it during build (and reference it by %{sourceN}

Otherwise the resulting .src.rpm is useless.

Dimstar / Dominique Leuenberger <dimstar@xxxxxxxxxxxx>
< Previous Next >
Follow Ups