SHA256
1
0
forked from pool/scummvm
scummvm/scummvm.spec
Matthias Mailänder 399442e394 Accepting request 557941 from home:alarrosa:branches:games
- Update to version 2.0.0
  New Games:
  * Added support for Full Pipe.
  * Added support for Hi-Res Adventure #3: Cranston Manor.
  * Added support for Hi-Res Adventure #4: Ulysses and the Golden Fleece.
  * Added support for Hi-Res Adventure #5: Time Zone.
  * Added support for Hi-Res Adventure #6: The Dark Crystal.
  * Added support for Riven.
  * Added support for Starship Titanic English & German.
  New Games (Sierra SCI2 - SCI3):
  * Added support for Gabriel Knight.
  * Added support for Gabriel Knight 2.
  * Added support for King's Quest VII.
  * Added support for King's Questions.
  * Added support for Leisure Suit Larry 6 (hires).
  * Added support for Leisure Suit Larry 7.
  * Added support for Lighthouse.
  * Added support for Mixed-Up Mother Goose Deluxe.
  * Added support for Phantasmagoria.
  * Added support for Phantasmagoria 2.
  * Added support for Police Quest 4.
  * Added support for RAMA.
  * Added support for Shivers.
  * Added support for Space Quest 6.
  * Added support for Torin's Passage.
  General:
  * Added bilinear filtering option for SDL2 fullscreen mode.
  * Fixed a bug that caused a crash in the options dialog of the GUI.
  * Added a command-line option to automatically scan for supported games in
    the current or a specified directory.

OBS-URL: https://build.opensuse.org/request/show/557941
OBS-URL: https://build.opensuse.org/package/show/games/scummvm?expand=0&rev=48
2017-12-18 08:27:59 +00:00

134 lines
4.2 KiB
RPMSpec

#
# spec file for package scummvm
#
# Copyright (c) 2017 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
# 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 faad
%bcond_with libmpeg2
%bcond_without mad
Name: scummvm
Version: 2.0.0
Release: 0
Summary: Interpreter for several adventure games
License: GPL-2.0+
Group: Amusements/Games/Other
Url: http://www.scummvm.org/
Source: http://www.scummvm.org/frs/scummvm/%{version}/scummvm-%{version}.tar.xz
Source99: %{name}.changes
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa) >= 0.9
BuildRequires: pkgconfig(flac) >= 1.0.1
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libpng) >= 1.2.8
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(sdl) >= 1.2.2
BuildRequires: pkgconfig(theoradec) >= 1.0
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(zlib)
Suggests: %{name}-extra
Suggests: %{name}-tools
%if %{with faad}
BuildRequires: libfaad-devel
%endif
%if %{with mad}
BuildRequires: pkgconfig(mad)
%endif
%if %{with libmpeg2}
BuildRequires: pkgconfig(libmpeg2) >= 0.4.0
%endif
%ifarch %{ix86}
BuildRequires: nasm
%endif
%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, 2 and 2.5,
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
lastexpress and toltecs engines for ScummVM.
These engines are in a worse state, but allow to play extra games.
%prep
%setup -q
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
%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} \
--docdir=%{_docdir}/%{name} \
--enable-verbose-build \
--enable-plugins \
--enable-engine-dynamic=lastexpress \
--enable-engine-dynamic=wintermute
# Subengines are not included even as dynamic since I don't want to touch the main engines
make %{?_smp_mflags}
%install
%make_install
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(0644,root,root,0755)
%attr(0755,-,-) %{_bindir}/scummvm
%{_datadir}/scummvm
%{_mandir}/man6/scummvm.6*
%{_datadir}/applications/scummvm.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/scummvm.appdata.xml
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/pixmaps/scummvm.xpm
%{_docdir}/%{name}
%files extra
%defattr(0644,root,root,0755)
%{_libdir}/scummvm
%changelog