]> git.pld-linux.org Git - packages/Atari800.git/blob - Atari800.spec
- updated to 1.2.0
[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:        1
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.sophics.cz/pub/Atari800/src/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 URL:            http://atari800.atari.org/
21 BuildRequires:  unzip
22 BuildRequires:  svgalib-devel
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 Group(de):      Applikationen/Emulators
41 Group(pl):      Aplikacje/Emulatory
42 Obsoletes:      Atari800
43 %{!?_with_license_agreement:Prereq:     unzip}
44
45 %description common
46 This is Atari 800, 800XL, 130XE and 5200 emulator.
47
48 This package contains common files for both svgalib and X11 versions
49 of Atari800.
50
51 %{!?_with_license_agreement:Note: because of license problems we had to include whole X-Former}
52 %{!?_with_license_agreement:archive (xf25.zip). If you don't want it - rebuild Atari800 by:}
53 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
54
55 %description common -l pl
56 To jest emulator Atari 800, 800XL, 130XE i 5200.
57
58 Ten pakiet zawiera pliki wspólne dla wersji dzia³aj±cych pod svgalib
59 oraz X11.
60
61 %{!?_with_license_agreement:Uwaga: z powodu problemów z licencj± musieli¶my za³±czyæ ca³± paczkê}
62 %{!?_with_license_agreement:z emulatorem X-Former (xf25.zip). Je¶li jej nie chcesz w pakiecie -}
63 %{!?_with_license_agreement:przebuduj pakiet poleceniem:}
64 %{!?_with_license_agreement:rpm --rebuild --with license_agreement ftp://ftp.pld.org.pl/PLD-1.0/SRPMS/SRPMS/%{name}-%{version}-%{release}.src.rpm}
65
66 %package svga
67 Summary:        Atari 800 Emulator - svgalib version
68 Summary(pl):    Emulator Atari 800 - wersja pod svgalib
69 Group:          Applications/Emulators
70 Group(de):      Applikationen/Emulators
71 Group(pl):      Aplikacje/Emulatory
72 License:        GPL
73 Requires:       %{name}-common = %{version}
74
75 %description svga
76 This is Atari 800, 800XL, 130XE and 5200 emulator.
77
78 This package contains Atari800 executable file configured for svgalib
79 with sound and joystick support.
80
81 %description svga -l pl
82 To jest emulator Atari 800, 800XL, 130XE i 5200.
83
84 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla
85 svgalib z obs³ug± d¼wiêku i joysticka.
86
87 %package x11
88 Summary:        Atari 800 Emulator - X Window version
89 Summary(pl):    Emulator Atari 800 - wersja pod X Window
90 Group:          Applications/Emulators
91 Group(de):      Applikationen/Emulators
92 Group(pl):      Aplikacje/Emulatory
93 License:        GPL
94 Requires:       %{name}-common = %{version}
95
96 %description x11
97 This is Atari 800, 800XL, 130XE and 5200 emulator.
98
99 This package contains Atari800 executable file configured for X11 with
100 sound and joystick support.
101
102 %description x11 -l pl
103 To jest emulator Atari 800, 800XL, 130XE i 5200.
104
105 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla X11 z
106 obs³ug± d¼wiêku i joysticka.
107
108 %package SDL
109 Summary:        Atari 800 Emulator - SDL version
110 Summary(pl):    Emulator Atari 800 - wersja pod SDL
111 Group:          Applications/Emulators
112 Group(de):      Applikationen/Emulators
113 Group(pl):      Aplikacje/Emulatory
114 License:        GPL
115 Requires:       %{name}-common = %{version}
116
117 %description SDL
118 This is Atari 800, 800XL, 130XE and 5200 emulator.
119
120 This package contains Atari800 executable file configured for SDL with
121 sound and joystick support.
122
123 %description SDL -l pl
124 To jest emulator Atari 800, 800XL, 130XE i 5200.
125
126 Ten pakiet zawiera wykonywalny plik emulatora skonfigurowany dla SDL z
127 obs³ug± d¼wiêku i joysticka.
128
129 %prep
130 %setup -q -n %{name}
131 %patch0 -p1
132
133 %build
134 cd src
135
136 autoheader
137 autoconf
138 %configure --target=svgalib <<EOF
139 n
140 y
141 y
142 y
143 y
144 n
145 y
146 n
147 y
148 n
149 n
150 y
151 y
152 y
153 y
154 n
155 y
156 n
157 n
158 n
159 y
160 y
161 EOF
162 %{__make} \
163         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}" \
164         LDFLAGS="%{rpmldflags}"
165 mv -f atari800 atari800-svga
166
167 %{__make} clean
168
169 %configure --target=x11-shm <<EOF
170 n
171 y
172 y
173 y
174 y
175 n
176 n
177 n
178 y
179 y
180 y
181 y
182 y
183 y
184 n
185 n
186 EOF
187 %{__make} \
188         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include" \
189         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
190 mv -f atari800 atari800-x11
191
192 %{__make} clean
193
194 %configure --target=sdl <<EOF
195 n
196 y
197 y
198 y
199 y
200 n
201 n
202 n
203 y
204 y
205 y
206 y
207 y
208 y
209 n
210 n
211 EOF
212 %{__make} \
213         CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -I/usr/X11R6/include/SDL" \
214         LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
215 mv -f atari800 atari800-SDL
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,usage1}
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.058789 seconds and 4 git commands to generate.