2008-12-03 11:09:38 +01:00
|
|
|
#
|
2011-09-01 10:38:35 +02:00
|
|
|
# spec file for package scummvm
|
2008-12-03 11:09:38 +01:00
|
|
|
#
|
2019-08-12 02:02:45 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-12-03 11:09:38 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-12 02:02:45 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-12-03 11:09:38 +01:00
|
|
|
#
|
|
|
|
|
2011-09-01 10:38:35 +02:00
|
|
|
|
2016-08-03 16:57:26 +02:00
|
|
|
%bcond_with faad
|
2017-02-01 19:40:25 +01:00
|
|
|
%bcond_with libmpeg2
|
2017-12-18 09:27:59 +01:00
|
|
|
%bcond_without mad
|
2008-12-03 11:09:38 +01:00
|
|
|
Name: scummvm
|
2017-12-18 09:27:59 +01:00
|
|
|
Version: 2.0.0
|
2010-12-12 06:22:49 +01:00
|
|
|
Release: 0
|
2009-03-08 00:09:37 +01:00
|
|
|
Summary: Interpreter for several adventure games
|
2019-08-12 02:02:45 +02:00
|
|
|
License: GPL-2.0-or-later
|
2010-10-11 16:38:09 +02:00
|
|
|
Group: Amusements/Games/Other
|
2012-05-16 14:39:03 +02:00
|
|
|
Url: http://www.scummvm.org/
|
2016-03-21 21:46:06 +01:00
|
|
|
Source: http://www.scummvm.org/frs/scummvm/%{version}/scummvm-%{version}.tar.xz
|
2016-09-05 19:58:44 +02:00
|
|
|
Source99: %{name}.changes
|
2017-12-18 13:56:16 +01:00
|
|
|
# PATCH-FIX-UPSTREAM scummvm-fix_CVE-2017-17528.patch -- backported commit #7aaac1d
|
|
|
|
Patch0: scummvm-fix_CVE-2017-17528.patch
|
2012-05-16 14:39:03 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2010-10-11 16:38:09 +02:00
|
|
|
BuildRequires: gcc-c++
|
2010-04-05 21:40:41 +02:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2014-09-13 22:00:20 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2016-09-05 19:58:44 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-09-01 10:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(alsa) >= 0.9
|
|
|
|
BuildRequires: pkgconfig(flac) >= 1.0.1
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
2012-07-22 00:52:23 +02:00
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2011-09-01 10:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(libpng) >= 1.2.8
|
2012-07-22 00:52:23 +02:00
|
|
|
BuildRequires: pkgconfig(ogg)
|
2011-09-01 10:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(sdl) >= 1.2.2
|
|
|
|
BuildRequires: pkgconfig(theoradec) >= 1.0
|
2012-07-22 00:52:23 +02:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2011-09-01 10:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2016-09-05 19:58:44 +02:00
|
|
|
Suggests: %{name}-extra
|
|
|
|
Suggests: %{name}-tools
|
2016-08-03 16:57:26 +02:00
|
|
|
%if %{with faad}
|
2012-03-30 15:59:12 +02:00
|
|
|
BuildRequires: libfaad-devel
|
2009-05-05 22:39:12 +02:00
|
|
|
%endif
|
2016-08-03 16:57:26 +02:00
|
|
|
%if %{with mad}
|
2011-09-01 10:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(mad)
|
2009-05-05 22:39:12 +02:00
|
|
|
%endif
|
2017-02-01 19:40:25 +01:00
|
|
|
%if %{with libmpeg2}
|
|
|
|
BuildRequires: pkgconfig(libmpeg2) >= 0.4.0
|
|
|
|
%endif
|
2009-03-08 00:09:37 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
BuildRequires: nasm
|
|
|
|
%endif
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%description
|
2009-03-08 00:09:37 +01:00
|
|
|
ScummVM is an interpreter that will play graphic adventure games written for
|
|
|
|
LucasArts' SCUMM virtual machine (such as Day of the Tentacle and
|
|
|
|
Monkey Island), Sierra's AGI adventures (such as early King's Quest and
|
|
|
|
Space Quest games), Adventure Soft's Simon the Sorcerer 1, 2 and Feeble Files,
|
2016-03-21 21:46:06 +01:00
|
|
|
Revolution Software's Beneath a Steel Sky and Broken Sword 1, 2 and 2.5,
|
2009-03-08 00:09:37 +01:00
|
|
|
Interactive Binary Illusions' Flight of the Amazon Queen,
|
|
|
|
Coktel Vision's Gobliiins, Wyrmkeep's Inherit the Earth, Westwood's
|
|
|
|
Legend of Kyrandia, and various others.
|
2008-12-03 11:09:38 +01:00
|
|
|
|
2009-03-08 00:09:37 +01:00
|
|
|
%package extra
|
2010-10-11 16:38:09 +02:00
|
|
|
Summary: Extra engines for ScummVM
|
|
|
|
Group: Amusements/Games/Other
|
|
|
|
Requires: %{name} = %{version}
|
2009-03-08 00:09:37 +01:00
|
|
|
|
|
|
|
%description extra
|
2016-03-21 21:46:06 +01:00
|
|
|
lastexpress and toltecs engines for ScummVM.
|
2009-03-08 00:09:37 +01:00
|
|
|
These engines are in a worse state, but allow to play extra games.
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%prep
|
2009-03-08 00:09:37 +01:00
|
|
|
%setup -q
|
2017-12-18 13:56:16 +01:00
|
|
|
%patch0 -p1
|
2016-09-05 19:58:44 +02:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
|
|
|
|
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
|
2019-08-12 02:02:45 +02:00
|
|
|
# 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
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%build
|
2009-03-08 00:09:37 +01:00
|
|
|
# No rpm configure because scummvm's configure isn't a real configure and thus
|
|
|
|
# doesn't understand some of the options %%configure passes.
|
2010-10-11 16:38:09 +02:00
|
|
|
CXXFLAGS="%{optflags}" ; export CXXFLAGS ; \
|
2009-03-08 00:09:37 +01:00
|
|
|
./configure --prefix=%{_prefix} \
|
2010-04-05 21:40:41 +02:00
|
|
|
--bindir=%{_bindir} \
|
2010-10-11 16:38:09 +02:00
|
|
|
--datarootdir=%{_datadir} \
|
2009-03-08 00:09:37 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--libdir=%{_libdir} \
|
2012-07-22 00:52:23 +02:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
2010-04-05 21:40:41 +02:00
|
|
|
--enable-verbose-build \
|
2009-03-08 00:09:37 +01:00
|
|
|
--enable-plugins \
|
2012-03-30 15:59:12 +02:00
|
|
|
--enable-engine-dynamic=lastexpress \
|
2013-06-07 00:02:43 +02:00
|
|
|
--enable-engine-dynamic=wintermute
|
2011-09-01 10:38:35 +02:00
|
|
|
# Subengines are not included even as dynamic since I don't want to touch the main engines
|
2010-10-11 16:38:09 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%install
|
2012-07-22 00:52:23 +02:00
|
|
|
%make_install
|
2016-07-29 20:31:39 +02:00
|
|
|
|
2012-05-16 14:39:03 +02:00
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
2016-03-21 21:46:06 +01:00
|
|
|
%desktop_database_post
|
2012-05-16 14:39:03 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%icon_theme_cache_postun
|
2016-03-21 21:46:06 +01:00
|
|
|
%desktop_database_postun
|
2009-03-08 00:09:37 +01:00
|
|
|
|
2008-12-03 11:09:38 +01:00
|
|
|
%files
|
2009-03-08 00:09:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-16 14:39:03 +02:00
|
|
|
%attr(0755,-,-) %{_bindir}/scummvm
|
|
|
|
%{_datadir}/scummvm
|
|
|
|
%{_mandir}/man6/scummvm.6*
|
|
|
|
%{_datadir}/applications/scummvm.desktop
|
2016-07-29 20:31:39 +02:00
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/scummvm.appdata.xml
|
2012-05-16 14:39:03 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/*/*
|
2016-03-21 21:46:06 +01:00
|
|
|
%{_datadir}/pixmaps/scummvm.xpm
|
2010-04-05 21:40:41 +02:00
|
|
|
%{_docdir}/%{name}
|
2009-03-08 00:09:37 +01:00
|
|
|
|
|
|
|
%files extra
|
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-16 14:39:03 +02:00
|
|
|
%{_libdir}/scummvm
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%changelog
|