]> git.pld-linux.org Git - packages/hatari.git/blob - hatari.spec
- run init script using python
[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.3.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:  1440230be3dd38098f4e0ef36b0a90df
10 Patch0:         %{name}-useless_files.patch
11 Patch1:         %{name}-destdir.patch
12 Patch2:         %{name}-python_init.patch
13 URL:            http://hatari.sourceforge.net/
14 BuildRequires:  SDL-devel >= 1.2.0
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libpng-devel
18 BuildRequires:  pkgconfig
19 BuildRequires:  readline-devel
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 %{__sed} -i 's#path=$(DATAPATH)#path=%{_datadir}/hatari/hatariui#' python-ui/Makefile
43
44 %build
45 %{__aclocal}
46 %{__autoconf}
47 %configure \
48         --datadir=%{_datadir}/%{name}
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/{,fr}/man1}
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 install doc/hatari.1    $RPM_BUILD_ROOT%{_mandir}/man1/hatari.1
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/{Changelog,README,TODO}
67 %attr(755,root,root) %{_bindir}/*
68 %{_datadir}/%{name}
69 %{_mandir}/man1/hatari.1*
70 %lang(fr) %{_mandir}/fr/man1/hatari.1*
This page took 0.071822 seconds and 3 git commands to generate.