From 6c95d5be5cbd8daa19efb6e8cd335b55531f334c0b3a3583079724a39774f53e Mon Sep 17 00:00:00 2001 From: Cor Blom Date: Thu, 25 Aug 2011 19:16:12 +0000 Subject: [PATCH] fix file-contains-date-and-time /usr/bin/lyx warning OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=27 --- lyx.changes | 5 +++++ lyx.png | 4 ++-- lyx.spec | 7 ++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lyx.changes b/lyx.changes index 3f9919b..4cb2745 100644 --- a/lyx.changes +++ b/lyx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 25 19:13:47 UTC 2011 - cornelis@solcon.nl + +- fixed "file-contains-date-and-time /usr/bin/lyx" rpmlint warning + ------------------------------------------------------------------- Tue Jun 28 19:56:30 UTC 2011 - cornelis@solcon.nl diff --git a/lyx.png b/lyx.png index 269f498..e91de27 100644 --- a/lyx.png +++ b/lyx.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:544d38fe82745ec14045015d965046b5f69cd7f62ee3945c1d27cf46973c59cd -size 528 +oid sha256:7c38f08336f7327b59fa09a32c6925af2bf8131c2c2c4de14ec746edb954dd5c +size 1304 diff --git a/lyx.spec b/lyx.spec index 45c6113..be7c5b3 100644 --- a/lyx.spec +++ b/lyx.spec @@ -36,7 +36,7 @@ Source3: lyxrc.dist # hunspell pkgconfig support # see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169351.html Patch0: lyx-2.0.0-hunspell_pkgconfig.patch -# xdg path from fedora +# xdg patch # This was rejected by upstream (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133878.html) Patch1: lyx-2.0.0rc1-xdg_open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -54,6 +54,11 @@ 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 +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 %build #%{?suse_update_config:%{suse_update_config -f config}}