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