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
26 BuildRequires: svgalib-devel
28 %if %{with license_agreement}
31 BuildRequires: zlib-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define specflags -fomit-frame-pointer
37 This is Atari 800, 800XL, 130XE and 5200 emulator.
40 To jest emulator Atari 800, 800XL, 130XE i 5200.
43 Summary: Atari 800 Emulator - common files for svgalib and X11 versions
44 Summary(pl): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
45 Group: Applications/Emulators
47 %if %{without license_agreement}
52 This is Atari 800, 800XL, 130XE and 5200 emulator.
54 This package contains common files for both svgalib and X11 versions
56 %if %{without license_agreement}
57 Note: because of license problems we had to include whole X-Former
58 archive (xf25.zip). If you don't want it - rebuild Atari800 (--with
62 %description common -l pl
63 To jest emulator Atari 800, 800XL, 130XE i 5200.
65 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
67 %if %{without license_agreement}
68 Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê
69 z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -
70 przebuduj pakiet z opcja --with license_agreement.
74 Summary: Atari 800 Emulator - svgalib version
75 Summary(pl): Emulator Atari 800 - wersja pod svgalib
77 Group: Applications/Emulators
78 Requires: %{name}-common = %{version}
81 This is Atari 800, 800XL, 130XE and 5200 emulator.
83 This package contains Atari800 executable file configured for svgalib
84 with sound and joystick support.
86 %description svga -l pl
87 To jest emulator Atari 800, 800XL, 130XE i 5200.
89 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
90 svgalib z obs³ug± d¼wiêku i joysticka.
93 Summary: Atari 800 Emulator - X Window version
94 Summary(pl): Emulator Atari 800 - wersja pod X Window
96 Group: Applications/Emulators
97 Requires: %{name}-common = %{version}
100 This is Atari 800, 800XL, 130XE and 5200 emulator.
102 This package contains Atari800 executable file configured for X11 with
103 sound and joystick support.
105 %description x11 -l pl
106 To jest emulator Atari 800, 800XL, 130XE i 5200.
108 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
109 obs³ug± d¼wiêku i joysticka.
112 Summary: Atari 800 Emulator - SDL version
113 Summary(pl): Emulator Atari 800 - wersja pod SDL
115 Group: Applications/Emulators
116 Requires: %{name}-common = %{version}
119 This is Atari 800, 800XL, 130XE and 5200 emulator.
121 This package contains Atari800 executable file configured for SDL with
122 sound and joystick support.
124 %description SDL -l pl
125 To jest emulator Atari 800, 800XL, 130XE i 5200.
127 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
128 obs³ug± d¼wiêku i joysticka.
131 %setup -q -n atari800-%{version}
136 CFLAGS="%{rpmcflags}"
141 --disable-VERY_SLOW \
142 --enable-NO_CYCLE_EXACT \
143 --enable-CRASH_MENU \
144 --enable-MONITOR_BREAK \
145 --enable-MONITOR_HINTS \
146 --enable-MONITOR_ASSEMBLER \
147 --enable-COMPILED_PALETTE \
148 --enable-SNAILMETER \
149 --disable-SVGA_SPEEDUP \
150 --enable-USE_CURSORBLOCK \
152 --enable-LINUX_JOYSTICK \
154 --enable-NO_VOL_ONLY \
155 --enable-NO_CONSOL_SOUND \
156 --disable-SERIO_SOUND \
157 --enable-NOSNDINTER \
160 --disable-BUFFERED_LOG \
162 --enable-NO_LED_ON_SCREEN
166 mv -f atari800 atari800-svga
173 --disable-VERY_SLOW \
174 --enable-NO_CYCLE_EXACT \
175 --enable-CRASH_MENU \
176 --enable-MONITOR_BREAK \
177 --enable-MONITOR_HINTS \
178 --enable-MONITOR_ASSEMBLER \
179 --enable-COMPILED_PALETTE \
180 --enable-SNAILMETER \
181 --enable-LINUX_JOYSTICK \
183 --enable-NO_VOL_ONLY \
184 --enable-NO_CONSOL_SOUND \
185 --disable-SERIO_SOUND \
186 --enable-NOSNDINTER \
189 --disable-BUFFERED_LOG \
191 --enable-NO_LED_ON_SCREEN
195 mv -f atari800 atari800-SDL
201 --disable-VERY_SLOW \
202 --enable-NO_CYCLE_EXACT \
203 --enable-CRASH_MENU \
204 --enable-MONITOR_BREAK \
205 --enable-MONITOR_HINTS \
206 --enable-MONITOR_ASSEMBLER \
207 --enable-COMPILED_PALETTE \
208 --enable-SNAILMETER \
209 --enable-LINUX_JOYSTICK \
211 --enable-NO_VOL_ONLY \
212 --enable-NO_CONSOL_SOUND \
213 --disable-SERIO_SOUND \
214 --enable-NOSNDINTER \
220 mv -f atari800 atari800-x11
223 rm -rf $RPM_BUILD_ROOT
224 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
227 install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}
229 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
230 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
231 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
232 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
234 %if %{with license_agreement}
235 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
236 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
238 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
242 rm -rf $RPM_BUILD_ROOT
244 %if %{without license_agreement}
246 cd %{_datadir}/atari800
251 %defattr(644,root,root,755)
252 %doc DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST
253 %doc DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
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