3 # _with_license_agreement - with unzipped ROM files instead of xf25.zip
4 # _without_svgalib - 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: ftp://ftp.sourceforge.net/pub/sourceforge/atari800/atari800-%{version}.tar.gz
14 # NOTE: ROMs probably can be redistributed only in original XF25 archive
15 Source1: http://joy.sophics.cz/www/xf25.zip
16 Source2: %{name}-chooser
17 Patch0: %{name}-shm_fix.patch
18 URL: http://atari800.atari.org/
21 %{!?_without_svgalib:BuildRequires: svgalib-devel}
23 BuildRequires: XFree86-devel
24 BuildRequires: zlib-devel
25 BuildRequires: SDL-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _xbindir %{_prefix}/X11R6/bin
31 This is Atari 800, 800XL, 130XE and 5200 emulator.
34 To jest emulator Atari 800, 800XL, 130XE i 5200.
37 Summary: Atari 800 Emulator - common files for svgalib and X11 versions
38 Summary(pl): Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
39 Group: Applications/Emulators
41 %{!?_with_license_agreement:Prereq: unzip}
44 This is Atari 800, 800XL, 130XE and 5200 emulator.
46 This package contains common files for both svgalib and X11 versions
49 %{!?_with_license_agreement:Note: because of license problems we had to include whole X-Former}
50 %{!?_with_license_agreement:archive (xf25.zip). If you don't want it - rebuild Atari800 by:}
51 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
53 %description common -l pl
54 To jest emulator Atari 800, 800XL, 130XE i 5200.
56 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
59 %{!?_with_license_agreement:Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê}
60 %{!?_with_license_agreement:z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -}
61 %{!?_with_license_agreement:przebuduj pakiet poleceniem:}
62 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
65 Summary: Atari 800 Emulator - svgalib version
66 Summary(pl): Emulator Atari 800 - wersja pod svgalib
68 Group: Applications/Emulators
69 Requires: %{name}-common = %{version}
72 This is Atari 800, 800XL, 130XE and 5200 emulator.
74 This package contains Atari800 executable file configured for svgalib
75 with sound and joystick support.
77 %description svga -l pl
78 To jest emulator Atari 800, 800XL, 130XE i 5200.
80 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
81 svgalib z obs³ug± d¼wiêku i joysticka.
84 Summary: Atari 800 Emulator - X Window version
85 Summary(pl): Emulator Atari 800 - wersja pod X Window
87 Group: Applications/Emulators
88 Requires: %{name}-common = %{version}
91 This is Atari 800, 800XL, 130XE and 5200 emulator.
93 This package contains Atari800 executable file configured for X11 with
94 sound and joystick support.
96 %description x11 -l pl
97 To jest emulator Atari 800, 800XL, 130XE i 5200.
99 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
100 obs³ug± d¼wiêku i joysticka.
103 Summary: Atari 800 Emulator - SDL version
104 Summary(pl): Emulator Atari 800 - wersja pod SDL
106 Group: Applications/Emulators
107 Requires: %{name}-common = %{version}
110 This is Atari 800, 800XL, 130XE and 5200 emulator.
112 This package contains Atari800 executable file configured for SDL with
113 sound and joystick support.
115 %description SDL -l pl
116 To jest emulator Atari 800, 800XL, 130XE i 5200.
118 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
119 obs³ug± d¼wiêku i joysticka.
122 %setup -q -n atari800-%{version}
128 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
131 %configure2_13 --target=svgalib \
132 --disable-VERY_SLOW \
133 --enable-NO_CYCLE_EXACT \
134 --enable-CRASH_MENU \
135 --enable-MONITOR_BREAK \
136 --enable-MONITOR_HINTS \
137 --enable-MONITOR_ASSEMBLER \
138 --enable-COMPILED_PALETTE \
139 --enable-SNAILMETER \
140 --disable-SVGA_SPEEDUP \
141 --enable-USE_CURSORBLOCK \
143 --enable-LINUX_JOYSTICK \
145 --enable-NO_VOL_ONLY \
146 --enable-NO_CONSOL_SOUND \
147 --disable-SERIO_SOUND \
148 --enable-NOSNDINTER \
151 --disable-BUFFERED_LOG \
153 --enable-NO_LED_ON_SCREEN
156 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
157 LDFLAGS="%{rpmldflags}"
158 mv -f atari800 atari800-svga
164 %configure2_13 --target=sdl \
165 --disable-VERY_SLOW \
166 --enable-NO_CYCLE_EXACT \
167 --enable-CRASH_MENU \
168 --enable-MONITOR_BREAK \
169 --enable-MONITOR_HINTS \
170 --enable-MONITOR_ASSEMBLER \
171 --enable-COMPILED_PALETTE \
172 --enable-SNAILMETER \
173 --enable-LINUX_JOYSTICK \
175 --enable-NO_VOL_ONLY \
176 --enable-NO_CONSOL_SOUND \
177 --disable-SERIO_SOUND \
178 --enable-NOSNDINTER \
181 --disable-BUFFERED_LOG \
183 --enable-NO_LED_ON_SCREEN
186 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include/SDL" \
187 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
188 mv -f atari800 atari800-SDL
192 %configure2_13 --target=x11-shm \
193 --disable-VERY_SLOW \
194 --enable-NO_CYCLE_EXACT \
195 --enable-CRASH_MENU \
196 --enable-MONITOR_BREAK \
197 --enable-MONITOR_HINTS \
198 --enable-MONITOR_ASSEMBLER \
199 --enable-COMPILED_PALETTE \
200 --enable-SNAILMETER \
201 --enable-LINUX_JOYSTICK \
203 --enable-NO_VOL_ONLY \
204 --enable-NO_CONSOL_SOUND \
205 --disable-SERIO_SOUND \
206 --enable-NOSNDINTER \
211 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include" \
212 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
213 mv -f atari800 atari800-x11
215 sed s@/usr/local/lib/atari@%{_datadir}/atari800@g atari800.man >atari800.1
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} \
220 $RPM_BUILD_ROOT{%{_datadir}/atari800,%{_mandir}/man1}
223 %{!?_without_svgalib:install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}}
225 install src/atari800-x11 $RPM_BUILD_ROOT%{_xbindir}
226 install src/atari800-SDL $RPM_BUILD_ROOT%{_xbindir}
227 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
228 install src/atari800.1 $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
230 %if %{?_with_license_agreement:1}%{!?_with_license_agreement:0}
231 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
232 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
234 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
237 gzip -9nf DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST \
238 DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
241 rm -rf $RPM_BUILD_ROOT
243 %if %{?_with_license_agreement:0}%{!?_with_license_agreement:1}
245 cd %{_datadir}/atari800
250 %defattr(644,root,root,755)
253 %{_mandir}/man1/atari800.1*
254 %attr(755,root,root) %{_bindir}/atari800
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_xbindir}/atari800-x11
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_xbindir}/atari800-SDL
265 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/atari800-svga