]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
ee6c41e638a4137d72c327b187673e849a75a741
[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 Version:        1.2.2
9 Release:        1
10 License:        GPL (Atari800), distributable if unmodified (xf25 with ROMs)
11 Group:          Applications/Emulators
12 Group(de):      Applikationen/Emulators
13 Group(pl):      Aplikacje/Emulatory
14 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/atari800/atari800-%{version}.tar.gz
15 # NOTE: ROMs probably can be redistributed only in original XF25 archive
16 Source1:        http://joy.sophics.cz/www/xf25.zip
17 Source2:        %{name}-chooser
18 Patch0:         %{name}-shm_fix.patch
19 URL:            http://atari800.atari.org/
20 BuildRequires:  unzip
21 BuildRequires:  svgalib-devel
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 Group(de):      Applikationen/Emulators
40 Group(pl):      Aplikacje/Emulatory
41 Obsoletes:      Atari800
42 %{!?_with_license_agreement:Prereq:     unzip}
43
44 %description common
45 This is Atari 800, 800XL, 130XE and 5200 emulator.
46
47 This package contains common files for both svgalib and X11 versions
48 of Atari800.
49
50 %{!?_with_license_agreement:Note: because of license problems we had to include whole X-Former}
51 %{!?_with_license_agreement:archive (xf25.zip). If you don't want it - rebuild Atari800 by:}
52 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
53
54 %description common -l pl
55 To jest emulator Atari 800, 800XL, 130XE i 5200.
56
57 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
58 oraz X11.
59
60 %{!?_with_license_agreement:Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê}
61 %{!?_with_license_agreement:z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -}
62 %{!?_with_license_agreement:przebuduj pakiet poleceniem:}
63 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
64
65 %package svga
66 Summary:        Atari 800 Emulator - svgalib version
67 Summary(pl):    Emulator Atari 800 - wersja pod svgalib
68 License:        GPL
69 Group:          Applications/Emulators
70 Group(de):      Applikationen/Emulators
71 Group(pl):      Aplikacje/Emulatory
72 Requires:       %{name}-common = %{version}
73
74 %description svga
75 This is Atari 800, 800XL, 130XE and 5200 emulator.
76
77 This package contains Atari800 executable file configured for svgalib
78 with sound and joystick support.
79
80 %description svga -l pl
81 To jest emulator Atari 800, 800XL, 130XE i 5200.
82
83 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
84 svgalib z obs³ug± d¼wiêku i joysticka.
85
86 %package x11
87 Summary:        Atari 800 Emulator - X Window version
88 Summary(pl):    Emulator Atari 800 - wersja pod X Window
89 License:        GPL
90 Group:          Applications/Emulators
91 Group(de):      Applikationen/Emulators
92 Group(pl):      Aplikacje/Emulatory
93 Requires:       %{name}-common = %{version}
94
95 %description x11
96 This is Atari 800, 800XL, 130XE and 5200 emulator.
97
98 This package contains Atari800 executable file configured for X11 with
99 sound and joystick support.
100
101 %description x11 -l pl
102 To jest emulator Atari 800, 800XL, 130XE i 5200.
103
104 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
105 obs³ug± d¼wiêku i joysticka.
106
107 %package SDL
108 Summary:        Atari 800 Emulator - SDL version
109 Summary(pl):    Emulator Atari 800 - wersja pod SDL
110 License:        GPL
111 Group:          Applications/Emulators
112 Group(de):      Applikationen/Emulators
113 Group(pl):      Aplikacje/Emulatory
114 Requires:       %{name}-common = %{version}
115
116 %description SDL
117 This is Atari 800, 800XL, 130XE and 5200 emulator.
118
119 This package contains Atari800 executable file configured for SDL with
120 sound and joystick support.
121
122 %description SDL -l pl
123 To jest emulator Atari 800, 800XL, 130XE i 5200.
124
125 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
126 obs³ug± d¼wiêku i joysticka.
127
128 %prep
129 %setup -q -n atari800-%{version}
130 %patch0 -p1
131
132 %build
133 cd src
134
135 %configure2_13 --target=svgalib \
136         --disable-VERY_SLOW \
137         --enable-NO_CYCLE_EXACT \
138         --enable-CRASH_MENU \
139         --enable-MONITOR_BREAK \
140         --enable-MONITOR_HINTS \
141         --enable-MONITOR_ASSEMBLER \
142         --enable-COMPILED_PALETTE \
143         --enable-SNAILMETER \
144         --disable-SVGA_SPEEDUP \
145         --enable-USE_CURSORBLOCK \
146         --disable-JOYMOUSE \
147         --enable-LINUX_JOYSTICK \
148         --enable-SOUND \
149         --enable-NO_VOL_ONLY \
150         --enable-NO_CONSOL_SOUND \
151         --disable-SERIO_SOUND \
152         --enable-NOSNDINTER \
153         --disable-CLIP \
154         --disable-STEREO \
155         --disable-BUFFERED_LOG \
156         --enable-SET_LED \
157         --enable-NO_LED_ON_SCREEN
158
159 %{__make} \
160         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
161         LDFLAGS="%{rpmldflags}"
162 mv -f atari800 atari800-svga
163
164 %{__make} clean
165
166 %configure2_13 --target=sdl \
167         --disable-VERY_SLOW \
168         --enable-NO_CYCLE_EXACT \
169         --enable-CRASH_MENU \
170         --enable-MONITOR_BREAK \
171         --enable-MONITOR_HINTS \
172         --enable-MONITOR_ASSEMBLER \
173         --enable-COMPILED_PALETTE \
174         --enable-SNAILMETER \
175         --enable-LINUX_JOYSTICK \
176         --enable-SOUND \
177         --enable-NO_VOL_ONLY \
178         --enable-NO_CONSOL_SOUND \
179         --disable-SERIO_SOUND \
180         --enable-NOSNDINTER \
181         --disable-CLIP \
182         --disable-STEREO \
183         --disable-BUFFERED_LOG \
184         --enable-SET_LED \
185         --enable-NO_LED_ON_SCREEN
186         
187 %{__make} \
188         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include/SDL" \
189         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
190 mv -f atari800 atari800-SDL
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 %{__make} clean
216
217 sed s@/usr/local/lib/atari@%{_datadir}/atari800@g atari800.man >atari800.1
218
219 %install
220 rm -rf $RPM_BUILD_ROOT
221 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} \
222         $RPM_BUILD_ROOT{%{_datadir}/atari800,%{_mandir}/man1}
223
224 install src/atari800-svga $RPM_BUILD_ROOT%{_bindir}
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 svga
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_bindir}/atari800-svga
259
260 %files x11
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_xbindir}/atari800-x11
263
264 %files SDL
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_xbindir}/atari800-SDL
This page took 0.070217 seconds and 2 git commands to generate.