diff --git a/elfutils.changes b/elfutils.changes index 252e5bf..5c58544 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 24 15:32:28 UTC 2011 - crrodriguez@opensuse.org + +- Remote timestamps on binaries, breaks build compare +- Add missing build requires on zlib, bzip2 and lzma . + ------------------------------------------------------------------- Wed Apr 27 00:35:22 UTC 2011 - tonyj@novell.com diff --git a/elfutils.spec b/elfutils.spec index 3bd8d88..68bd3d8 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -36,7 +36,7 @@ Patch5: elfutils-uninitialized.diff Patch6: elfutils-0.137-dwarf-header-check-fix.diff Patch7: elfutils-0.148-dont-crash.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: bison flex +BuildRequires: bison flex xz-devel zlib-devel libbz2-devel %description This package provides a higher-level library to access ELF files. This @@ -145,6 +145,10 @@ to develop applications that require these. %patch7 -p1 %build +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" +DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" +TIME="\"$(date -d "${modified}" "+%%R")\"" +find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + autoreconf -fi %configure --program-prefix=eu- make %{?_smp_mflags}