From 39a92521949c8d1b2729dadfb5a0ae20403bdc3f93813f46bb6725328ed43942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 2 Apr 2016 18:02:57 +0000 Subject: [PATCH] Accepting request 383265 from home:bmwiedemann:branches:games - use changelog time instead of build time to fix build-compare OBS-URL: https://build.opensuse.org/request/show/383265 OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=56 --- 0ad.changes | 5 +++++ 0ad.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/0ad.changes b/0ad.changes index eadd199..3cbb19f 100644 --- a/0ad.changes +++ b/0ad.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Apr 2 17:23:08 UTC 2016 - bwiedemann@suse.com + +- use changelog time instead of build time to fix build-compare + ------------------------------------------------------------------- Thu Nov 26 22:50:54 UTC 2015 - mvetter@suse.com diff --git a/0ad.spec b/0ad.spec index 5b6c4dd..ab4ee58 100644 --- a/0ad.spec +++ b/0ad.spec @@ -1,7 +1,7 @@ # # spec file for package 0ad # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,6 +21,7 @@ Version: 0.0.19 Release: 0 Url: http://play0ad.com/ Source: http://sourceforge.net/projects/zero-ad/files/releases/%{name}-%{version}-alpha-unix-build.tar.xz +Source99: %{name}.changes BuildRequires: boost-devel BuildRequires: cmake BuildRequires: gcc-c++ @@ -112,6 +113,10 @@ history. %prep %setup -q -n %{name}-%{version}-alpha +modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")" +DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" +TIME="\"$(date -d "${modified}" "+%%T")\"" +find . -name '*.[ch]' -o -name '*.cpp' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" %build export CFLAGS="%{optflags}"