2008-12-03 11:09:38 +01:00
|
|
|
#
|
2010-12-12 06:22:49 +01:00
|
|
|
# spec file for package scummvm (Version 1.2.1)
|
2008-12-03 11:09:38 +01:00
|
|
|
#
|
2010-04-05 21:40:41 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2009-05-05 22:39:12 +02:00
|
|
|
%bcond_with mpeg2
|
|
|
|
%bcond_with mp3
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
Name: scummvm
|
2010-12-12 06:22:49 +01:00
|
|
|
Version: to_be_filled_by_service
|
|
|
|
Release: 0
|
2010-10-11 16:38:09 +02:00
|
|
|
License: GPLv2+, LGPLv2.1+, BSD
|
2009-03-08 00:09:37 +01:00
|
|
|
Summary: Interpreter for several adventure games
|
|
|
|
Url: http://www.scummvm.org
|
2010-10-11 16:38:09 +02:00
|
|
|
Group: Amusements/Games/Other
|
2009-03-08 00:09:37 +01:00
|
|
|
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
|
2010-04-05 21:40:41 +02:00
|
|
|
Patch0: %{name}-nostrip.patch
|
2010-05-03 21:49:05 +02:00
|
|
|
Patch1: %{name}-nobuildtime.patch
|
2010-10-11 16:38:09 +02:00
|
|
|
Patch2: %{name}-overflow.patch
|
|
|
|
BuildRequires: SDL-devel >= 1.2.2
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: gcc-c++
|
2010-04-05 21:40:41 +02:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2010-10-11 16:38:09 +02:00
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-05-05 22:39:12 +02:00
|
|
|
%if %{with mpeg2}
|
|
|
|
BuildRequires: libmpeg2-devel
|
|
|
|
%endif
|
|
|
|
%if %{with mp3}
|
|
|
|
BuildRequires: libmad-devel
|
|
|
|
%endif
|
2009-03-08 00:09:37 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
BuildRequires: nasm
|
|
|
|
%endif
|
2010-10-11 16:38:09 +02:00
|
|
|
Suggests: %{name}-extra
|
|
|
|
Suggests: %{name}-tools
|
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,
|
|
|
|
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.
|
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
|
2010-10-11 16:38:09 +02:00
|
|
|
M4, mohawk and hugo 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
|
2010-04-05 21:40:41 +02:00
|
|
|
%patch0
|
2010-05-03 21:49:05 +02:00
|
|
|
%patch1
|
2010-10-11 16:38:09 +02:00
|
|
|
%patch2
|
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} \
|
2010-05-03 21:49:05 +02:00
|
|
|
%{?with_mpeg2:--enable-mpeg2} \
|
2010-04-05 21:40:41 +02:00
|
|
|
--enable-verbose-build \
|
2009-03-08 00:09:37 +01:00
|
|
|
--enable-plugins \
|
|
|
|
--enable-m4=dynamic \
|
2010-04-05 21:40:41 +02:00
|
|
|
--enable-mohawk=dynamic \
|
2010-10-11 16:38:09 +02:00
|
|
|
--enable-hugo=dynamic
|
|
|
|
# --docdir=%{_docdir}/%{name}
|
2010-04-05 21:40:41 +02:00
|
|
|
# --enable-groovie2
|
2009-05-05 22:39:12 +02:00
|
|
|
# --enable-lol
|
2010-04-05 21:40:41 +02:00
|
|
|
# --enable-saga2
|
2010-10-11 16:38:09 +02:00
|
|
|
# While m4, mohawk and hugo aren't compiled by default they are full
|
2010-04-05 21:40:41 +02:00
|
|
|
# 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.
|
2009-03-08 00:09:37 +01:00
|
|
|
|
2010-10-11 16:38:09 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%install
|
2010-10-11 16:38:09 +02:00
|
|
|
# docdir is here because in 1.2.0 configure is broken
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT} docdir=%{_docdir}/%{name}
|
2009-03-08 00:09:37 +01:00
|
|
|
%suse_update_desktop_file -i %{name}
|
|
|
|
|
|
|
|
%clean
|
2010-10-11 16:38:09 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%files
|
2009-03-08 00:09:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2010-10-11 16:38:09 +02:00
|
|
|
%attr(0755,root,root)%{_bindir}/%{name}
|
2010-04-05 21:40:41 +02:00
|
|
|
%{_datadir}/%{name}
|
2009-03-08 00:09:37 +01:00
|
|
|
%{_mandir}/man6/%{name}.6*
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-04-05 21:40:41 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
|
%{_docdir}/%{name}
|
2009-03-08 00:09:37 +01:00
|
|
|
|
|
|
|
%files extra
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/%{name}
|
2008-12-03 11:09:38 +01:00
|
|
|
|
|
|
|
%changelog
|