scummvm/scummvm.spec
Cristian Morales Vega 1c1e453982 - update to new 1.3.1 release
* General:
   - Improved audio device detection and fallback.
     There should be no more silent errors due to invalid audio devices.
     Instead ScummVM should pick up a suitable alternative device.
 * Mohawk:
   - Added detection entries for more variants of some Living Books
     games.
 * Tinsel:
   - Fixed a regression that made Discworld uncompletable.
 * SAGA:
   - Fixed a regression in Inherit the Earth's dragon walk code which
     was causing crashes there.
   - Fixed a regression causing various crashes in I Have No Mouth and
     I Must Scream.
 * SCI:
   - Added detection entries for some Macintosh game versions.
   - Audio settings are now stored correctly for the CD version of EcoQuest 1.
 * SCUMM:
   - Fixed graphics bug in FM-TOWNS versions of games on ARM devices
     (Android, iPhone, etc.).

OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=23
2011-09-01 08:38:35 +00:00

125 lines
4.1 KiB
RPMSpec

#
# spec file for package scummvm
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_with mpeg2
%bcond_with mp3
Name: scummvm
Version: 1.3.1
Release: 0
License: GPLv2+, LGPLv2.1+, BSD
Summary: Interpreter for several adventure games
Url: http://www.scummvm.org
Group: Amusements/Games/Other
Source: http://sourceforge.net/projects/scummvm/files/scummvm/%{version}/scummvm-%{version}.tar.bz2
Patch0: %{name}-nostrip.patch
Patch1: %{name}-nobuildtime.patch
# It's an ugly workaround but makes the sword25 engine plugin link against
# png/theora, and since we use --as-needed there are no real problems. Once the
# engine passes to the main binary the problem will dissapear.
# It could also be good to make it use the system's Lua.
Patch2: %{name}-1.3.1-underlinking.patch
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(alsa) >= 0.9
BuildRequires: pkgconfig(flac) >= 1.0.1
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(libpng) >= 1.2.8
BuildRequires: pkgconfig(sdl) >= 1.2.2
BuildRequires: pkgconfig(theoradec) >= 1.0
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(zlib)
%if %{with mpeg2}
BuildRequires: pkgconfig(libmpeg2) >= 0.3.2
%endif
%if %{with mp3}
BuildRequires: pkgconfig(mad)
%endif
%ifarch %{ix86}
BuildRequires: nasm
%endif
Suggests: %{name}-extra
Suggests: %{name}-tools
%description
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,
Revolution Software's Beneath a Steel Sky and Broken Sword 1 and 2,
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.
%package extra
Summary: Extra engines for ScummVM
Group: Amusements/Games/Other
Requires: %{name} = %{version}
%description extra
M4, mohawk and hugo engines for ScummVM.
These engines are in a worse state, but allow to play extra games.
%prep
%setup -q
%patch0
%patch1
%patch2
%build
# No rpm configure because scummvm's configure isn't a real configure and thus
# doesn't understand some of the options %%configure passes.
CXXFLAGS="%{optflags}" ; export CXXFLAGS ; \
./configure --prefix=%{_prefix} \
--bindir=%{_bindir} \
--datarootdir=%{_datadir} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
%{?with_mpeg2:--enable-mpeg2} \
--enable-verbose-build \
--enable-plugins \
--enable-m4=dynamic \
--enable-lastexpress=dynamic \
--enable-sword25=dynamic \
--enable-tsage=dynamic
# --docdir=%%{_docdir}/%%{name}
# Subengines are not included even as dynamic since I don't want to touch the main engines
make %{?_smp_mflags}
%install
# docdir is here because since 1.2.0 configure is broken
%makeinstall docdir=%{_docdir}/%{name}
%suse_update_desktop_file -i %{name}
%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_docdir}/%{name}
%files extra
%defattr(0644,root,root,0755)
%{_libdir}/%{name}
%changelog