%define prever pre8 Summary: Wah!Cade keyboard controlled frontend for arcade emulators Name: wahcade Version: 0.99 Release: 0.1.%{prever}%{?dist} License: GPLv2+ Group: Applications/Emulators URL: http://www.anti-particle.com/wahcade.shtml Source0: http://www.anti-particle.com/projects/wahcade/wahcade-%{version}%{prever}.tar.gz # Change the first few lines + s/DESTDIR/DATADIR/ below and 2 /usr to $PREFIX Patch0: wahcade-0.99pre8-install.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch #BuildRequires: pygtk2 # Mandatory Requires: pygtk2 Requires: python-chardet # Optional, but useful Requires: python-imaging Requires: gstreamer-python Requires: pygame %description Wah!Cade. A GNU/Linux friendly clone of Minwah's excellent MameWAH. It's is a front end for games and emulators (e.g. the M.A.M.E. arcade game emulator), and has been designed with arcade cabinet controls & projects in mind. %prep %setup -q -n %{name} %patch0 -p1 %build # Nothing to do, the setup.py is wrong, ony an ugly "install" script instead %install %{__rm} -rf %{buildroot} #{__python} setup.py install -O1 --skip-build --root %{buildroot} PREFIX=%{_prefix} \ BINDIR=%{_bindir} \ DATADIR=%{_datadir} \ DESTDIR=%{buildroot} \ ./install %find_lang %{name} %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc doc/* %{_bindir}/wahcade %{_bindir}/wahcade-layout-editor %{_bindir}/wahcade-setup %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/wahcade.png %{_datadir}/wahcade/ %changelog * Mon Nov 2 2009 Matthias Saou 0.99-0.1.pre8 - Initial RPM release.