3 %bcond_without svga # without svgalib support
5 %define tosarchname tos206us.zip
6 %define tosfilename Tos206.img
8 Summary: Atari ST on Unix/X
9 Summary(pl): Atari ST pod Uniksem/X
13 License: GPL (except TOS image)
14 Group: Applications/Emulators
15 Source0: http://www.complang.tuwien.ac.at/nino/stonx/%{name}-%{version}.tar.gz
16 # Source0-md5: 54ce49f5a64f0e7779000245a9b903a6
17 # to use TOS image legally, one probably must own real Atari ST...
18 Source1: %{tosarchname}
20 Patch0: %{name}-nox.patch
21 Patch1: %{name}-svga.patch
22 Patch2: %{name}-link.patch
23 Patch3: %{name}-segv.patch
24 URL: http://www.complang.tuwien.ac.at/nino/stonx.html
25 BuildRequires: autoconf >= 2.59-9
26 BuildRequires: rpmbuild(macros) >= 1.268
27 %{?with_svga:BuildRequires: svgalib-devel}
29 BuildRequires: xorg-lib-libXext-devel
30 Requires(post,postun): fontpostinst
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 STonX is a software emulator, which runs on Unix workstations with the
35 X Window system%{?with_svga: or svgalib}, and emulates an Atari ST
39 STonX jest programowym emulatorem komputera Atari ST, dzia³aj±cym na
40 Uniksach z X Window System%{?with_svga: lub svgalib}.
49 mv -f %{tosfilename} tos.img
57 REGS="%{!?debug:-fomit-frame-pointer}" \
58 %{?with_svga:USE_SVGALIB=1}
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_libdir}/STonX,%{_bindir},%{_fontsdir}/misc}
64 install stonx tos.img cartridge.img Keysyms $RPM_BUILD_ROOT%{_libdir}/STonX
67 install data/*.pcf.gz $RPM_BUILD_ROOT%{_fontsdir}/misc
69 cat > $RPM_BUILD_ROOT%{_bindir}/stonx <<'EOF'
73 %{?with_svga:if [ -z "$DISPLAY" ]; then exec ./stonx -svga ; fi}
78 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc docs/{PROGRAMS,README,RELEASE_NOTES,TOS-VERSIONS}
89 %attr(755,root,root) %{_bindir}/*
91 %attr(755,root,root) %{_libdir}/STonX/stonx
92 %{_libdir}/STonX/*.img
93 %{_libdir}/STonX/Keysyms
94 %{_fontsdir}/misc/*.pcf.gz