]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
- 1.3.1
[packages/Atari800.git] / Atari800.spec
1 #
2 # Conditional build:
3 # _with_license_agreement       - with unzipped ROM files instead of xf25.zip
4 # _without_svga                 - without SVGA version
5 #
6 Summary:        Atari 800 Emulator
7 Summary(pl):    Emulator Atari 800
8 Name:           Atari800
9 Version:        1.3.1
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:  02c824a4648732a3646d377ee02efd7d
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_svga: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-linux.org/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-linux.org/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_svga:0}%{!?_without_svga:1}
128 %ifarch %{ix86} alpha ppc
129
130 %configure \
131         --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 \
142         --disable-JOYMOUSE \
143         --enable-LINUX_JOYSTICK \
144         --enable-SOUND \
145         --enable-NO_VOL_ONLY \
146         --enable-NO_CONSOL_SOUND \
147         --disable-SERIO_SOUND \
148         --enable-NOSNDINTER \
149         --disable-CLIP \
150         --disable-STEREO \
151         --disable-BUFFERED_LOG \
152         --enable-SET_LED \
153         --enable-NO_LED_ON_SCREEN
154
155 %{__make}
156
157 mv -f atari800 atari800-svga
158
159 %{__make} clean
160 %endif
161 %endif
162
163 %configure \
164         --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 \
174         --enable-SOUND \
175         --enable-NO_VOL_ONLY \
176         --enable-NO_CONSOL_SOUND \
177         --disable-SERIO_SOUND \
178         --enable-NOSNDINTER \
179         --disable-CLIP \
180         --disable-STEREO \
181         --disable-BUFFERED_LOG \
182         --enable-SET_LED \
183         --enable-NO_LED_ON_SCREEN
184
185 %{__make}
186
187 mv -f atari800 atari800-SDL
188
189 %{__make} clean
190
191 %configure \
192         --target=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 \
202         --enable-SOUND \
203         --enable-NO_VOL_ONLY \
204         --enable-NO_CONSOL_SOUND \
205         --disable-SERIO_SOUND \
206         --enable-NOSNDINTER \
207         --disable-CLIP \
208         --disable-STEREO
209
210 %{__make}
211
212 mv -f atari800 atari800-x11
213
214 %install
215 rm -rf $RPM_BUILD_ROOT
216 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/atari800,%{_mandir}/man1}
217
218 %ifarch %{ix86} alpha ppc
219 %{!?_without_svga:install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}}
220 %endif
221 install src/atari800-x11 $RPM_BUILD_ROOT%{_bindir}
222 install src/atari800-SDL $RPM_BUILD_ROOT%{_bindir}
223 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
224 install src/atari800.man $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
225
226 %if %{?_with_license_agreement:1}%{!?_with_license_agreement:0}
227 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
228 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
229 %else
230 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
231 %endif
232
233 %clean
234 rm -rf $RPM_BUILD_ROOT
235
236 %if %{?_with_license_agreement:0}%{!?_with_license_agreement:1}
237 %post common
238 cd %{_datadir}/atari800
239 unzip -q -L xf25.zip
240 %endif
241
242 %files common
243 %defattr(644,root,root,755)
244 %doc DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST
245 %doc DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
246 %attr(755,root,root) %{_bindir}/atari800
247 %{_datadir}/atari800
248 %{_mandir}/man1/atari800.1*
249
250 %files x11
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_bindir}/atari800-x11
253
254 %files SDL
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_bindir}/atari800-SDL
257
258 %ifarch %{ix86} alpha ppc
259 %if %{?_without_svga:0}%{!?_without_svga:1}
260 %files svga
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_bindir}/atari800-svga
263 %endif
264 %endif
This page took 0.128873 seconds and 4 git commands to generate.