diff --git a/lyx.spec b/lyx.spec index be7c5b3..bc253f2 100644 --- a/lyx.spec +++ b/lyx.spec @@ -54,12 +54,12 @@ each paragraph. Of course, low level formatting is still possible. %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 -#remove build date from lyx binary to avoid unnecessary rebuilds +# Remove build time references so build-compare can do its work +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') -sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/LyX.cpp -FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/LyX.cpp - +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/LyX.cpp + %build #%{?suse_update_config:%{suse_update_config -f config}} ./autogen.sh