]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
- massive attack: adding Source-md5
[packages/Atari800.git] / Atari800.spec
1 #
2 # Conditional build:
3 # _with_license_agreement - with unzipped ROM files instead of xf25.zip
4 # _without_svgalib        - without SVGA version
5 #
6 Summary:        Atari 800 Emulator
7 Summary(pl):    Emulator Atari 800
8 Name:           Atari800
9 Version:        1.3.0
10 Release:        1
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:  2998586f3c69f8a7e50439722e30ffc6
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 %ifarch %{ix86} alpha ppc
23 %{!?_without_svgalib:BuildRequires:     svgalib-devel}
24 %endif
25 BuildRequires:  unzip
26 BuildRequires:  zlib-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 This is Atari 800, 800XL, 130XE and 5200 emulator.
31
32 %description -l pl
33 To jest emulator Atari 800, 800XL, 130XE i 5200.
34
35 %package common
36 Summary:        Atari 800 Emulator - common files for svgalib and X11 versions
37 Summary(pl):    Emulator Atari 800 - pliki wspólne dla wersji svgalib oraz X11
38 Group:          Applications/Emulators
39 Obsoletes:      Atari800
40 %{!?_with_license_agreement:Prereq:     unzip}
41
42 %description common
43 This is Atari 800, 800XL, 130XE and 5200 emulator.
44
45 This package contains common files for both svgalib and X11 versions
46 of Atari800.
47
48 %{!?_with_license_agreement:Note: because of license problems we had to include whole X-Former}
49 %{!?_with_license_agreement:archive (xf25.zip). If you don't want it - rebuild Atari800 by:}
50 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
51
52 %description common -l pl
53 To jest emulator Atari 800, 800XL, 130XE i 5200.
54
55 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
56 oraz X11.
57
58 %{!?_with_license_agreement:Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê}
59 %{!?_with_license_agreement:z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -}
60 %{!?_with_license_agreement:przebuduj pakiet poleceniem:}
61 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
62
63 %package svga
64 Summary:        Atari 800 Emulator - svgalib version
65 Summary(pl):    Emulator Atari 800 - wersja pod svgalib
66 License:        GPL
67 Group:          Applications/Emulators
68 Requires:       %{name}-common = %{version}
69
70 %description svga
71 This is Atari 800, 800XL, 130XE and 5200 emulator.
72
73 This package contains Atari800 executable file configured for svgalib
74 with sound and joystick support.
75
76 %description svga -l pl
77 To jest emulator Atari 800, 800XL, 130XE i 5200.
78
79 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
80 svgalib z obs³ug± d¼wiêku i joysticka.
81
82 %package x11
83 Summary:        Atari 800 Emulator - X Window version
84 Summary(pl):    Emulator Atari 800 - wersja pod X Window
85 License:        GPL
86 Group:          Applications/Emulators
87 Requires:       %{name}-common = %{version}
88
89 %description x11
90 This is Atari 800, 800XL, 130XE and 5200 emulator.
91
92 This package contains Atari800 executable file configured for X11 with
93 sound and joystick support.
94
95 %description x11 -l pl
96 To jest emulator Atari 800, 800XL, 130XE i 5200.
97
98 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
99 obs³ug± d¼wiêku i joysticka.
100
101 %package SDL
102 Summary:        Atari 800 Emulator - SDL version
103 Summary(pl):    Emulator Atari 800 - wersja pod SDL
104 License:        GPL
105 Group:          Applications/Emulators
106 Requires:       %{name}-common = %{version}
107
108 %description SDL
109 This is Atari 800, 800XL, 130XE and 5200 emulator.
110
111 This package contains Atari800 executable file configured for SDL with
112 sound and joystick support.
113
114 %description SDL -l pl
115 To jest emulator Atari 800, 800XL, 130XE i 5200.
116
117 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
118 obs³ug± d¼wiêku i joysticka.
119
120 %prep
121 %setup -q -n atari800-%{version}
122
123 %build
124 cd src
125
126 CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
127 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
128 %ifarch %{ix86} alpha ppc
129
130 %configure --target=svgalib \
131         --disable-VERY_SLOW \
132         --enable-NO_CYCLE_EXACT \
133         --enable-CRASH_MENU \
134         --enable-MONITOR_BREAK \
135         --enable-MONITOR_HINTS \
136         --enable-MONITOR_ASSEMBLER \
137         --enable-COMPILED_PALETTE \
138         --enable-SNAILMETER \
139         --disable-SVGA_SPEEDUP \
140         --enable-USE_CURSORBLOCK \
141         --disable-JOYMOUSE \
142         --enable-LINUX_JOYSTICK \
143         --enable-SOUND \
144         --enable-NO_VOL_ONLY \
145         --enable-NO_CONSOL_SOUND \
146         --disable-SERIO_SOUND \
147         --enable-NOSNDINTER \
148         --disable-CLIP \
149         --disable-STEREO \
150         --disable-BUFFERED_LOG \
151         --enable-SET_LED \
152         --enable-NO_LED_ON_SCREEN
153
154 %{__make}
155
156 mv -f atari800 atari800-svga
157
158 %{__make} clean
159 %endif
160 %endif
161
162 %configure2_13 --target=sdl \
163         --disable-VERY_SLOW \
164         --enable-NO_CYCLE_EXACT \
165         --enable-CRASH_MENU \
166         --enable-MONITOR_BREAK \
167         --enable-MONITOR_HINTS \
168         --enable-MONITOR_ASSEMBLER \
169         --enable-COMPILED_PALETTE \
170         --enable-SNAILMETER \
171         --enable-LINUX_JOYSTICK \
172         --enable-SOUND \
173         --enable-NO_VOL_ONLY \
174         --enable-NO_CONSOL_SOUND \
175         --disable-SERIO_SOUND \
176         --enable-NOSNDINTER \
177         --disable-CLIP \
178         --disable-STEREO \
179         --disable-BUFFERED_LOG \
180         --enable-SET_LED \
181         --enable-NO_LED_ON_SCREEN
182         
183 %{__make}
184
185 mv -f atari800 atari800-SDL
186
187 %{__make} clean
188
189 %configure2_13 --target=x11-shm \
190         --disable-VERY_SLOW \
191         --enable-NO_CYCLE_EXACT \
192         --enable-CRASH_MENU \
193         --enable-MONITOR_BREAK \
194         --enable-MONITOR_HINTS \
195         --enable-MONITOR_ASSEMBLER \
196         --enable-COMPILED_PALETTE \
197         --enable-SNAILMETER \
198         --enable-LINUX_JOYSTICK \
199         --enable-SOUND \
200         --enable-NO_VOL_ONLY \
201         --enable-NO_CONSOL_SOUND \
202         --disable-SERIO_SOUND \
203         --enable-NOSNDINTER \
204         --disable-CLIP \
205         --disable-STEREO
206
207 %{__make}
208
209 mv -f atari800 atari800-x11
210
211 %install
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
214
215 %ifarch %{ix86} alpha ppc
216 %{!?_without_svgalib:install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}}
217 %endif
218 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
219 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
220 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
221 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
222
223 %if %{?_with_license_agreement:1}%{!?_with_license_agreement:0}
224 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
225 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
226 %else
227 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
228 %endif
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %if %{?_with_license_agreement:0}%{!?_with_license_agreement:1}
234 %post common
235 cd %{_datadir}/atari800
236 unzip -q -L xf25.zip
237 %endif
238
239 %files common
240 %defattr(644,root,root,755)
241 %doc DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST
242 %doc DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
243 %attr(755,root,root) %{_bindir}/atari800
244 %{_datadir}/atari800
245 %{_mandir}/man1/atari800.1*
246
247 %files x11
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_bindir}/atari800-x11
250
251 %files SDL
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/atari800-SDL
254
255 %ifarch %{ix86} alpha ppc
256 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
257 %files svga
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_bindir}/atari800-svga
260 %endif
261 %endif
This page took 0.132877 seconds and 4 git commands to generate.