[packman] libffmpeg-devel

Cristian Morales Vega cmorve69 at yahoo.es
Sat Mar 5 14:26:49 CET 2011


2011/3/5 Cristian Morales Vega <cmorve69 at yahoo.es>:
> 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.




More information about the Packman mailing list