1f37baf
Summary: An Atari ST/STE/TT/Falcon emulator suitable for playing games
9dd7ec7
Name: hatari
aae9b89
Version: 2.3.1
3de474e
Release: 2%{?dist}
40ed006
License: GPLv2+
95b69bb
URL: http://hatari.tuxfamily.org/
95b69bb
Source0: http://download.tuxfamily.org/%{name}/%{version}/%{name}-%{version}.tar.bz2
e482535
Source1: %{name}.appdata.xml
030034e
85fd37c
BuildRequires: gcc
71540fa
BuildRequires: cmake
e2c06d3
BuildRequires: SDL2-devel
7db16e8
BuildRequires: zlib-devel
71540fa
BuildRequires: libpng-devel
71540fa
BuildRequires: readline-devel
71540fa
BuildRequires: portaudio-devel
e2c06d3
BuildRequires: systemd-devel
8c8aa58
BuildRequires: python3-devel
e482535
BuildRequires: libappstream-glib
7db16e8
BuildRequires: desktop-file-utils
9dd7ec7
Requires: hicolor-icon-theme
71540fa
# Required by zip2st and atari-hd-image
71540fa
Requires: unzip
71540fa
Requires: mtools
71540fa
Requires: dosfstools
71540fa
71540fa
71540fa
%package ui
71540fa
Summary: External user interface for Hatari
71540fa
Requires: %{name} = %{version}-%{release}
8c8aa58
Requires: python3
8c8aa58
Requires: python3-gobject
8c8aa58
Requires: gtk3
71540fa
Requires: hicolor-icon-theme
9dd7ec7
7db16e8
9dd7ec7
%description
1216537
Hatari is an emulator for the Atari ST, STE, TT and Falcon computers.
9dd7ec7
1216537
The Atari ST was a 16/32 bit computer system which was first released 
1216537
by Atari in 1985. Using the Motorola 68000 CPU, it was a very popular 
1216537
computer having quite a lot of CPU power at that time.
1216537
e2c06d3
Unlike most other open source ST emulators which try to give you a good
e2c06d3
environment for running GEM applications, Hatari tries to emulate the hardware
e2c06d3
as close as possible so that it is able to run most of the old Atari games
e2c06d3
and demos.  Because of this, it may be somewhat slower than less accurate
e2c06d3
emulators.
9dd7ec7
7db16e8
71540fa
%description ui
71540fa
Hatari UI is an out-of-process user interface for the Hatari emulator and its 
71540fa
built-in debugger which can (optionally) embed the Hatari emulator window. 
7db16e8
7db16e8
71540fa
%prep
71540fa
%setup -q
44e342c
e2c06d3
# Fix interpreter
9ca3d60
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
e2c06d3
do
aae9b89
  sed -i '1s|/usr/bin/env python3|%{__python3}|' $pyfile
e2c06d3
done
e2c06d3
1bb19e4
9dd7ec7
%build
71540fa
%cmake \
71540fa
  -DCMAKE_BUILD_TYPE:STRING=None \
795d78d
  -DDOCDIR:PATH=%{_pkgdocdir} \
bebf0f0
  -DBUILD_SHARED_LIBS:BOOL=OFF
bebf0f0
%cmake_build
9dd7ec7
20734f1
9dd7ec7
%install
bebf0f0
%cmake_install
1216537
4bdbf5a
# Install French man page
1216537
install -d -m 755 %{buildroot}%{_mandir}/fr/man1
b4642ed
install -p -m 644 doc/fr/hatari.1 %{buildroot}%{_mandir}/fr/man1
9dd7ec7
e482535
# Install AppData file
e482535
install -d -m 755 %{buildroot}%{_datadir}/metainfo
e482535
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo
1bb19e4
1bb19e4
1bb19e4
%check
bebf0f0
%ctest
1bb19e4
aae9b89
# Validate desktop files
1bb19e4
desktop-file-validate \
1bb19e4
  %{buildroot}%{_datadir}/applications/%{name}.desktop
aae9b89
desktop-file-validate \
aae9b89
  %{buildroot}%{_datadir}/applications/hatariui.desktop
