+%define version_tools 0.8.0
Summary: SCUMM graphic adventure game interpreter
Summary(pl): Interpreter przygodówek opartych na SCUMM
Name: scummvm
-Version: 0.4.0
+Version: 0.8.0
Release: 1
License: GPL
Group: X11/Applications/Games
-Source0: http://dl.sf.net/scummvm/%{name}-%{version}.tar.bz2
-Source1: http://dl.sf.net/scummvm/%{name}-tools-%{version}.tar.bz2
+Source0: http://dl.sourceforge.net/scummvm/%{name}-%{version}.tar.bz2
+# Source0-md5: 56bfbcfbe5adde42a2a9e3d6dc3d9068
+Source1: http://dl.sourceforge.net/scummvm/%{name}-tools-%{version_tools}.tar.bz2
+# Source1-md5: cc7e13ea10acf692c10e90b9507074ed
Source2: %{name}.desktop
Source3: %{name}.png
-Patch0: %{name}-makefile.patch
-BuildRequires: libvorbis-devel
-BuildRequires: mad-devel
+Patch0: %{name}-copyprotection.patch
+URL: http://scummvm.sourceforge.net/
BuildRequires: SDL-devel >= 1.2.2
+BuildRequires: fluidsynth-devel
+BuildRequires: libmad-devel
+BuildRequires: libvorbis-devel
+BuildRequires: mpeg2dec-devel
+%ifarch %{ix86}
+BuildRequires: nasm
+%endif
+BuildRequires: sed >= 4.0
+BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-ScummVM is an implementation of the SCUMM (Script Creation Utility for
-Maniac Mansion) engine used in various Lucas Arts games such as Monkey
-Island and Day of the Tentacle. At this time ScummVM should be considered
-ALPHA software, as it's still under heavy development. Be aware that while
-many games will work with few major bugs, crashes can happen. Also note
-that saved games can, and probably will, be incompatible between releases.
+ScummVM is a collection of interpreters, capable of emulating several
+adventure game engines. ScummVM mainly supports games created using
+SCUMM (Script Creation Utility for Maniac Mansion), used in various
+LucasArts games such as Monkey Island, Day of the Tentacle, and
+others.
-Also ScummVM is capable of playing several non-SCUMM games, at the moment
-this includes Simon The Sorcerer.
+ScummVM also contains interpreters for several non-SCUMM games.
+Currently these are Beneath a Steel Sky, Broken Sword 1 & 2, Flight of
+the Amazon Queen and Simon the Sorcerer 1 & 2.
+
+At this time ScummVM should be considered beta software, and is still
+under heavy development. Be aware that whilst we attempt to make sure
+that many games can be completed with few major bugs, crashes can
+happen.
%description -l pl
-ScummVM jest implementacj± silnika SCUMM (Narzêdzie tworz±ce skrypty dla
-Maniac Mansion) u¿ywanego w wielu grach Lucas Arts takich jak Monkey Island,
-czy Day of the Tentacle. ScummVM jest ca³y czas intensywnie rozwijany i
-powinien byæ traktowany jako program w stanie ALPHA. Wiele gier mo¿e siê
-wysypywaæ, lub dzia³aæ z b³êdami. Zapisane stany gry bêd± prawdopodobnie
-niekompatybilne pomiêdzy ró¿nymi wersjami ScummVM.
+ScummVM jest zbiorem interpreterów zdolnych do emulacji kilku silników
+gier przygodowych. ScummVM g³ównie wspiera gry stworzone z u¿yciem
+silnika SCUMM (Script Creation Utility for Maniac Mansion), u¿ywanego
+przez takie tytu³y stworzone przez Lucas Arts jak Monkey Island, Day
+of the Tentacle.
+
+ScummVM potrafi równie¿ interpretowaæ kilka gier nie opartych na
+SCUMM. W chwili obecnej s± to Beneath a Steel Sky, Broken Sword 1 i 2,
+Flight of the Amazon Queen oraz Simon the Sorcerer 1 i 2.
-ScummVM potrafi równie¿ obs³u¿yæ gry nie oparte na silniku SCUMM. W chwili
-obecnej jest to Simon The Sorcerer.
+ScummVM jest ca³y czas intensywnie rozwijany i powinien byæ traktowany
+jako program w stanie beta. Wiele gier powinno daæ siê skoñczyæ bez
+wiêkszych b³êdów, nale¿y byæ jednak ¶wiadomym, ¿e program mo¿e siê
+czasem wysypaæ.
%package tools
-Summary: SCUMM tools
-Summary(pl): Narzêdzia zwi±zane ze SCUMM
+Summary: ScummVM tools
+Summary(pl): Narzêdzia zwi±zane ze ScummVM
Group: X11/Applications/Games
%description tools
-SCUMM tools.
+Collection of various tools that may be useful to use in conjunction
+with ScummVM.
%description tools -l pl
-Narzêdzia zwi±zane ze SCUMM.
+Zestaw narzêdzi mog±cych byæ u¿ytecznymi w po³±czeniu ze ScummVM.
%prep
%setup -q -a 1
%patch0 -p1
+sed -i -e 's:"plugins/":"%{_libdir}/scummvm/":' base/plugins.cpp
+
%build
+./configure \
+ --disable-debug \
+%ifnarch %{ix86}
+ --disable-nasm \
+%endif
+ --enable-kyra \
+ --enable-plugins
+
%{__make} \
CXX="%{__cxx}" \
- CFLAGS="%{rpmcflags}" \
+ CXXFLAGS="%{rpmcflags} -DDYNAMIC_MODULES -fpic" \
LDFLAGS="%{rpmldflags}"
-cd %{name}-tools-%{version}
+cd tools-%{version_tools}
%{__make} \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_applnkdir}/Games}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_desktopdir},%{_libdir}/scummvm}
install scummvm $RPM_BUILD_ROOT%{_bindir}
install scummvm.6 $RPM_BUILD_ROOT%{_mandir}/man6
-cd %{name}-tools-%{version}
-install {descumm{,6},rescumm,simon2mp3} $RPM_BUILD_ROOT%{_bindir}
-install extract $RPM_BUILD_ROOT%{_bindir}/extract-scummvm
+install plugins/lib*.so $RPM_BUILD_ROOT%{_libdir}/scummvm
+
+cd tools-%{version_tools}
+install compress_queen $RPM_BUILD_ROOT%{_bindir}
+install compress_saga $RPM_BUILD_ROOT%{_bindir}
+install compress_san $RPM_BUILD_ROOT%{_bindir}
+install compress_scumm_bun $RPM_BUILD_ROOT%{_bindir}
+install compress_scumm_sou $RPM_BUILD_ROOT%{_bindir}
+install compress_simon $RPM_BUILD_ROOT%{_bindir}
+install compress_sword1 $RPM_BUILD_ROOT%{_bindir}
+install compress_sword2 $RPM_BUILD_ROOT%{_bindir}
+install dekyra $RPM_BUILD_ROOT%{_bindir}
+install descumm $RPM_BUILD_ROOT%{_bindir}
+install desword2 $RPM_BUILD_ROOT%{_bindir}
+install extract_kyra $RPM_BUILD_ROOT%{_bindir}
+install extract_loom_tg16 $RPM_BUILD_ROOT%{_bindir}
+install extract_mm_c64 $RPM_BUILD_ROOT%{_bindir}
+install extract_mm_nes $RPM_BUILD_ROOT%{_bindir}
+install extract_scumm_mac $RPM_BUILD_ROOT%{_bindir}
+install extract_simon1_amiga $RPM_BUILD_ROOT%{_bindir}
+install extract_zak_c64 $RPM_BUILD_ROOT%{_bindir}
cd -
-install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
%files
%defattr(644,root,root,755)
-%doc NEWS README
+%doc AUTHORS NEWS README TODO
%attr(755,root,root) %{_bindir}/scummvm
+%{_libdir}/scummvm
%{_mandir}/man6/*
%{_pixmapsdir}/*
-%{_applnkdir}/*
+%{_desktopdir}/*
%files tools
%defattr(644,root,root,755)
-%doc %{name}-tools-%{version}/README
+%doc tools-%{version_tools}/README
%attr(755,root,root) %{_bindir}/*
%exclude %{_bindir}/scummvm