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
This commit is contained in:
Matthias Mailänder 2016-04-02 18:02:57 +00:00 committed by Git OBS Bridge
parent 813075d827
commit 39a9252194
2 changed files with 11 additions and 1 deletions

View File

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

View File

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