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