14 Apr
2015
14 Apr
'15
16:26
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.
Dominique
--
Dimstar / Dominique Leuenberger