Hi Cristian! Am Samstag, 5. März 2011, 14:26:49 schrieb Cristian Morales Vega: > 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.
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 _______________________________________________ Packman mailing list [email protected] http://lists.links2linux.de/cgi-bin/mailman/listinfo/packman
