]> git.pld-linux.org Git - packages/hatari.git/blob - hatari.spec
c4177888b457c9940c80c2b367f648bfeaf3b30b
[packages/hatari.git] / hatari.spec
1 Summary:        hatari - an Atari ST and STE emulator for Linux
2 Summary(pl.UTF-8):      hatari - emulator Atari ST i STE dla Linuksa
3 Name:           hatari
4 Version:        1.4.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Emulators
8 Source0:        http://download.berlios.de/hatari/%{name}-%{version}.tar.bz2
9 # Source0-md5:  2f30e5c9e146ee92e3f2f5ae1cef3673
10 Patch0:         %{name}-useless_files.patch
11 Patch1:         %{name}-python_init.patch
12 Patch2:         %{name}-desktop.patch
13 URL:            http://hatari.sourceforge.net/
14 BuildRequires:  SDL-devel >= 1.2.0
15 BuildRequires:  cmake >= 2.6
16 BuildRequires:  libpng-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  readline-devel
19 BuildRequires:  rpmbuild(macros) >= 1.577
20 BuildRequires:  sed >= 4.0
21 BuildRequires:  xorg-lib-libX11-devel
22 BuildRequires:  zlib-devel
23 Requires:       python >= 1:2.4
24 Requires:       python-pygtk-gtk >= 2.8
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Hatari is an Atari ST and STE emulator for Linux and other systems
29 that are supported by the SDL library. Hatari supports the emulation
30 of most of the ST and STE hardware.
31
32 %description -l pl.UTF-8
33 Hatari jest emulatorem Atari ST i STE dla Linuksa i innych systemów
34 obsługiwanych przez bibliotekę SDL. Hatari emuluje większość sprzętu
35 Atari ST i STE.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40 %patch1 -p1
41 %patch2 -p1
42
43 %build
44 install -d build
45 cd build
46 %cmake .. \
47         -DBUILD_SHARED_LIBS:BOOL=OFF \
48         -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG"
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/{,fr}/man1}
55
56 %{__make} -C build install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 install doc/fr/hatari.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc readme.txt doc/*.txt python-ui/{README,TODO}
67 %attr(755,root,root) %{_bindir}/atari-hd-image.sh
68 %attr(755,root,root) %{_bindir}/hatari
69 %attr(755,root,root) %{_bindir}/hatari-console.py
70 %attr(755,root,root) %{_bindir}/hatariui
71 %attr(755,root,root) %{_bindir}/hmsa
72 %attr(755,root,root) %{_bindir}/zip2st.sh
73 %{_datadir}/%{name}
74 %{_mandir}/man1/hatariui.1*
75 %lang(fr) %{_mandir}/fr/man1/hatari.1*
76 %{_desktopdir}/hatariui.desktop
77 %{_iconsdir}/hicolor/32x32/apps/hatari-icon.png
This page took 0.048057 seconds and 2 git commands to generate.