]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
5b05f7a5e1253c8d92922d50f68d83dc402e4219
[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.2.2
10 Release:        2
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/
19 BuildRequires:  unzip
20 %ifarch %{ix86}
21 %{!?_without_svgalib:BuildRequires:     svgalib-devel}
22 %endif
23 BuildRequires:  XFree86-devel
24 BuildRequires:  zlib-devel
25 BuildRequires:  SDL-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _xbindir        %{_prefix}/X11R6/bin
29
30 %description
31 This is Atari 800, 800XL, 130XE and 5200 emulator.
32
33 %description -l pl
34 To jest emulator Atari 800, 800XL, 130XE i 5200.
35
36 %package common
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
40 Obsoletes:      Atari800
41 %{!?_with_license_agreement:Prereq:     unzip}
42
43 %description common
44 This is Atari 800, 800XL, 130XE and 5200 emulator.
45
46 This package contains common files for both svgalib and X11 versions
47 of Atari800.
48
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}
52
53 %description common -l pl
54 To jest emulator Atari 800, 800XL, 130XE i 5200.
55
56 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
57 oraz X11.
58
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}
63
64 %package svga
65 Summary:        Atari 800 Emulator - svgalib version
66 Summary(pl):    Emulator Atari 800 - wersja pod svgalib
67 License:        GPL
68 Group:          Applications/Emulators
69 Requires:       %{name}-common = %{version}
70
71 %description svga
72 This is Atari 800, 800XL, 130XE and 5200 emulator.
73
74 This package contains Atari800 executable file configured for svgalib
75 with sound and joystick support.
76
77 %description svga -l pl
78 To jest emulator Atari 800, 800XL, 130XE i 5200.
79
80 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
81 svgalib z obs³ug± d¼wiêku i joysticka.
82
83 %package x11
84 Summary:        Atari 800 Emulator - X Window version
85 Summary(pl):    Emulator Atari 800 - wersja pod X Window
86 License:        GPL
87 Group:          Applications/Emulators
88 Requires:       %{name}-common = %{version}
89
90 %description x11
91 This is Atari 800, 800XL, 130XE and 5200 emulator.
92
93 This package contains Atari800 executable file configured for X11 with
94 sound and joystick support.
95
96 %description x11 -l pl
97 To jest emulator Atari 800, 800XL, 130XE i 5200.
98
99 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
100 obs³ug± d¼wiêku i joysticka.
101
102 %package SDL
103 Summary:        Atari 800 Emulator - SDL version
104 Summary(pl):    Emulator Atari 800 - wersja pod SDL
105 License:        GPL
106 Group:          Applications/Emulators
107 Requires:       %{name}-common = %{version}
108
109 %description SDL
110 This is Atari 800, 800XL, 130XE and 5200 emulator.
111
112 This package contains Atari800 executable file configured for SDL with
113 sound and joystick support.
114
115 %description SDL -l pl
116 To jest emulator Atari 800, 800XL, 130XE i 5200.
117
118 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
119 obs³ug± d¼wiêku i joysticka.
120
121 %prep
122 %setup -q -n atari800-%{version}
123 %patch0 -p1
124
125 %build
126 cd src
127
128 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
129 %ifarch %{ix86}
130
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 \
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         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
157         LDFLAGS="%{rpmldflags}"
158 mv -f atari800 atari800-svga
159
160 %{__make} clean
161 %endif
162 %endif
163
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 \
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         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include/SDL" \
187         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
188 mv -f atari800 atari800-SDL
189
190 %{__make} clean
191
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 \
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         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include" \
212         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
213 mv -f atari800 atari800-x11
214
215 sed s@/usr/local/lib/atari@%{_datadir}/atari800@g atari800.man >atari800.1
216
217 %install
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} \
220         $RPM_BUILD_ROOT{%{_datadir}/atari800,%{_mandir}/man1}
221
222 %ifarch %{ix86}
223 %{!?_without_svgalib:install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}}
224 %endif
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
229
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.*
233 %else
234 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
235 %endif
236
237 gzip -9nf DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST \
238         DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
239
240 %clean
241 rm -rf $RPM_BUILD_ROOT
242
243 %if %{?_with_license_agreement:0}%{!?_with_license_agreement:1}
244 %post common
245 cd %{_datadir}/atari800
246 unzip -q -L xf25.zip
247 %endif
248
249 %files common
250 %defattr(644,root,root,755)
251 %doc  *.gz DOC/*.gz
252 %{_datadir}/atari800
253 %{_mandir}/man1/atari800.1*
254 %attr(755,root,root) %{_bindir}/atari800
255
256 %files x11
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_xbindir}/atari800-x11
259
260 %files SDL
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_xbindir}/atari800-SDL
263
264 %ifarch %{ix86}
265 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
266 %files svga
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/atari800-svga
269 %endif
270 %endif
This page took 0.098633 seconds and 3 git commands to generate.