From f39b50eeec918fc297f5941748365953b2b39a43b734d687d533c5dd3e922ea8 Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Mon, 3 May 2010 19:49:05 +0000 Subject: [PATCH] Fix conditional MPEG2 support and remove builddate from code OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=15 --- scummvm-nobuildtime.patch | 17 +++++++++++++++++ scummvm.spec | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 scummvm-nobuildtime.patch diff --git a/scummvm-nobuildtime.patch b/scummvm-nobuildtime.patch new file mode 100644 index 0000000..4ab5ff9 --- /dev/null +++ b/scummvm-nobuildtime.patch @@ -0,0 +1,17 @@ +Index: base/version.cpp +=================================================================== +--- base/version.cpp.orig ++++ base/version.cpp +@@ -57,9 +57,9 @@ + * to properly work in exports (i.e. release tar balls etc.). + */ + const char *gScummVMVersion = SCUMMVM_VERSION; +-const char *gScummVMBuildDate = __DATE__ " " __TIME__; +-const char *gScummVMVersionDate = SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")"; +-const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION " (" __DATE__ " " __TIME__ ")"; ++const char *gScummVMBuildDate = ""; ++const char *gScummVMVersionDate = SCUMMVM_VERSION; ++const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION; + const char *gScummVMFeatures = "" + #ifdef USE_TREMOR + #ifdef USE_TREMOLO diff --git a/scummvm.spec b/scummvm.spec index c42668e..c0ff359 100644 --- a/scummvm.spec +++ b/scummvm.spec @@ -27,6 +27,7 @@ License: GPLv2+, LGPLv2.1 or later Url: http://www.scummvm.org Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2 Patch0: %{name}-nostrip.patch +Patch1: %{name}-nobuildtime.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: SDL-devel >= 1.2.2 flac-devel libvorbis-devel zlib-devel BuildRequires: fluidsynth-devel gcc-c++ update-desktop-files @@ -71,6 +72,7 @@ These engines are in a worse state, but allow to play extra games. %prep %setup -q %patch0 +%patch1 %build %ifarch %ix86 @@ -84,6 +86,7 @@ CXXFLAGS="$RPM_OPT_FLAGS" ; export CXXFLAGS ; \ --datadir=%{_datadir} \ --mandir=%{_mandir} \ --libdir=%{_libdir} \ + %{?with_mpeg2:--enable-mpeg2} \ --enable-verbose-build \ --enable-plugins \ --enable-m4=dynamic \