Mailinglist Archive: opensuse-buildservice (89 mails)

< Previous Next >
Re: [opensuse-buildservice] how to get the date of last package change
On Tuesday 14 April 2015, Dimstar / Dominique Leuenberger wrote:
On Tue, 2015-04-14 at 18:16 +0200, Ruediger Meier wrote:
%build
# export deterministic BUILD_DATE, format like "__DATE__ __TIME__"
CL_DATE="$(awk -F " - " 'NR==2{print $1;}'
%{_sourcedir}/%{name}.changes)"
test -n "$CL_DATE"
export BUILD_DATE="$(LANG=C date --utc -d "${CL_DATE}" +"%b %e %Y
%T")"

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.

I see, thanks!

cu,
Rudi
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >