]> git.pld-linux.org Git - packages/hatari.git/blob - hatari.spec
- set proper path for python-ui init script (sed)
[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 URL:            http://hatari.sourceforge.net/
13 BuildRequires:  SDL-devel >= 1.2.0
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libpng-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  readline-devel
19 BuildRequires:  sed >= 4.0
20 BuildRequires:  xorg-lib-libX11-devel
21 BuildRequires:  zlib-devel
22 Requires:       python >= 1:2.4
23 Requires:       python-pygtk-gtk >= 2.8
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Hatari is an Atari ST and STE emulator for Linux and other systems
28 that are supported by the SDL library. Hatari supports the emulation
29 of most of the ST and STE hardware.
30
31 %description -l pl.UTF-8
32 Hatari jest emulatorem Atari ST i STE dla Linuksa i innych systemów
33 obsługiwanych przez bibliotekę SDL. Hatari emuluje większość sprzętu
34 Atari ST i STE.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39 %patch1 -p1
40 %{__sed} -i 's#path=$(DATAPATH)#path=%{_datadir}/hatari/hatariui#' python-ui/Makefile
41
42 %build
43 %{__aclocal}
44 %{__autoconf}
45 %configure \
46         --datadir=%{_datadir}/%{name}
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/{,fr}/man1}
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 install doc/hatari.1    $RPM_BUILD_ROOT%{_mandir}/man1/hatari.1
57 install doc/fr/hatari.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc readme.txt doc/*.txt python-ui/{Changelog,README,TODO}
65 %attr(755,root,root) %{_bindir}/*
66 %{_datadir}/%{name}
67 %{_mandir}/man1/hatari.1*
68 %lang(fr) %{_mandir}/fr/man1/hatari.1*
This page took 0.143229 seconds and 4 git commands to generate.