]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
9719429d85297c85973fc68886fa2e9161ed3512
[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.3
10 Release:        1
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 URL:            http://atari800.atari.org/
18 BuildRequires:  unzip
19 %ifarch %{ix86} alpha ppc
20 %{!?_without_svgalib:BuildRequires:     svgalib-devel}
21 %endif
22 BuildRequires:  XFree86-devel
23 BuildRequires:  zlib-devel
24 BuildRequires:  SDL-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _xbindir        %{_prefix}/X11R6/bin
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 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
127 %ifarch %{ix86} alpha ppc
128
129 %configure2_13 --target=svgalib \
130         --disable-VERY_SLOW \
131         --enable-NO_CYCLE_EXACT \
132         --enable-CRASH_MENU \
133         --enable-MONITOR_BREAK \
134         --enable-MONITOR_HINTS \
135         --enable-MONITOR_ASSEMBLER \
136         --enable-COMPILED_PALETTE \
137         --enable-SNAILMETER \
138         --disable-SVGA_SPEEDUP \
139         --enable-USE_CURSORBLOCK \
140         --disable-JOYMOUSE \
141         --enable-LINUX_JOYSTICK \
142         --enable-SOUND \
143         --enable-NO_VOL_ONLY \
144         --enable-NO_CONSOL_SOUND \
145         --disable-SERIO_SOUND \
146         --enable-NOSNDINTER \
147         --disable-CLIP \
148         --disable-STEREO \
149         --disable-BUFFERED_LOG \
150         --enable-SET_LED \
151         --enable-NO_LED_ON_SCREEN
152
153 %{__make} \
154         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
155         LDFLAGS="%{rpmldflags}"
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         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include/SDL" \
185         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
186 mv -f atari800 atari800-SDL
187
188 %{__make} clean
189
190 %configure2_13 --target=x11-shm \
191         --disable-VERY_SLOW \
192         --enable-NO_CYCLE_EXACT \
193         --enable-CRASH_MENU \
194         --enable-MONITOR_BREAK \
195         --enable-MONITOR_HINTS \
196         --enable-MONITOR_ASSEMBLER \
197         --enable-COMPILED_PALETTE \
198         --enable-SNAILMETER \
199         --enable-LINUX_JOYSTICK \
200         --enable-SOUND \
201         --enable-NO_VOL_ONLY \
202         --enable-NO_CONSOL_SOUND \
203         --disable-SERIO_SOUND \
204         --enable-NOSNDINTER \
205         --disable-CLIP \
206         --disable-STEREO
207
208 %{__make} \
209         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include" \
210         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
211 mv -f atari800 atari800-x11
212
213 sed s@/usr/local/lib/atari@%{_datadir}/atari800@g atari800.man >atari800.1
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} \
218         $RPM_BUILD_ROOT{%{_datadir}/atari800,%{_mandir}/man1}
219
220 %ifarch %{ix86} alpha ppc
221 %{!?_without_svgalib:install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}}
222 %endif
223 install src/atari800-x11 $RPM_BUILD_ROOT%{_xbindir}
224 install src/atari800-SDL $RPM_BUILD_ROOT%{_xbindir}
225 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/atari800
226 install src/atari800.1 $RPM_BUILD_ROOT%{_mandir}/man1/atari800.1
227
228 %if %{?_with_license_agreement:1}%{!?_with_license_agreement:0}
229 unzip -q -L %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/atari800
230 rm -f $RPM_BUILD_ROOT%{_datadir}/atari800/xf25.*
231 %else
232 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/atari800
233 %endif
234
235 %clean
236 rm -rf $RPM_BUILD_ROOT
237
238 %if %{?_with_license_agreement:0}%{!?_with_license_agreement:1}
239 %post common
240 cd %{_datadir}/atari800
241 unzip -q -L xf25.zip
242 %endif
243
244 %files common
245 %defattr(644,root,root,755)
246 %doc DOC/{BUGS,CHANGES,CREDITS,FAQ,README,TODO,USAGE} README.1ST
247 %doc DOC/{LPTjoy.txt,cart.txt,emuos.txt,pokeysnd.txt}
248 %attr(755,root,root) %{_bindir}/atari800
249 %{_datadir}/atari800
250 %{_mandir}/man1/atari800.1*
251
252 %files x11
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_xbindir}/atari800-x11
255
256 %files SDL
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_xbindir}/atari800-SDL
259
260 %ifarch %{ix86} alpha ppc
261 %if %{?_without_svgalib:0}%{!?_without_svgalib:1}
262 %files svga
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/atari800-svga
265 %endif
266 %endif
This page took 0.042581 seconds and 2 git commands to generate.