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 \