2eb9f23
Name:		scummvm
00a0d25
Version:	1.4.1
98bf66e
Release:	1%{?dist}
2eb9f23
Summary:	Interpreter for several adventure games
3267f1e
Group:		Applications/Emulators
3267f1e
License:	GPLv2+
3267f1e
URL:		http://scummvm.sourceforge.net/
3267f1e
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
3267f1e
#######		Icons extracted from icons/scummvm.ico with the gimp
3267f1e
Source1:	scummvm-icons.tar.gz
faa83de
Patch0:		scummvm-1.2.0-nostrip.patch
7d3708e
# add option to NASMFLAGS to generate DWARF debug symbols
7d3708e
# https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3439302&group_id=37116
7d3708e
Patch1:		scummvm-1.4.0-nasm.patch
3267f1e
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3267f1e
BuildRequires:	SDL-devel libvorbis-devel flac-devel zlib-devel
3267f1e
BuildRequires:	fluidsynth-devel desktop-file-utils
65021b1
%ifarch %{ix86}
3267f1e
BuildRequires:	nasm
65021b1
%endif
3267f1e
Requires:	hicolor-icon-theme
d2d5c93
d2d5c93
%description
d2d5c93
ScummVM is an implementation of the SCUMM (Script Creation Utility for
d2d5c93
Maniac Mansion) engine used in various Lucas Arts games such as Monkey
d2d5c93
Island and Day of the Tentacle. At this time ScummVM should be considered
9278204
beta software, and is still under heavy development.
d2d5c93
d2d5c93
Also ScummVM is capable of playing several non-SCUMM games.
9278204
Some of the adventures ScummVM supports include Adventure Soft's Simon
9278204
the Sorcerer 1 and 2; Revolution's Beneath A Steel Sky, Broken Sword I
9278204
and II; Flight of the Amazon Queen; Wyrmkeep's Inherit the Earth; Coktel
9278204
Vision's Gobliiins; Westwood Studios' The Legend of Kyrandia
d2d5c93
d2d5c93
d2d5c93
%prep
d2d5c93
%setup -q -a 1
0433900
%patch0 -p1 -b .nostrip
7d3708e
%patch1 -p1 -b .nasm
59be913
sed -i 's/%{name}.xpm/%{name}/' dists/%{name}.desktop
978d753
sed -i 's/Application;Game;AdventureGame;/Game;Emulator;/' \
3267f1e
	dists/%{name}.desktop
d2d5c93
d2d5c93
d2d5c93
%build
d2d5c93
# No rpm configure because scummvm's configure isn't a real configure and thus
0c767ea
# doesn't understand some of the options %%configure passes. This includes
d2d5c93
# -libdir, so rpmlint's complaints should be ignored.
d2d5c93
# The disables are so that these don't accidently get build in when rebuilding
d2d5c93
# on a system with the necesarry deps installed
d2d5c93
./configure --prefix=%{_prefix} --bindir=%{_bindir} --mandir=%{_mandir} \
faa83de
	--datadir=%{_datadir}/scummvm --disable-mad --enable-all-engines --enable-release
d2d5c93
make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"
d2d5c93
d2d5c93
d2d5c93
%install
d2d5c93
rm -rf $RPM_BUILD_ROOT
d2d5c93
make install DESTDIR=$RPM_BUILD_ROOT
d26fa59
# Remove doc files we want to include with %%doc
d2d5c93
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/
d2d5c93
d2d5c93
# below is the desktop file and icon stuff.
d2d5c93
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
2eb9f23
desktop-file-install \
3267f1e
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
3267f1e
	dists/%{name}.desktop
d2d5c93
d26fa59
install -D -p -m 0644 %{name}-16x16.png \
3267f1e
	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
d26fa59
install -D -p -m 0644 %{name}-32x32.png \
3267f1e
	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
d26fa59
install -D -p -m 0644 %{name}-48x48.png \
3267f1e
	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
d26fa59
install -D -p -m 0644 %{name}-128x128.png \
3267f1e
	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
