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}"