[packman] libffmpeg-devel
Herbert Graeber
herbert at links2linux.de
Sat Mar 5 23:33:58 CET 2011
Hi Cristian!
Am Samstag, 5. März 2011, 14:26:49 schrieb Cristian Morales Vega:
> 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.
Nice approach to make buildcompare working.
I have tested this with my quassel package and found that %-characters must be
doubled to make it work. %S has a special meaning in spec files.
Herbert
More information about the Packman
mailing list