This commit is contained in:
parent
79726bc956
commit
05ecfcced4
8
lyx.spec
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user