3 %bcond_with license_agreement # with unzipped ROM files instead of xf25.zip
4 %bcond_without svga # without SVGA version
6 %ifnarch %{ix86} alpha ppc
9 Summary: Atari 800 Emulator
10 Summary(pl): Emulator Atari 800
14 License: GPL (Atari800), distributable if unmodified (xf25 with ROMs)
15 Group: Applications/Emulators
16 Source0: http://dl.sourceforge.net/atari800/atari800-%{version}.tar.gz
17 # Source0-md5: 02c824a4648732a3646d377ee02efd7d
18 # NOTE: ROMs probably can be redistributed only in original XF25 archive
19 Source1: http://joy.sophics.cz/www/xf25.zip
20 # Source1-md5: 4dc3b6b4313e9596c4d474785a37b94d
21 Source2: %{name}-chooser
22 URL: http://atari800.atari.org/
23 BuildRequires: SDL-devel
24 BuildRequires: XFree86-devel
27 BuildRequires: svgalib4ggi-devel
29 BuildRequires: svgalib-devel
32 %if %{with license_agreement}
35 BuildRequires: zlib-devel
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define specflags -fomit-frame-pointer
41 This is Atari 800, 800XL, 130XE and 5200 emulator.
44 To jest emulator Atari 800, 800XL, 130XE i 5200.
47 Summary: Atari 800 Emulator - common files for svgalib and X11 versions
48 Summary(pl): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
49 Group: Applications/Emulators
51 %if %{without license_agreement}
56 This is Atari 800, 800XL, 130XE and 5200 emulator.
58 This package contains common files for both svgalib and X11 versions
60 %if %{without license_agreement}
61 Note: because of license problems we had to include whole X-Former
62 archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
66 %description common -l pl
67 To jest emulator Atari 800, 800XL, 130XE i 5200.
69 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
71 %if %{without license_agreement}
72 Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê
73 z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -
74 przebuduj pakiet z opcja --with license_agreement.
78 Summary: Atari 800 Emulator - svgalib version
79 Summary(pl): Emulator Atari 800 - wersja pod svgalib
81 Group: Applications/Emulators
82 Requires: %{name}-common = %{version}
85 This is Atari 800, 800XL, 130XE and 5200 emulator.
87 This package contains Atari800 executable file configured for svgalib
88 with sound and joystick support.
90 %description svga -l pl
91 To jest emulator Atari 800, 800XL, 130XE i 5200.
93 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
94 svgalib z obs³ug± d¼wiêku i joysticka.
97 Summary: Atari 800 Emulator - X Window version
98 Summary(pl): Emulator Atari 800 - wersja pod X Window
100 Group: Applications/Emulators
101 Requires: %{name}-common = %{version}
104 This is Atari 800, 800XL, 130XE and 5200 emulator.
106 This package contains Atari800 executable file configured for X11 with
107 sound and joystick support.
109 %description x11 -l pl
110 To jest emulator Atari 800, 800XL, 130XE i 5200.
112 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
113 obs³ug± d¼wiêku i joysticka.
116 Summary: Atari 800 Emulator - SDL version
117 Summary(pl): Emulator Atari 800 - wersja pod SDL
119 Group: Applications/Emulators
120 Requires: %{name}-common = %{version}
123 This is Atari 800, 800XL, 130XE and 5200 emulator.
125 This package contains Atari800 executable file configured for SDL with
126 sound and joystick support.
128 %description SDL -l pl
129 To jest emulator Atari 800, 800XL, 130XE i 5200.
131 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
132 obs³ug± d¼wiêku i joysticka.
135 %setup -q -n atari800-%{version}
140 CFLAGS="%{rpmcflags}"
145 --disable-VERY_SLOW \
146 --enable-NO_CYCLE_EXACT \
147 --enable-CRASH_MENU \
148 --enable-MONITOR_BREAK \
149 --enable-MONITOR_HINTS \
150 --enable-MONITOR_ASSEMBLER \
151 --enable-COMPILED_PALETTE \
152 --enable-SNAILMETER \
153 --disable-SVGA_SPEEDUP \
154 --enable-USE_CURSORBLOCK \
156 --enable-LINUX_JOYSTICK \
158 --enable-NO_VOL_ONLY \
159 --enable-NO_CONSOL_SOUND \
160 --disable-SERIO_SOUND \
161 --enable-NOSNDINTER \
164 --disable-BUFFERED_LOG \
166 --enable-NO_LED_ON_SCREEN
170 mv -f atari800 atari800-svga
177 --disable-VERY_SLOW \
178 --enable-NO_CYCLE_EXACT \
179 --enable-CRASH_MENU \
180 --enable-MONITOR_BREAK \
181 --enable-MONITOR_HINTS \
182 --enable-MONITOR_ASSEMBLER \
183 --enable-COMPILED_PALETTE \
184 --enable-SNAILMETER \
185 --enable-LINUX_JOYSTICK \
187 --enable-NO_VOL_ONLY \
188 --enable-NO_CONSOL_SOUND \
189 --disable-SERIO_SOUND \
190 --enable-NOSNDINTER \
193 --disable-BUFFERED_LOG \
195 --enable-NO_LED_ON_SCREEN
199 mv -f atari800 atari800-SDL
205 --disable-VERY_SLOW \
206 --enable-NO_CYCLE_EXACT \
207 --enable-CRASH_MENU \
208 --enable-MONITOR_BREAK \
209 --enable-MONITOR_HINTS \
210 --enable-MONITOR_ASSEMBLER \
211 --enable-COMPILED_PALETTE \
212 --enable-SNAILMETER \
213 --enable-LINUX_JOYSTICK \
215 --enable-NO_VOL_ONLY \
216 --enable-NO_CONSOL_SOUND \
217 --disable-SERIO_SOUND \
218 --enable-NOSNDINTER \
224 mv -f atari800 atari800-x11
227 rm -rf $RPM_BUILD_ROOT
228 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
231 install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}
233 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
234 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
235 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
236 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
238 %if %{with license_agreement}
239 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
240 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
242 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
246 rm -rf $RPM_BUILD_ROOT
248 %if %{without license_agreement}
250 cd %{_datadir}/atari800
255 %defattr(644,root,root,755)
256 %doc DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST
257 %doc DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
258 %attr(755,root,root) %{_bindir}/atari800
260 %{_mandir}/man1/atari800.1*
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/atari800-x11
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/atari800-SDL
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/atari800-svga