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