From 05ecfcced43139cb6ea688077366122b5d140b53abefacfaf238ffb76cbaabe7 Mon Sep 17 00:00:00 2001 From: Cor Blom Date: Fri, 26 Aug 2011 09:16:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=29 --- lyx.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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