%define prever -WIP1 Summary: Portable, freeware Super Nintendo Entertainment System (TM) emulator Name: snes9x Version: 1.43 Release: 2%{?dist} License: Other Group: Applications/Emulators URL: http://www.snes9x.com/ Source: http://www.lysator.liu.se/snes9x/%{version}/%{name}-%{version}-src.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ BuildRequires: libX11-devel, xorg-x11-proto-devel, libXext-devel BuildRequires: zlib-devel, libpng-devel, nasm %description Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES) emulator. It basically allows you to play most games designed for the SNES and Super Famicom Nintendo game systems on your PC or Workstation. Snes9x is the result of well over six years worth of part-time hacking, coding, recoding, debugging, etc. Snes9x is coded in C++, with three assembler CPU emulation cores on the i386 Linux, DOS and Windows ports. %prep %setup -q -n %{name}-%{version}-src %build cd snes9x %configure # Replace OPTIMISE here, it's the best I've found... perl -pi.orig -e 's|^OPTIMISE.*|OPTIMISE = %{optflags}|g' Makefile make %install rm -rf %{buildroot} install -m 0755 -D snes9x/snes9x %{buildroot}%{_bindir}/snes9x %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc faqs.txt license.txt readme.txt readme.unix %doc snes9x_default_config.cfg %{_bindir}/snes9x %changelog * Tue Mar 1 2005 Axel Thimm - Update to 1.43. * Sat Dec 18 2004 Matthias Saou - Initial RPM release.