|
|
9dd7ec7 |
Summary: An Atari ST emulator suitable for playing games
|
|
|
9dd7ec7 |
Name: hatari
|
|
|
9dd7ec7 |
Version: 0.90
|
|
|
7db16e8 |
Release: 6%{?dist}
|
|
|
9dd7ec7 |
License: GPL
|
|
|
9dd7ec7 |
Group: Applications/Emulators
|
|
|
9dd7ec7 |
URL: http://hatari.sourceforge.net/
|
|
|
9dd7ec7 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
9dd7ec7 |
Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
9dd7ec7 |
Source1: hatari.png
|
|
|
7db16e8 |
BuildRequires: SDL-devel >= 1.2.0
|
|
|
7db16e8 |
BuildRequires: zlib-devel
|
|
|
7db16e8 |
BuildRequires: desktop-file-utils
|
|
|
9dd7ec7 |
Requires: hicolor-icon-theme
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%description
|
|
|
9dd7ec7 |
Hatari is an Atari-ST and STE emulator for Linux. More precisely, it
|
|
|
9dd7ec7 |
is an adaption of the WinSTon source code to Linux, using the UAE CPU
|
|
|
9dd7ec7 |
core instead of the original, non-portable assembler CPU core.
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
Unlike other ST emulators which concentrate on desktop compatibility,
|
|
|
9dd7ec7 |
it is suitable for playing games.
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%prep
|
|
|
9dd7ec7 |
%setup -q
|
|
|
7db16e8 |
|
|
|
7db16e8 |
# fix Makefile not to strip binaries during make install
|
|
|
7db16e8 |
sed -i 's/@INSTALL_PROGRAM@ -s/@INSTALL_PROGRAM@/' Makefile.cnf.in
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
%build
|
|
|
9dd7ec7 |
%configure --datadir=%{_datadir}/hatari
|
|
|
9dd7ec7 |
make
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
# README.tos
|
|
|
9dd7ec7 |
cat >doc/README.tos <
|
|
|
9dd7ec7 |
To run the emulator a TOS ROM image is needed. EmuTOS, a free implementation
|
|
|
9dd7ec7 |
of TOS, is shipped with hatari.
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
EmuTOS is a single-user single-tasking operating system for the 32 bit Atari
|
|
|
9dd7ec7 |
computers and emulators. It can be used as a replacement for the TOS images
|
|
|
9dd7ec7 |
typically needed today for using emulators and it is also running on some
|
|
|
9dd7ec7 |
real hardware, like the Atari Mega STE. All the source code is open and
|
|
|
9dd7ec7 |
free, licensed under the GNU General Public License (GPL). A copy of the GNU
|
|
|
9dd7ec7 |
GPL can be found in the gpl.txt file.
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
EmuTOS has its home at sourceforge:
|
|
|
9dd7ec7 |
http://sourceforge.net/projects/emutos
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
Hatari is shipped with tos.img ROM image that is identical to etos256us.img
|
|
|
9dd7ec7 |
from the binary package of version 0.8.1 available at sourceforge:
|
|
|
9dd7ec7 |
http://dl.sourceforge.net/sourceforge/emutos/emutos256k-0.8.1.zip
|
|
|
9dd7ec7 |
EOF
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
# Build desktop icon
|
|
|
9dd7ec7 |
cat >%{name}.desktop <
|
|
|
9dd7ec7 |
[Desktop Entry]
|
|
|
9dd7ec7 |
Encoding=UTF-8
|
|
|
9dd7ec7 |
Name=Hatari
|
|
|
9dd7ec7 |
Comment=Atari ST emulator
|
|
|
9dd7ec7 |
Exec=%{name}
|
|
|
9dd7ec7 |
Icon=%{name}.png
|
|
|
9dd7ec7 |
Terminal=false
|
|
|
9dd7ec7 |
Type=Application
|
|
|
7db16e8 |
Categories=Game;Emulator;
|
|
|
9dd7ec7 |
Version=%{version}
|
|
|
9dd7ec7 |
EOF
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%install
|
|
|
9dd7ec7 |
rm -rf %{buildroot}
|
|
|
9dd7ec7 |
make install DESTDIR=%{buildroot}
|
|
|
9dd7ec7 |
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
|
9dd7ec7 |
install -m 644 doc/hatari.1 %{buildroot}%{_mandir}/man1
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
# install desktop file and icon
|
|
|
9dd7ec7 |
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
9dd7ec7 |
desktop-file-install --vendor fedora \
|
|
|
9dd7ec7 |
--dir %{buildroot}%{_datadir}/applications \
|
|
|
9dd7ec7 |
%{name}.desktop
|
|
|
9dd7ec7 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
|
9dd7ec7 |
cp %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%clean
|
|
|
9dd7ec7 |
rm -rf %{buildroot}
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%post
|
|
|
9dd7ec7 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
9dd7ec7 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
9dd7ec7 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
9dd7ec7 |
fi
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%postun
|
|
|
9dd7ec7 |
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
9dd7ec7 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
9dd7ec7 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
9dd7ec7 |
fi
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%files
|
|
|
9dd7ec7 |
%defattr(-,root,root)
|
|
|
9dd7ec7 |
%{_bindir}/hatari
|
|
|
9dd7ec7 |
%{_datadir}/hatari
|
|
|
9dd7ec7 |
%{_mandir}/man1/hatari.1*
|
|
|
9dd7ec7 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
9dd7ec7 |
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
9dd7ec7 |
%doc gpl.txt readme.txt doc/{*.txt,*.html,images}
|
|
|
9dd7ec7 |
%doc doc/README.tos
|
|
|
9dd7ec7 |
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
%changelog
|
|
|
7db16e8 |
* Sat Mar 17 2007 Andrea Musuruane <musuruan@gmail.com> 0.90-6%{?dist}
|
|
|
7db16e8 |
- dropped --add-category X-Fedora from desktop-file-install
|
|
|
7db16e8 |
- changed .desktop category to Game;Emulator;
|
|
|
7db16e8 |
- now using sed to fix makefile not to strip binaries during make install
|
|
|
7db16e8 |
- cosmetic changes to BR section
|
|
|
7db16e8 |
|
|
|
9dd7ec7 |
* Mon Oct 23 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-5%{?dist}
|
|
|
9dd7ec7 |
- added a patch not to strip binaries during make install
|
|
|
9dd7ec7 |
- added hicolor-icon-theme to Requires
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
* Sat Oct 21 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-4%{?dist}
|
|
|
9dd7ec7 |
- added README.tos to explain that Hatari is shipped with EmuTOS
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
* Fri Oct 20 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-3%{?dist}
|
|
|
9dd7ec7 |
- new release for FE migration
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
* Sun Oct 08 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-2%{?dist}
|
|
|
9dd7ec7 |
- replaced %%_mandir with %%{_mandir}
|
|
|
9dd7ec7 |
- full URL is now specified in the Source tag
|
|
|
9dd7ec7 |
- added .desktop file and icons
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
* Sat Sep 30 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-1%{?dist}
|
|
|
9dd7ec7 |
- initial package
|
|
|
9dd7ec7 |
|
|
|
9dd7ec7 |
|