%define targets ncurses x11 sdl %define maintarget sdl Summary: An emulator of 8-bit Atari personal computers Name: atari800 Version: 2.0.3 Release: 1%{?dist} License: GPLv2+ URL: http://atari800.sourceforge.net/ Group: Applications/Emulators Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: atari800.desktop Patch0: atari800-nostrip.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel ncurses-devel libX11-devel libpng-devel zlib-devel BuildRequires: desktop-file-utils %description Atari800 is an emulator for the 800, 800XL, 130XE and 5200 models of the Atari personal computer. It can be used on console, FrameBuffer or X11. It features excellent compatibility, HIFI sound support, artifacting emulation, precise cycle-exact ANTIC/GTIA emulation and more. %prep %setup -q -n %{name}-%{version}/src %patch0 -p2 -b .nostrip %build for target in %{targets} do %configure --target=$target make %{?_smp_mflags} mv %{name} %{name}-$target make clean done touch %{name} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT for target in %{targets} do install %{name}-$target $RPM_BUILD_ROOT%{_bindir} done ( cd $RPM_BUILD_ROOT%{_bindir} ln -sf %{name}-%{maintarget} %{name} ) desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc %{_bindir}/%{name}* %{_mandir}/man1/%{name}.1.gz %{_docdir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop %changelog * Sat Oct 6 2007 Dan Horak 2.0.3-1 - first Fedora version based on upstream