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