| 1 |
Name: hatari |
| 2 |
Version: 2.2.1 |
| 3 |
Release: %mkrel 3 |
| 4 |
Summary: An Atari ST emulator suitable for playing games |
| 5 |
License: GPLv2+ |
| 6 |
Group: Emulators |
| 7 |
URL: http://hatari.tuxfamily.org/ |
| 8 |
Source0: http://download.tuxfamily.org/%{name}/%{version}/%{name}-%{version}.tar.bz2 |
| 9 |
Patch0: hatari-1.9.0-mga-i18n+fix-desktop-file.patch |
| 10 |
BuildRequires: cmake |
| 11 |
BuildRequires: pkgconfig(sdl2) |
| 12 |
BuildRequires: pkgconfig(zlib) |
| 13 |
BuildRequires: pkgconfig(libpng) |
| 14 |
BuildRequires: pkgconfig(portaudio-2.0) |
| 15 |
BuildRequires: pkgconfig(python3) |
| 16 |
BuildRequires: pkgconfig(udev) |
| 17 |
BuildRequires: pkgconfig(x11) |
| 18 |
BuildRequires: readline-devel |
| 19 |
|
| 20 |
# Required by zip2st and atari-hd-image |
| 21 |
Requires: unzip |
| 22 |
Requires: mtools |
| 23 |
Requires: dosfstools |
| 24 |
|
| 25 |
%description |
| 26 |
Hatari is an emulator for the Atari ST, STE, TT and Falcon computers. |
| 27 |
|
| 28 |
The Atari ST was a 16/32 bit computer system which was first released by |
| 29 |
Atari in 1985. Using the Motorola 68000 CPU, it was a very popular computer |
| 30 |
having quite a lot of CPU power at that time. Unlike many other Atari ST |
| 31 |
emulators which try to give you a good environment for running GEM |
| 32 |
applications, Hatari tries to emulate the hardware of a ST as close as |
| 33 |
possible so that it is able to run most of the old ST games and demos. |
| 34 |
|
| 35 |
|
| 36 |
%prep |
| 37 |
%setup -q |
| 38 |
%autopatch -p1 |
| 39 |
|
| 40 |
# Remove shebang from non executable scripts |
| 41 |
for pyfile in dialogs.py hatari.py uihelpers.py config.py |
| 42 |
do |
| 43 |
sed -i -e '/^#!\//, 1d' python-ui/$pyfile |
| 44 |
done |
| 45 |
|
| 46 |
# Fix interpreter |
| 47 |
for pyfile in tools/atari-convert-dir.py tools/debugger/hatari_profile.py tools/hconsole/example.py tools/hconsole/hconsole.py python-ui/hatariui.py python-ui/gentypes.py python-ui/debugui.py |
| 48 |
do |
| 49 |
sed -i '1s|/usr/bin/env python|%{__python3}|' $pyfile |
| 50 |
done |
| 51 |
|
| 52 |
%build |
| 53 |
%cmake \ |
| 54 |
-DDOCDIR:PATH=%{_docdir}/%{name}-%{version} \ |
| 55 |
-DBUILD_SHARED_LIBS:BOOL=OFF |
| 56 |
|
| 57 |
%cmake_build |
| 58 |
|
| 59 |
|
| 60 |
%install |
| 61 |
%cmake_install |
| 62 |
|
| 63 |
# fr man pages |
| 64 |
install -d -m 755 %{buildroot}/%{_mandir}/fr/man1 |
| 65 |
install -m 644 doc/fr/%{name}.1 %{buildroot}/%{_mandir}/fr/man1 |
| 66 |
|
| 67 |
# appdata file |
| 68 |
mkdir -p %{buildroot}%{_datadir}/metainfo |
| 69 |
cat > %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml <<EOF |
| 70 |
<?xml version="1.0" encoding="UTF-8"?> |
| 71 |
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> --> |
| 72 |
<!-- |
| 73 |
EmailAddress: hatari-devel@lists.tuxfamily.org |
| 74 |
SentUpstream: 2014-09-24 |
| 75 |
--> |
| 76 |
<application> |
| 77 |
<id type="desktop">hatari.desktop</id> |
| 78 |
<metadata_license>CC0-1.0</metadata_license> |
| 79 |
<summary>Atari emulator</summary> |
| 80 |
<description> |
| 81 |
<p> |
| 82 |
Hatari is an emulator that emulates Atari ST, Atari STE, Atari TT and Atari Falcon |
| 83 |
devices. |
| 84 |
It has the ability to emulate the joystick with input from either the host's |
| 85 |
keyboard or joystick. |
| 86 |
</p> |
| 87 |
</description> |
| 88 |
<url type="homepage">http://hatari.tuxfamily.org/</url> |
| 89 |
<screenshots> |
| 90 |
<screenshot type="default">http://hatari.tuxfamily.org/screens/features/deskhigh.png</screenshot> |
| 91 |
</screenshots> |
| 92 |
</application> |
| 93 |
EOF |
| 94 |
|
| 95 |
%find_lang %{name} --with-man |
| 96 |
|
| 97 |
%files -f %{name}.lang |
| 98 |
%doc readme.txt doc/fr/clavier-exemple.txt |
| 99 |
%doc tools/hmsa/readme-hmsa.txt |
| 100 |
%doc %{_docdir}/%{name}-%{version} |
| 101 |
%{_bindir}/* |
| 102 |
%{_datadir}/%{name}/ |
| 103 |
%{_datadir}/applications/%{name}*.desktop |
| 104 |
%{_datadir}/metainfo/%{name}.appdata.xml |
| 105 |
%{_datadir}/mime/packages/%{name}.xml |
| 106 |
%{_iconsdir}/hicolor/*/apps/%{name}.png |
| 107 |
%{_iconsdir}/hicolor/*/mimetypes/*.png |
| 108 |
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg |
| 109 |
%{_iconsdir}/hicolor/scalable/mimetypes/*.svg |
| 110 |
%{_mandir}/man1/*.1* |