1bb19e4
1bb19e4
# Validate AppData file
e482535
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
e482535
7db16e8
9dd7ec7
%files
b6c9b2a
%{_bindir}/*
71540fa
%{_datadir}/%{name}
b6c9b2a
%{_mandir}/man1/*
b6c9b2a
%{_mandir}/fr/man1/*
b6c9b2a
%{_datadir}/applications/%{name}.desktop
e482535
%{_datadir}/metainfo/%{name}.appdata.xml
9452be5
%{_datadir}/icons/hicolor/*/apps/%{name}.*
e2c06d3
%{_datadir}/icons/hicolor/*/mimetypes/*
9452be5
%{_datadir}/mime/packages/hatari.xml
795d78d
%doc %{_pkgdocdir}
a054337
%license gpl.txt
b6c9b2a
%exclude %{_bindir}/hatariui
71540fa
%exclude %{_datadir}/%{name}/hatariui
f980a91
%exclude %{_datadir}/%{name}/hconsole
b6c9b2a
%exclude %{_mandir}/man1/hatariui.1*
b6c9b2a
%exclude %{_mandir}/man1/hconsole.1*
71540fa
71540fa
%files ui
71540fa
%{_bindir}/hatariui
71540fa
%{_datadir}/%{name}/hatariui
f980a91
%{_datadir}/%{name}/hconsole
71540fa
%{_mandir}/man1/hatariui.1*
f980a91
%{_mandir}/man1/hconsole.1*
71540fa
%{_datadir}/applications/hatariui.desktop
71540fa
%doc python-ui/{README,release-notes.txt,TODO}
71540fa
%exclude %{_datadir}/%{name}/hatariui/README
71540fa
%exclude %{_datadir}/%{name}/hatariui/release-notes.txt
71540fa
%exclude %{_datadir}/%{name}/hatariui/TODO
f980a91
%exclude %{_datadir}/%{name}/hconsole/release-notes.txt
9dd7ec7
7db16e8
9dd7ec7
%changelog
3de474e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
3de474e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3de474e
aae9b89
* Sun Dec 27 17:05:46 CET 2020 Andrea Musuruane <musuruan@gmail.com> - 2.3.1-1
aae9b89
- Updated to new upstream release
aae9b89
bebf0f0
* Thu Aug 06 2020 Andrea Musuruane <musuruan@gmail.com> - 2.2.1-10
bebf0f0
- Fixed FTBFS for F33 (BZ #1863844)
bebf0f0
ef7d7bf
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-9
ef7d7bf
- Second attempt - Rebuilt for
ef7d7bf
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ef7d7bf
f5d2f0d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-8
f5d2f0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f5d2f0d
cad9f93
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
cad9f93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cad9f93
419cdf8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-6
419cdf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
419cdf8
1bb19e4
* Sat Mar 02 2019 Andrea Musuruane <musuruan@gmail.com> - 2.2.1-5
1bb19e4
- Enabled parallel build
1bb19e4
- Enabled regression test suite
1bb19e4
54a6411
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.1-4
54a6411
- Rebuild for readline 8.0
54a6411
8c8aa58
* Sat Feb 16 2019 Andrea Musuruane <musuruan@gmail.com> - 2.2.1-3
8c8aa58
- Fixed Requires for gtk3 python UI
8c8aa58
50bb909
* Sat Feb 16 2019 Andrea Musuruane <musuruan@gmail.com> - 2.2.1-2
50bb909
- pygtk2 still only support python2
50bb909
9ca3d60
* Sat Feb 16 2019 Andrea Musuruane <musuruan@gmail.com> - 2.2.1-1
9ca3d60
- Updated to upstream 2.2.1
9ca3d60
d775dfc
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
d775dfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d775dfc
6f30ab4
* Sat Jul 14 2018 Andrea Musuruane <musuruan@gmail.com> - 2.1.0-3
6f30ab4
- Fix FTBFS for F29
6f30ab4
4dd71a9
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
4dd71a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4dd71a9
e482535
* Thu Mar 08 2018 Andrea Musuruane <musuruan@gmail.com> - 2.1.0-1
e482535
- Updated to upstream 2.1.0
e482535
- Used new AppData directory
e482535
85fd37c
* Wed Feb 21 2018 Andrea Musuruane <musuruan@gmail.com> - 2.0.0-12
85fd37c
- Added gcc dependency
85fd37c
- Spec file clean up
85fd37c
af83a4e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-11
af83a4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
af83a4e
4ba7064
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-10
4ba7064
- Remove obsolete scriptlets
4ba7064
eb38a0d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-9
eb38a0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
eb38a0d
4fe7297
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
4fe7297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4fe7297
bb44e00
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
bb44e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb44e00
d6046bb
* Sun Jan 15 2017 Andrea Musuruane <musuruan@gmail.com> - 2.0.0-6
d6046bb
- Added a patch to fix X11 window embedding with SDL2
d6046bb
Igor Gnatenko 4a1db0a
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.0.0-5
Igor Gnatenko 4a1db0a
- Rebuild for readline 7.x
Igor Gnatenko 4a1db0a
b045cec
* Sat Dec 31 2016 Andrea Musuruane <musuruan@gmail.com> - 2.0.0-4
b045cec
- Added a patch to support both hatari config file locations in hatariui
b045cec
- Added a patch to support hatari v2.0 option changes in hatariui
b045cec
430b149
* Tue Dec 20 2016 Dan HorĂ¡k <dan[at]danny.cz> - 2.0.0-3
430b149
- Added a patch to compile under s390(x)
430b149
030034e
* Sat Dec 17 2016 Andrea Musuruane <musuruan@gmail.com> - 2.0.0-2
030034e
- Added a patch to compile under aarch64
030034e
e2c06d3
* Sun Nov 27 2016 Andrea Musuruane <musuruan@gmail.com> - 2.0.0-1
e2c06d3
- Updated to upstream 2.0.0
e2c06d3
- Updated description
e2c06d3
a8cea35
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
a8cea35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a8cea35
a054337
* Sun Oct 18 2015 Andrea Musuruane <musuruan@gmail.com> 1.9.0-2
a054337
- Correctly marked license file
a054337
9452be5
* Sat Oct 17 2015 Andrea Musuruane <musuruan@gmail.com> 1.9.0-1
9452be5
- Updated to upstream 1.9.0
9452be5
- Spec file cleanup
9452be5
78a2804
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
78a2804
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
78a2804
Richard Hughes 2f1f07d
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.8.0-2
Richard Hughes 2f1f07d
- Add an AppData file for the software center
Richard Hughes 2f1f07d
1f37baf
* Wed Sep 24 2014 Andrea Musuruane <musuruan@gmail.com> 1.8.0-1
1f37baf
- Updated to upstream 1.8.0
1f37baf
- Dropped cleaning at the beginning of %%install
1f37baf
- Spec file cleanup
1f37baf
820ec37
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-5
820ec37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
820ec37
e6e41fc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-4
e6e41fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e6e41fc
795d78d
* Fri Sep 13 2013 Andrea Musuruane <musuruan@gmail.com> 1.7.0-3
795d78d
- Used unversioned docdir (BZ #993813)
795d78d
79684bd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
79684bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
79684bd
b6c9b2a
* Thu Jun 27 2013 Andrea Musuruane <musuruan@gmail.com> 1.7.0-1
b6c9b2a
- Updated to upstream 1.7.0
b6c9b2a
- Fixed vendor tag logic in a prettier way
b6c9b2a
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
b6c9b2a
71a8e8c
* Wed Apr 24 2013 Jon Ciesla <limburgher@gmail.com> - 1.6.2-4
71a8e8c
- Drop desktop vendor tag.
71a8e8c
5f18c4b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-3
5f18c4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f18c4b
ec2d9e6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
ec2d9e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ec2d9e6
b5553f6
* Thu Jul 05 2012 Andrea Musuruane <musuruan@gmail.com> 1.6.2-1
b5553f6
- updated to upstream 1.6.2
b5553f6
42e8009
* Sat Jan 14 2012 Andrea Musuruane <musuruan@gmail.com> 1.6.1-1
42e8009
- updated to upstream 1.6.1
42e8009
95b69bb
* Fri Jan 06 2012 Andrea Musuruane <musuruan@gmail.com> 1.6.0-1
95b69bb
- updated upstream URL
95b69bb
- updated upstream Source0
95b69bb
2510f7c
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.5.0-2
2510f7c
- Rebuild for new libpng
2510f7c
f980a91
* Sun Sep 25 2011 Andrea Musuruane <musuruan@gmail.com> 1.5.0-1
f980a91
- updated to upstream 1.5.0
f980a91
- added patches to include hatari window at hatariui startup (SF #18340)
f980a91
- dropped Debian man pages now that hatari has its own
f980a91
5521393
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
5521393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5521393
71540fa
* Sun Nov 14 2010 Andrea Musuruane <musuruan@gmail.com> 1.4.0-4
71540fa
- added license among docs
71540fa
71540fa
* Sun Nov 14 2010 Andrea Musuruane <musuruan@gmail.com> 1.4.0-3
71540fa
- ui subpackage now requires the fully versioned base package
71540fa
- more consistent macro usage
71540fa
71540fa
* Fri Nov 12 2010 Andrea Musuruane <musuruan@gmail.com> 1.4.0-2
71540fa
- fixed Requires
71540fa
- added manpages from Debian
71540fa
- removed script extensions (.sh, .py) from scripts installed into /usr/bin
71540fa
- macro usage is more consistent now
71540fa
71540fa
* Sun Jul 18 2010 Andrea Musuruane <musuruan@gmail.com> 1.4.0-1
71540fa
- updated to upstream 1.4.0
71540fa
- dropped README.tos now that emutos.txt is supplied
71540fa
44e342c
* Sat Mar 06 2010 Andrea Musuruane <musuruan@gmail.com> 1.3.1-2
44e342c
- link against libm (BZ #564801)
44e342c
1e69c0b
* Sat Sep 12 2009 Andrea Musuruane <musuruan@gmail.com> 1.3.1-1
1e69c0b
- updated to upstream 1.3.1
1e69c0b
b4642ed
* Sat Aug 22 2009 Andrea Musuruane <musuruan@gmail.com> 1.3.0-1
b4642ed
- updated to upstream 1.3.0
b4642ed
- disabled new upstream python UI
b4642ed
- updated icon cache snippets
b4642ed
- used upstream Mac OS X icons
b4642ed
- preserved french man page timestamp
b4642ed
f572a5f
* Mon Aug 10 2009 Andrea Musuruane <musuruan@gmail.com> 1.2.0-4
f572a5f
- updated Source0 URL
f572a5f
0f0ab83
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
0f0ab83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0f0ab83
f2c8f75
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
f2c8f75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f2c8f75
50dd495
* Sat Jan 24 2009 Andrea Musuruane <musuruan@gmail.com> 1.2.0-1
50dd495
- updated to upstream 1.2.0
50dd495
- dropped no longer needed hmsa tool patch
50dd495
- updated upstream URL
50dd495
- updated Source0 URL
50dd495
20734f1
* Sat Nov 29 2008 Andrea Musuruane <musuruan@gmail.com> 1.1.0-1
20734f1
- updated to upstream 1.1.0
20734f1
b9a6baa
* Sat Apr 05 2008 Andrea Musuruane <musuruan@gmail.com> 1.0.1-1
b9a6baa
- updated to upstream 1.0.1
b9a6baa
4bdbf5a
* Mon Mar 17 2008 Andrea Musuruane <musuruan@gmail.com> 1.0.0-1
4bdbf5a
- updated to upstream 1.0.0
4bdbf5a
- removed icon extension from desktop file to match Icon Theme Specification
4bdbf5a
4aa1645
* Sun Feb 10 2008 Andrea Musuruane <musuruan@gmail.com> 0.95-5
4bdbf5a
- Rebuilt against gcc 4.3
4aa1645
7626dcc
* Sat Oct 06 2007 Andrea Musuruane <musuruan@gmail.com> 0.95-4
7626dcc
- Fixed doc/authors.txt file encoding
7626dcc
- Updated icon cache scriptlets to be compliant to new guidelines
7626dcc
98cf85e
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.95-3
98cf85e
- Rebuild for selinux ppc32 issue.
98cf85e
40ed006
* Mon Aug 20 2007 Andrea Musuruane <musuruan@gmail.com> 0.95-2
40ed006
- changed license due to new guidelines 
40ed006
- removed %%{?dist} tag from changelog
40ed006
40ed006
* Sat Jun 23 2007 Andrea Musuruane <musuruan@gmail.com> 0.95-1
1216537
- updated to upstream 0.95
1216537
- updated description
1216537
- README.tos and hatari.desktop are no longer built in the spec file
1216537
- added new upstream hmsa tool
1216537
- added new upstream french man page
1216537
- updated icon cache scriptlets to be compliant to new guidelines
1216537
- cosmetic changes
1216537
40ed006
* Sat Mar 17 2007 Andrea Musuruane <musuruan@gmail.com> 0.90-6
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
40ed006
* Mon Oct 23 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-5
9dd7ec7
- added a patch not to strip binaries during make install
9dd7ec7
- added hicolor-icon-theme to Requires
9dd7ec7
40ed006
* Sat Oct 21 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-4
9dd7ec7
- added README.tos to explain that Hatari is shipped with EmuTOS
9dd7ec7
40ed006
* Fri Oct 20 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-3
9dd7ec7
- new release for FE migration
9dd7ec7
40ed006
* Sun Oct 08 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-2
9dd7ec7
- replaced %%_mandir with %%{_mandir}
9dd7ec7
- full URL is now specified in the Source tag
9dd7ec7
- added .desktop file and icons
9dd7ec7
40ed006
* Sat Sep 30 2006 Andrea Musuruane <musuruan@gmail.com> 0.90-1
9dd7ec7
- initial package
9dd7ec7
9dd7ec7