Cor Blom 2011-08-26 09:16:01 +00:00 committed by Git OBS Bridge
parent 79726bc956
commit 05ecfcced4

View File

@ -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