# # spec file for package scummvm (Version 1.1.0) # # Copyright (c) 2010 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.1.0 Release: 1 Summary: Interpreter for several adventure games Group: Amusements/Games/Other 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 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 BuildRequires: hicolor-icon-theme %if %{with mpeg2} BuildRequires: libmpeg2-devel %endif %if %{with mp3} BuildRequires: libmad-devel %endif %ifarch %{ix86} BuildRequires: nasm %endif Suggests: %{name}-extra %{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. Authors: -------- Max Horn Eugene Sandulenko %package extra Summary: Extra engines for ScummVM Group: Amusements/Games/Other Requires: %{name} = %{version} %description extra M4, mohawk and SCI engines for ScummVM. These engines are in a worse state, but allow to play extra games. %prep %setup -q %patch0 %build %ifarch %ix86 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mmmx -msse" %endif # No rpm configure because scummvm's configure isn't a real configure and thus # doesn't understand some of the options %%configure passes. CXXFLAGS="$RPM_OPT_FLAGS" ; export CXXFLAGS ; \ ./configure --prefix=%{_prefix} \ --bindir=%{_bindir} \ --datadir=%{_datadir} \ --mandir=%{_mandir} \ --libdir=%{_libdir} \ --enable-verbose-build \ --enable-plugins \ --enable-m4=dynamic \ --enable-mohawk=dynamic \ --enable-sci=dynamic \ --enable-sci32 # --enable-groovie2 # --enable-lol # --enable-saga2 # While m4, mohawk, sci and sci32 aren't compiled by default they are full # engines, so I compile them as plugins. groovie2, lol and saga2 are subengines, # I prefer not to touch the base engines including support for them. make %{?jobs:-j %jobs} %install make install DESTDIR=${RPM_BUILD_ROOT} %suse_update_desktop_file -i %{name} %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(0644,root,root,0755) %attr(0755,root,root)%{_bindir}/scummvm %{_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