File hatari.spec of Package hatari
#
# spec file for package hatari (Version 0.50)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: hatari
BuildRequires: SDL-devel unzip xorg-x11
Url: http://hatari.sourceforge.net/
License: GPL v2 or later
Group: System/Emulators/Other
AutoReqProv: on
Version: 0.50
Release: 247
Summary: An Atari ST Emulator Suitable for Playing Games
Source: %{name}-%{version}.tar.bz2
Source1: emutos-0.7.tar.bz2
Source2: etos256k-0.7.zip
Patch: %{name}-0.50.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Hatari is the Linux port of WinSTon, an Atari ST emulator for Windows.
Unlike other ST emulators, which concentrate on desktop compatibility,
it is suitable for playing games.
Authors:
--------
Thomas Huth <thothy@gmx.net>
Stefan Berndtsson <stefan@nocrew.org>
%prep
%setup
%patch
unzip %SOURCE2
%build
./configure --prefix=/usr
make HOSTCC="gcc $RPM_OPT_FLAGS" CC="gcc $RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -m 644 emutos/*.img $RPM_BUILD_ROOT/usr/share/hatari
ln -sf etos256us.img $RPM_BUILD_ROOT/usr/share/hatari/tos.img
install -d -m 755 ${RPM_BUILD_ROOT}%_mandir/man1
install -m 644 doc/hatari.1 ${RPM_BUILD_ROOT}%_mandir/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc *.txt doc/*.txt doc/*.html
/usr/bin/hatari
/usr/share/hatari
%doc %_mandir/man1/hatari.1*
%changelog
* Thu Nov 06 2008 ro@suse.de
- drop nosource
* Thu Mar 29 2007 dmueller@suse.de
- update BuildRequires
* Tue Dec 12 2006 wengel@suse.de
- binaries moved from /usr/X11R6/bin/ to /usr/bin/
* Sun Oct 29 2006 meissner@suse.de
- also build HOSTCC things with RPM_OPT_FLAGS
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Aug 06 2004 uli@suse.de
- update -> 0.50
- added EmuTOS (free ST firmware) so it will work out of the box
(source package is technically unnecessary but required to comply
with the GPL)
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Thu Sep 04 2003 wengel@suse.de
- update -> 0.40
* Wed May 28 2003 coolo@suse.de
- use BuildRoot
* Mon Jun 10 2002 uli@suse.de
- update -> 0.20.2 (GUI, added (real) joystick support, fixed some
problems with the CPU reset, fixed many "FIXME"s, now uses the
SDL's relative mouse mode instead of absolut mode)
* Tue Jan 22 2002 ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Tue Nov 13 2001 uli@suse.de
- update -> 0.11 (Fixed a stack problem in gemdos.c, Added screen flipping
in fullscreen mode, ST-Med/ST-Low mixed mode now works, Added hard-drive
emulation, Fixed annoying key clicks during boot)
* Wed Aug 22 2001 uli@suse.de
- update -> 0.10:
* Improved CPU cycles emulation. Most instructions now return the
right cycles, I hope.
* Added Spec512 support.
* Added some shortcuts
* Added the possibility to switch between fullscreen and window mode.
* Started working on better CPU cycles emulation (well, they are
a real mess!).
* Added ST Medium resolution.
* Added Sven's debugger patch.
* Added Sven de Marothy's screenshot patch. It allows taking screenshots
by pressing ALTGR-G.
* Added sound support. Does not yet work perfect, but at least there
are some noises now :-) (Use option --sound to enable it).
* Wed Aug 08 2001 ro@suse.de
- changed neededforbuild <kdelibs kdelibs-devel> to <kdelibs-artsd>
* Wed Aug 08 2001 ro@suse.de
- changed neededforbuild <sdl> to <SDL>
- changed neededforbuild <sdl-devel> to <SDL-devel>
* Thu Jul 12 2001 uli@suse.de
- initial package