-%define snap 20020116
+%define version_tools 0.5.0
Summary: SCUMM graphic adventure game interpreter
Summary(pl): Interpreter przygodówek opartych na SCUMM
Name: scummvm
-Version: 0.1.0
-Release: 0.%{snap}.1
+Version: 0.5.1
+Release: 2
License: GPL
Group: X11/Applications/Games
-#Source0: http://scummvm.sourceforge.net/daily/%{name}-%{snap}.tar.bz2
-Source0: %{name}-%{snap}.tar.bz2
-Patch0: %{name}-timidity.patch
+Source0: http://dl.sf.net/scummvm/%{name}-%{version}.tar.bz2
+# Source0-md5: 67bdbe2e145b8072d0bac61f7ed150c0
+Source1: http://dl.sf.net/scummvm/%{name}-tools-%{version_tools}.tar.bz2
+# Source1-md5: 4d9d4821b2cac5225ac408f00a69c189
+Source2: %{name}.desktop
+Source3: %{name}.png
+Patch0: %{name}-makefile.patch
+URL: http://scummvm.sourceforge.net/
+BuildRequires: libvorbis-devel
+BuildRequires: libmad-devel
BuildRequires: SDL-devel >= 1.2.2
-Requires: SDL >= 1.2.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
-
%description
-ScummVM is an interpreter that will play graphic adventure games
-written for LucasArts' SCUMM virtual machine. It uses the SDL library
-for outputting graphics.
+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.
+
+Also ScummVM is capable of playing several non-SCUMM games, at the moment
+this includes Simon The Sorcerer.
%description -l pl
-ScummVM jest interpreterem, który pozwala graæ w przygodówki napisane
-dla wirtualnej maszyny SCUMM stworzonej przez LucasArts. U¿ywa SDL do
-wy¶wietlania grafiki.
+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 potrafi równie¿ obs³u¿yæ gry nie oparte na silniku SCUMM. W chwili
+obecnej jest to Simon The Sorcerer.
+
+%package tools
+Summary: SCUMM tools
+Summary(pl): Narzêdzia zwi±zane ze SCUMM
+Group: X11/Applications/Games
+
+%description tools
+SCUMM tools.
+
+%description tools -l pl
+Narzêdzia zwi±zane ze SCUMM.
%prep
-%setup -q -n %{name}
+%setup -q -a 1
%patch0 -p1
%build
-%{__make}
+%{__make} \
+ CXX="%{__cxx}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+cd %{name}-tools-%{version_tools}
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_desktopdir}}
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6}
install scummvm $RPM_BUILD_ROOT%{_bindir}
install scummvm.6 $RPM_BUILD_ROOT%{_mandir}/man6
-gzip -9nf readme.txt whatsnew.txt
+cd %{name}-tools-%{version_tools}
+install {descumm{,6},rescumm,simon2mp3} $RPM_BUILD_ROOT%{_bindir}
+install extract $RPM_BUILD_ROOT%{_bindir}/extract-scummvm
+cd -
+
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%doc NEWS README
+%attr(755,root,root) %{_bindir}/scummvm
%{_mandir}/man6/*
-%doc *.gz
+%{_pixmapsdir}/*
+%{_desktopdir}/*
+
+%files tools
+%defattr(644,root,root,755)
+%doc %{name}-tools-%{version_tools}/README
+%attr(755,root,root) %{_bindir}/*
+%exclude %{_bindir}/scummvm