2011/3/5 Cristian Morales Vega <[email protected]>:
> so in the ffmpeg case every rebuild will be different since somewhere
> there is a __DATE__ macro, but this can be fixed.
I didn't test but this should do the trick:
FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" cmdutils.c
FAKE_BUILDTIME=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%H:%M:%S')
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" cmdutils.c
It uses the ffmpeg.changes modification date as build time.
_______________________________________________
Packman mailing list
[email protected]
http://lists.links2linux.de/cgi-bin/mailman/listinfo/packman