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