3 %bcond_with license_agreement # with unzipped ROM files instead of xf25.zip
4 %bcond_without svga # without SVGA version
6 Summary: Atari 800 Emulator
7 Summary(pl.UTF-8): Emulator Atari 800
11 License: GPL (Atari800), distributable if unmodified (xf25 with ROMs)
12 Group: Applications/Emulators
13 Source0: http://dl.sourceforge.net/atari800/atari800-%{version}.tar.gz
14 # Source0-md5: 4e472f804a22219d5a7d1d381c89d872
15 # NOTE: ROMs probably can be redistributed only in original XF25 archive
16 Source1: http://joy.sophics.cz/www/xf25.zip
17 # Source1-md5: 4dc3b6b4313e9596c4d474785a37b94d
18 Source2: %{name}-chooser
19 URL: http://atari800.atari.org/
20 BuildRequires: SDL-devel
21 BuildRequires: automake
22 %{?with_svga:BuildRequires: svgalib-devel}
23 %if %{with license_agreement}
26 BuildRequires: xorg-lib-libXext-devel
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define specflags -fomit-frame-pointer
33 This is Atari 800, 800XL, 130XE and 5200 emulator.
35 %description -l pl.UTF-8
36 To jest emulator Atari 800, 800XL, 130XE i 5200.
39 Summary: Atari 800 Emulator - common files for svgalib and X11 versions
40 Summary(pl.UTF-8): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
41 Group: Applications/Emulators
43 %if !%{with license_agreement}
48 This is Atari 800, 800XL, 130XE and 5200 emulator.
50 This package contains common files for both svgalib and X11 versions
52 %if !%{with license_agreement}
53 Note: because of license problems we had to include whole X-Former
54 archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
58 %description common -l pl.UTF-8
59 To jest emulator Atari 800, 800XL, 130XE i 5200.
61 Ten pakiet zawiera pliki wspólne dla wersji działających pod svgalib
63 %if !%{with license_agreement}
64 Uwaga: z powodu problemów z licencją musieliśmy załączyć całą paczkę
65 z emulatorem X-Former (xf25.zip). Jeśli jej nie chcesz w pakiecie -
66 przebuduj pakiet z opcja --with license_agreement.
70 Summary: Atari 800 Emulator - svgalib version
71 Summary(pl.UTF-8): Emulator Atari 800 - wersja pod svgalib
73 Group: Applications/Emulators
74 Requires: %{name}-common = %{version}-%{release}
77 This is Atari 800, 800XL, 130XE and 5200 emulator.
79 This package contains Atari800 executable file configured for svgalib
80 with sound and joystick support.
82 %description svga -l pl.UTF-8
83 To jest emulator Atari 800, 800XL, 130XE i 5200.
85 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
86 svgalib z obsługą dźwięku i joysticka.
89 Summary: Atari 800 Emulator - X Window version
90 Summary(pl.UTF-8): Emulator Atari 800 - wersja pod X Window
92 Group: Applications/Emulators
93 Requires: %{name}-common = %{version}-%{release}
96 This is Atari 800, 800XL, 130XE and 5200 emulator.
98 This package contains Atari800 executable file configured for X11 with
99 sound and joystick support.
101 %description x11 -l pl.UTF-8
102 To jest emulator Atari 800, 800XL, 130XE i 5200.
104 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
105 obsługą dźwięku i joysticka.
108 Summary: Atari 800 Emulator - SDL version
109 Summary(pl.UTF-8): Emulator Atari 800 - wersja pod SDL
111 Group: Applications/Emulators
112 Requires: %{name}-common = %{version}-%{release}
115 This is Atari 800, 800XL, 130XE and 5200 emulator.
117 This package contains Atari800 executable file configured for SDL with
118 sound and joystick support.
120 %description SDL -l pl.UTF-8
121 To jest emulator Atari 800, 800XL, 130XE i 5200.
123 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
124 obsługą dźwięku i joysticka.
127 %setup -q -n atari800-%{version}
132 cp -f /usr/share/automake/config.sub .
134 CFLAGS="%{rpmcflags}"
140 --enable-cursorblock \
141 --disable-stereosound
145 mv -f atari800 atari800-svga
153 --disable-stereosound
157 mv -f atari800 atari800-SDL
164 --disable-stereosound
168 mv -f atari800 atari800-x11
171 rm -rf $RPM_BUILD_ROOT
172 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
175 install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}
177 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
178 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
179 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
180 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
182 %if %{with license_agreement}
183 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
184 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
186 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
190 rm -rf $RPM_BUILD_ROOT
192 %if !%{with license_agreement}
194 cd %{_datadir}/atari800
195 if [ "`echo *.rom`" = "*.rom" ]; then
198 rm -f xf25.doc xf25.exe
203 %defattr(644,root,root,755)
204 %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.1ST
205 %attr(755,root,root) %{_bindir}/atari800
207 %{_mandir}/man1/atari800.1*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/atari800-x11
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/atari800-SDL
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_bindir}/atari800-svga