]>
Commit | Line | Data |
---|---|---|
040d2dad | 1 | Summary: hatari - an Atari ST and STE emulator for Linux |
5f9653a4 | 2 | Summary(pl.UTF-8): hatari - emulator Atari ST i STE dla Linuksa |
67043e95 | 3 | Name: hatari |
8a2be9ec | 4 | Version: 1.9.0 |
67043e95 | 5 | Release: 1 |
04862692 | 6 | License: GPL v2+ |
67043e95 | 7 | Group: Applications/Emulators |
8a2be9ec ŁM |
8 | Source0: http://download.tuxfamily.org/hatari/%{version}/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 24e54b19958943dbe5ac1b1f6f32b284 | |
2d067944 | 10 | Patch0: %{name}-useless_files.patch |
67043e95 | 11 | URL: http://hatari.sourceforge.net/ |
82460f04 | 12 | BuildRequires: SDL-devel >= 1.2.0 |
37c83202 | 13 | BuildRequires: cmake >= 2.6 |
82460f04 | 14 | BuildRequires: libpng-devel |
7b523ffb | 15 | BuildRequires: pkgconfig |
b4f366c0 JB |
16 | BuildRequires: portaudio-devel |
17 | BuildRequires: python >= 2 | |
82460f04 | 18 | BuildRequires: readline-devel |
b4f366c0 | 19 | BuildRequires: rpm-pythonprov |
37c83202 | 20 | BuildRequires: rpmbuild(macros) >= 1.577 |
76c7c8df | 21 | BuildRequires: sed >= 4.0 |
85dd4c21 | 22 | BuildRequires: xorg-lib-libX11-devel |
67043e95 | 23 | BuildRequires: zlib-devel |
2b3503c5 | 24 | Requires: python >= 1:2.4 |
b4f366c0 | 25 | Requires: python-pygtk-gtk >= 2:2.8 |
67043e95 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Hatari is an Atari ST and STE emulator for Linux and other systems | |
30 | that are supported by the SDL library. Hatari supports the emulation | |
31 | of most of the ST and STE hardware. | |
32 | ||
af760cbd JR |
33 | %description -l pl.UTF-8 |
34 | Hatari jest emulatorem Atari ST i STE dla Linuksa i innych systemów | |
f5ca83c1 | 35 | obsługiwanych przez bibliotekę SDL. Hatari emuluje większość sprzętu |
36 | Atari ST i STE. | |
67043e95 | 37 | |
38 | %prep | |
39 | %setup -q | |
2d067944 | 40 | %patch0 -p1 |
67043e95 | 41 | |
b4f366c0 JB |
42 | sed -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' python-ui/*.py tools/hconsole/*.py |
43 | ||
67043e95 | 44 | %build |
f5ca83c1 | 45 | install -d build |
46 | cd build | |
47 | %cmake .. \ | |
37c83202 JB |
48 | -DBUILD_SHARED_LIBS:BOOL=OFF \ |
49 | -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" | |
f5ca83c1 | 50 | |
67043e95 | 51 | %{__make} |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
b4f366c0 | 55 | install -d $RPM_BUILD_ROOT%{_mandir}/fr/man1 |
67043e95 | 56 | |
f5ca83c1 | 57 | %{__make} -C build install \ |
67043e95 | 58 | DESTDIR=$RPM_BUILD_ROOT |
59 | ||
1a6fc867 | 60 | install doc/fr/hatari.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1 |
4de9c580 | 61 | |
b4f366c0 JB |
62 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}/hatariui |
63 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}/hatariui | |
64 | %py_postclean %{_datadir}/%{name}/hatariui | |
65 | ||
66 | for f in README TODO ; do | |
67 | mv python-ui/${f} python-ui/${f}-ui | |
68 | done | |
69 | mv tools/hconsole/{release-notes.txt,release-notes-hconsole.txt} | |
70 | mv python-ui/{release-notes.txt,release-notes-ui.txt} | |
71 | ||
67043e95 | 72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
b4f366c0 JB |
77 | %doc readme.txt doc/{authors,changelog,emutos,keymap-sample,memory-usage,midi-linux,release-notes,todo}.txt doc/{compatibility,manual}.html tools/hconsole/release-notes-hconsole.txt python-ui/{README-ui,TODO-ui,release-notes-ui.txt} |
78 | %attr(755,root,root) %{_bindir}/atari-hd-image | |
37c83202 | 79 | %attr(755,root,root) %{_bindir}/hatari |
37c83202 JB |
80 | %attr(755,root,root) %{_bindir}/hatariui |
81 | %attr(755,root,root) %{_bindir}/hmsa | |
b4f366c0 | 82 | %attr(755,root,root) %{_bindir}/zip2st |
8a2be9ec ŁM |
83 | %attr(755,root,root) %{_bindir}/atari-convert-dir |
84 | %attr(755,root,root) %{_bindir}/gst2ascii | |
85 | %attr(755,root,root) %{_bindir}/hatari_profile.py | |
67043e95 | 86 | %{_datadir}/%{name} |
b4f366c0 | 87 | %{_mandir}/man1/atari-hd-image.1* |
37c83202 | 88 | %{_mandir}/man1/hatariui.1* |
b4f366c0 JB |
89 | %{_mandir}/man1/hconsole.1* |
90 | %{_mandir}/man1/hmsa.1* | |
91 | %{_mandir}/man1/zip2st.1* | |
8a2be9ec ŁM |
92 | %{_mandir}/man1/atari-convert-dir.1* |
93 | %{_mandir}/man1/gst2ascii.1* | |
94 | %{_mandir}/man1/hatari_profile.1* | |
a28ce0e4 | 95 | %lang(fr) %{_mandir}/fr/man1/hatari.1* |
be735d2b | 96 | %{_desktopdir}/hatariui.desktop |
8a2be9ec ŁM |
97 | %{_desktopdir}/hatari.desktop |
98 | %{_iconsdir}/hicolor/*/*/*.* | |
99 |