d2d5c93
rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.xpm
d2d5c93
d2d5c93
d2d5c93
%clean
d2d5c93
rm -rf $RPM_BUILD_ROOT
d2d5c93
d2d5c93
d2d5c93
%post
d2d5c93
touch --no-create %{_datadir}/icons/hicolor || :
d2d5c93
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
3267f1e
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d2d5c93
fi
d2d5c93
d2d5c93
%postun
d2d5c93
touch --no-create %{_datadir}/icons/hicolor || :
d2d5c93
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
3267f1e
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
d2d5c93
fi
d2d5c93
d2d5c93
d2d5c93
%files
d2d5c93
%defattr(-,root,root,-)
d2d5c93
%doc AUTHORS COPYING NEWS README TODO
d2d5c93
%{_bindir}/%{name}
d26fa59
%{_datadir}/%{name}/
d2d5c93
%{_mandir}/man6/%{name}.6*
59be913
%{_datadir}/applications/%{name}.desktop
d2d5c93
%{_datadir}/icons/hicolor/*/apps/%{name}.png
d2d5c93
d2d5c93
d2d5c93
%changelog
00a0d25
* Sun Jan 29 2012 Christian Krause <chkr@fedoraproject.org> - 1.4.1-1
00a0d25
- new upstream release
00a0d25
7d3708e
* Thu Nov 17 2011 Christian Krause <chkr@fedoraproject.org> - 1.4.0-1
a157bc5
- new upstream release
7d3708e
- add option to NASMFLAGS to generate DWARF debug symbols
a157bc5
84280b2
* Mon Jul 25 2011 Christian Krause <chkr@fedoraproject.org> - 1.3.1-1
84280b2
- new upstream release
84280b2
98bf66e
* Wed May 25 2011 Lucian Langa <cooly@gnome.eu.org> - 1.3.0-1
98bf66e
- new upstream release
98bf66e
849d863
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
849d863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
849d863
58c51a2
* Mon Dec 13 2010 Lucian Langa <cooly@gnome.eu.org> - 1.2.1-1
58c51a2
- new upstream release
58c51a2
faa83de
* Fri Oct 15 2010 Lucian Langa <cooly@gnome.eu.org> - 1.2.0-1
faa83de
- update nostrip patch
faa83de
- drop patch1 - fixed upstream
faa83de
- new upstream release
faa83de
9278204
* Fri Sep 17 2010 Lucian Langa <cooly@gnome.eu.org> - 1.1.1-2
9278204
- update description
9278204
- add enable-release flag
9278204
3267f1e
* Mon May 03 2010 Lucian Langa <cooly@gnome.eu.org> - 1.1.1-1
3267f1e
- new upstream release
3267f1e
2fc1047
* Sun Apr 05 2010 Lucian Langa <cooly@gnome.eu.org> - 1.1.0-1
2fc1047
- new upstream release
2fc1047
eb67d90
* Sun Apr  4 2010 Hans de Goede <hdegoede@redhat.com> - 1.0.0-2
eb67d90
- When starting lure from the cmdline (as the lure fedora package .desktop
eb67d90
  file does) prefer the VGA version over the EGA version
eb67d90
197e46c
* Wed Nov 25 2009 Lucian Langa <cooly@gnome.eu.org> - 1.0.0-1
197e46c
- drop patch1 - fixed upstream
197e46c
- update patch0 to 1.0.0 release
197e46c
- new upstream release
197e46c
ffea24b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-2
ffea24b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ffea24b
556fb69
* Tue Apr 28 2009 Lucian Langa <cooly@gnome.eu.org> - 0.13.1-1
556fb69
- new upstream release
556fb69
59be913
* Mon Mar 09 2009 Lucian Langa <cooly@gnome.eu.org> - 0.13.0-1
59be913
- new upstream release
59be913
- update patch0
59be913
- drop installing uneeded theme files
59be913
- drop vendor from desktop file; fix icon entry
59be913
fe6dac9
* Thu Feb 26 2009 Lucian Langa <cooly@gnome.eu.org> - 0.12.0-3
fe6dac9
- add patch1 for gcc44 fixes
fe6dac9
4387790
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-2
4387790
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4387790
5da98b2
* Mon Sep 01 2008 Lucian Langa <cooly@gnome.eu.org> - 0.12.0-1
5da98b2
- new upstream 0.12.0
5da98b2
- drop 0.11.0 patches (fixed upstream)
5da98b2
- drop 0.9.0 patch (fixed upstream)
5da98b2
eedf3d7
* Sat Mar  8 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.11.1-2
eedf3d7
- Various bugfixes to lure sound support
eedf3d7
- Enable libfluidsynth support 
eedf3d7
98accad
* Sat Mar  1 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.11.1-1
98accad
- New upstream version 0.11.1
98accad
1bbf015
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.11.0-2
1bbf015
- Autorebuild for GCC 4.3
1bbf015
2fd8063
* Wed Jan 16 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.11.0-1
2fd8063
- New upstream version 0.11.0
0433900
- Drop no longer needed gcc 4.3 patch
2fd8063
530dd29
* Sat Jan 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.10.0-3
530dd29
- Fix compilation with gcc 4.3
530dd29
5198cea
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.10.0-2
5198cea
- Update License tag for new Licensing Guidelines compliance
5198cea
d26fa59
* Thu Jun 21 2007 Matthias Saou <http://freshrpms.net/> 0.10.0-1
d26fa59
- Update to 0.10.0, since Hans is away for a few days ;-)
d26fa59
- Install icons the same way as the theme, and preserve timestamps.
d26fa59
- Use a downloads.sf.net source URL.
d26fa59
- Remove two no longer needed patches (gcc41 and new-flac).
d26fa59
65021b1
* Thu Feb 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9.1-3
65021b1
- Take patches from svn for new flac support and rebuild for new flac
65021b1
- Fix (remove) execstack usage
65021b1
978d753
* Sat Nov 11 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9.1-2
978d753
- Fix desktop-file so that scummvm doesn't end up in the "Other" menu under
978d753
  gnome (bug 215097)
978d753
d2d5c93
* Sat Nov  4 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9.1-1
d2d5c93
- New upstream release 0.9.1
d2d5c93
- Prepare for inclusion into FE
d2d5c93
- Remove mp3 support (the same files are also available in ogg format)
d2d5c93
- Remove mpeg2 video support (problem, but only for one game I will
d2d5c93
  request upstream to add theora support)
d2d5c93
d2d5c93
* Sun Oct 29 2006 Matthias Saou <http://freshrpms.net/> 0.9.0-1
d2d5c93
- Update to 0.9.0.
d2d5c93
- Spec file cleanup.
d2d5c93
- Add datadir patch from upstream in order to include themes.
d2d5c93
d2d5c93
* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
- switch to new release field
d2d5c93
- drop Epoch
d2d5c93
d2d5c93
* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
- add dist
d2d5c93
d2d5c93
* Mon Feb 06 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.8.2-0.lvn.1
d2d5c93
- version upgrade
d2d5c93
d2d5c93
* Mon Jan 30 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.8.1-0.lvn.1
d2d5c93
- version upgrade
d2d5c93
d2d5c93
* Thu Dec 08 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.8.0-0.lvn.2
d2d5c93
- fix #693 (desktop entry)
d2d5c93
- beautify desktop-file-install
d2d5c93
d2d5c93
* Sat Oct 29 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.8.0-0.lvn.1
d2d5c93
- version upgrade
d2d5c93
d2d5c93
* Mon Jun 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.1-0.lvn.3
d2d5c93
- add --disable--mt32emu switch to fix build with gcc4
d2d5c93
d2d5c93
* Mon May 30 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.1-0.lvn.2
d2d5c93
- fix x86_64 build
d2d5c93
d2d5c93
* Thu Mar 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.1-0.lvn.1
d2d5c93
- Version Upgrade
d2d5c93
d2d5c93
* Tue Feb 22 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.0-0.lvn.3
d2d5c93
- add nasm <-> x86_64
d2d5c93
d2d5c93
* Tue Feb 22 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.0-0.lvn.2
d2d5c93
- fixed #371 (bild on non ix86 - David Woodhouse)
d2d5c93
d2d5c93
* Fri Dec 24 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.7.0-0.lvn.1
d2d5c93
- added AUTHORS and TODO
d2d5c93
d2d5c93
* Thu Dec 23 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
- added off. 0.7.0 sources
d2d5c93
d2d5c93
* Sun Dec 19 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
- upgrade to 0.7.0 cvs (20041219), prep. for 0.7.0
d2d5c93
- added more BuildRequires
d2d5c93
- if without-alsa is defined actually disable alsa via configure
d2d5c93
d2d5c93
* Thu Nov 25 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.6.1b-0.lvn.1
d2d5c93
-upgrade to 0.6.1b
d2d5c93
d2d5c93
* Thu May 27 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.6.0-0.lvn.1
d2d5c93
- upgrade to 0.6.0
d2d5c93
d2d5c93
* Thu Oct 02 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.5.1-0.fdr.6
d2d5c93
- removed #--- lines
d2d5c93
d2d5c93
* Tue Sep 16 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.5.1-0.fdr.5
d2d5c93
- added ${RPM_OPT_FLAGS}
d2d5c93
d2d5c93
* Mon Sep 08 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.5.1-0.fdr.4
d2d5c93
- added libvorbis-devel
d2d5c93
d2d5c93
* Tue Sep 02 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.5.1-0.fdr.3
d2d5c93
- upgrade to new minor version
d2d5c93
d2d5c93
* Wed Aug 06 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.5.0-0.fdr.2
d2d5c93
- upgrade to new major version
d2d5c93
d2d5c93
* Fri Aug 01 2003 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
d2d5c93
0:0.4.1-0.fdr.1
d2d5c93
- Initial RPM release.