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): 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: 8fcd251a3757270c02519ad7b86b7caa
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: XFree86-devel
22 %{?with_svga:BuildRequires: svgalib-devel}
23 %if %{with license_agreement}
26 BuildRequires: zlib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define specflags -fomit-frame-pointer
32 This is Atari 800, 800XL, 130XE and 5200 emulator.
35 To jest emulator Atari 800, 800XL, 130XE i 5200.
38 Summary: Atari 800 Emulator - common files for svgalib and X11 versions
39 Summary(pl): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
40 Group: Applications/Emulators
42 %if %{without license_agreement}
47 This is Atari 800, 800XL, 130XE and 5200 emulator.
49 This package contains common files for both svgalib and X11 versions
51 %if %{without license_agreement}
52 Note: because of license problems we had to include whole X-Former
53 archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
57 %description common -l pl
58 To jest emulator Atari 800, 800XL, 130XE i 5200.
60 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
62 %if %{without license_agreement}
63 Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê
64 z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -
65 przebuduj pakiet z opcja --with license_agreement.
69 Summary: Atari 800 Emulator - svgalib version
70 Summary(pl): Emulator Atari 800 - wersja pod svgalib
72 Group: Applications/Emulators
73 Requires: %{name}-common = %{version}
76 This is Atari 800, 800XL, 130XE and 5200 emulator.
78 This package contains Atari800 executable file configured for svgalib
79 with sound and joystick support.
81 %description svga -l pl
82 To jest emulator Atari 800, 800XL, 130XE i 5200.
84 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
85 svgalib z obs³ug± d¼wiêku i joysticka.
88 Summary: Atari 800 Emulator - X Window version
89 Summary(pl): Emulator Atari 800 - wersja pod X Window
91 Group: Applications/Emulators
92 Requires: %{name}-common = %{version}
95 This is Atari 800, 800XL, 130XE and 5200 emulator.
97 This package contains Atari800 executable file configured for X11 with
98 sound and joystick support.
100 %description x11 -l pl
101 To jest emulator Atari 800, 800XL, 130XE i 5200.
103 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
104 obs³ug± d¼wiêku i joysticka.
107 Summary: Atari 800 Emulator - SDL version
108 Summary(pl): Emulator Atari 800 - wersja pod SDL
110 Group: Applications/Emulators
111 Requires: %{name}-common = %{version}
114 This is Atari 800, 800XL, 130XE and 5200 emulator.
116 This package contains Atari800 executable file configured for SDL with
117 sound and joystick support.
119 %description SDL -l pl
120 To jest emulator Atari 800, 800XL, 130XE i 5200.
122 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
123 obs³ug± d¼wiêku i joysticka.
126 %setup -q -n atari800-%{version}
130 cp -f /usr/share/automake/config.sub .
133 CFLAGS="%{rpmcflags}"
138 --disable-VERY_SLOW \
139 --enable-NO_CYCLE_EXACT \
140 --enable-CRASH_MENU \
141 --enable-MONITOR_BREAK \
142 --enable-MONITOR_HINTS \
143 --enable-MONITOR_ASSEMBLER \
144 --enable-COMPILED_PALETTE \
145 --enable-SNAILMETER \
146 --disable-SVGA_SPEEDUP \
147 --enable-USE_CURSORBLOCK \
149 --enable-LINUX_JOYSTICK \
151 --enable-NO_VOL_ONLY \
152 --enable-NO_CONSOL_SOUND \
153 --disable-SERIO_SOUND \
154 --enable-NOSNDINTER \
157 --disable-BUFFERED_LOG \
159 --enable-NO_LED_ON_SCREEN
163 mv -f atari800 atari800-svga
170 --disable-VERY_SLOW \
171 --enable-NO_CYCLE_EXACT \
172 --enable-CRASH_MENU \
173 --enable-MONITOR_BREAK \
174 --enable-MONITOR_HINTS \
175 --enable-MONITOR_ASSEMBLER \
176 --enable-COMPILED_PALETTE \
177 --enable-SNAILMETER \
178 --enable-LINUX_JOYSTICK \
180 --enable-NO_VOL_ONLY \
181 --enable-NO_CONSOL_SOUND \
182 --disable-SERIO_SOUND \
183 --enable-NOSNDINTER \
186 --disable-BUFFERED_LOG \
188 --enable-NO_LED_ON_SCREEN
192 mv -f atari800 atari800-SDL
198 --disable-VERY_SLOW \
199 --enable-NO_CYCLE_EXACT \
200 --enable-CRASH_MENU \
201 --enable-MONITOR_BREAK \
202 --enable-MONITOR_HINTS \
203 --enable-MONITOR_ASSEMBLER \
204 --enable-COMPILED_PALETTE \
205 --enable-SNAILMETER \
206 --enable-LINUX_JOYSTICK \
208 --enable-NO_VOL_ONLY \
209 --enable-NO_CONSOL_SOUND \
210 --disable-SERIO_SOUND \
211 --enable-NOSNDINTER \
217 mv -f atari800 atari800-x11
220 rm -rf $RPM_BUILD_ROOT
221 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
224 install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}
226 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
227 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
228 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
229 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
231 %if %{with license_agreement}
232 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
233 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
235 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
239 rm -rf $RPM_BUILD_ROOT
241 %if %{without license_agreement}
243 cd %{_datadir}/atari800
244 if [ "`echo *.rom`" = "*.rom" ]; then
247 rm -f xf25.doc xf25.exe
252 %defattr(644,root,root,755)
253 %doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt} README.1ST
254 %attr(755,root,root) %{_bindir}/atari800
256 %{_mandir}/man1/atari800.1*
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_bindir}/atari800-x11
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/atari800-SDL
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/atari800-svga