Accepting request 722332 from home:benoit_monin:branches:games

- run spec-cleaner
- fix the configure failure by building the endianess test without optimization

OBS-URL: https://build.opensuse.org/request/show/722332
OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=51
This commit is contained in:
Ferdinand Thiessen 2019-08-12 00:02:45 +00:00 committed by Git OBS Bridge
parent 9311b944c3
commit 2072a59795
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Aug 11 17:58:36 UTC 2019 - Benoît Monin <benoit.monin@gmx.fr>
- run spec-cleaner
* update copyright date
* update bugzilla url
* correct the license
- fix the configure failure by building the endianess test without
optimization
-------------------------------------------------------------------
Mon Dec 18 09:12:00 UTC 2017 - aloisio@gmx.com

View File

@ -1,7 +1,7 @@
#
# spec file for package scummvm
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -23,7 +23,7 @@ Name: scummvm
Version: 2.0.0
Release: 0
Summary: Interpreter for several adventure games
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Amusements/Games/Other
Url: http://www.scummvm.org/
Source: http://www.scummvm.org/frs/scummvm/%{version}/scummvm-%{version}.tar.xz
@ -88,6 +88,9 @@ DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" \
base/version.cpp backends/plugins/elf/version.cpp
# build the endianness test without optimization otherwise gcc is too smart
# and optimize everything away, making the test fail
sed -i '/tmp_endianness_check.cpp/ s/$CXXFLAGS/$CXXFLAGS -fno-lto -O0/' configure
%build
# No rpm configure because scummvm's configure isn't a real configure and thus