]>
Commit | Line | Data |
---|---|---|
18788b42 | 1 | # TODO: Fix issue with the WORDS_BIGENDIAN macro of autoconf-2.63 |
830ee63a JB |
2 | # fuse built using autotools is unusable because of it. |
3 | # | |
9d57cad8 | 4 | # Conditional build: |
3bcbbbcf JB |
5 | %bcond_with svga # svgalib version |
6 | %bcond_without fb # framebuffer version | |
7 | %bcond_without gtk # GTK+ 2 version | |
8 | %bcond_without gtk3 # GTK+ 3 version | |
9 | %bcond_without sdl # SDL version | |
6af50621 | 10 | # |
9128f30b | 11 | Summary: Free Unix Spectrum Emulator |
aefab7a2 | 12 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum |
9128f30b | 13 | Name: fuse |
1240656c WF |
14 | Version: 1.2.0 |
15 | Release: 1 | |
1ed57557 | 16 | License: GPL v2+ |
9128f30b | 17 | Group: Applications/Emulators |
87c5873c | 18 | Source0: http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz |
1240656c | 19 | # Source0-md5: 93a6f5c76984020efe12c5585b13bcad |
87c5873c | 20 | Source1: ti_m397.rom |
c71d7a17 | 21 | # Source1-md5: 8c61b20e1f7666ff80ad7f48bb2b10c0 |
731fe34d | 22 | Patch0: fuse-1.1.1-2.patch |
72d9889b | 23 | URL: http://fuse-emulator.sourceforge.net/ |
23bf58cd | 24 | BuildRequires: SDL-devel >= 1.2.4 |
830ee63a | 25 | BuildRequires: alsa-lib-devel |
23d994ff | 26 | BuildRequires: autoconf >= 2.59-9 |
27 | BuildRequires: automake | |
3bcbbbcf JB |
28 | BuildRequires: glib2-devel >= 1:2.20.0 |
29 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.18.0} | |
23bf58cd | 30 | %{?with_gtk3:BuildRequires: gtk+3-devel} |
830ee63a | 31 | %{?with_fb:BuildRequires: gpm-devel} |
abb1d23d | 32 | BuildRequires: libjsw-devel |
9d57cad8 | 33 | BuildRequires: libpng-devel |
3eff276c | 34 | BuildRequires: libsamplerate-devel |
1240656c | 35 | BuildRequires: libspectrum-devel >= 1.2.0 |
3bcbbbcf | 36 | BuildRequires: libtool >= 2:2 |
a8da872e | 37 | BuildRequires: libxml2-devel >= 2.0.0 |
3eff276c | 38 | BuildRequires: perl-base |
83a91b44 | 39 | BuildRequires: pkgconfig |
6af50621 | 40 | %{?with_svga:BuildRequires: svgalib-devel} |
3bcbbbcf JB |
41 | BuildRequires: xorg-lib-libX11-devel |
42 | BuildRequires: zlib-devel | |
9128f30b | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | fuse is Free Unix Spectrum Emulator. | |
47 | What Fuse does have: | |
48 | ||
49 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
50 | speed on any computer you're likely to try it on (it runs at full | |
51 | speed on a SparcStation 4 unless you do too much graphics intensive | |
52 | stuff). | |
53 | * Support for loading from .tzx files. | |
54 | * Sound emulation. | |
23d994ff | 55 | * Emulation of several printers for ZX Spectrum. |
9128f30b | 56 | |
7dd50860 | 57 | %description -l pl.UTF-8 |
9128f30b | 58 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 59 | Jego właściwości to: |
9128f30b | 60 | |
61 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
62 | * Możliwość ładowania programów z plików .tzx. |
63 | * Dźwięk. | |
23d994ff | 64 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
9128f30b | 65 | |
66 | %package common | |
67 | Summary: Free Unix Spectrum Emulator (common files) | |
aefab7a2 | 68 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (pliki wspólne) |
9128f30b | 69 | Group: Applications/Emulators |
3bcbbbcf | 70 | Requires: glib2 >= 1:2.20.0 |
1ed57557 | 71 | Requires: libspectrum >= 0.4.0 |
88291491 | 72 | Suggests: fdd3000e |
9128f30b | 73 | |
74 | %description common | |
75 | fuse is Free Unix Spectrum Emulator. | |
76 | What Fuse does have: | |
77 | ||
78 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
79 | speed on any computer you're likely to try it on (it runs at full | |
80 | speed on a SparcStation 4 unless you do too much graphics intensive | |
81 | stuff). | |
82 | * Support for loading from .tzx files. | |
23d994ff | 83 | * Sound emulation. |
84 | * Emulation of several printers for ZX Spectrum. | |
9128f30b | 85 | |
cb86401f | 86 | This package contains common files for all versions. |
9128f30b | 87 | |
7dd50860 | 88 | %description common -l pl.UTF-8 |
9128f30b | 89 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 90 | Jego właściwości to: |
9128f30b | 91 | |
92 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
93 | * Możliwość ładowania programów z plików .tzx. |
94 | * Dźwięk. | |
9128f30b | 95 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
96 | ||
7dd50860 | 97 | W tym pakiecie znajdują się wspólne pliki dla wszystkich wersji. |
9128f30b | 98 | |
2cde7108 | 99 | %package fb |
100 | Summary: Free Unix Spectrum Emulator (framebuffer version) | |
aefab7a2 | 101 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer) |
2cde7108 | 102 | Group: Applications/Emulators |
6af50621 | 103 | Requires: %{name}-common = %{version}-%{release} |
2cde7108 | 104 | |
105 | %description fb | |
106 | fuse is Free Unix Spectrum Emulator. | |
107 | What Fuse does have: | |
108 | ||
109 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
110 | speed on any computer you're likely to try it on (it runs at full | |
111 | speed on a SparcStation 4 unless you do too much graphics intensive | |
112 | stuff). | |
113 | * Support for loading from .tzx files. | |
23d994ff | 114 | * Sound emulation. |
115 | * Emulation of several printers for ZX Spectrum. | |
2cde7108 | 116 | |
117 | This package contains files for framebuffer version. | |
118 | ||
7dd50860 | 119 | %description fb -l pl.UTF-8 |
2cde7108 | 120 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 121 | Jego właściwości to: |
2cde7108 | 122 | |
123 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
124 | * Możliwość ładowania programów z plików .tzx. |
125 | * Dźwięk. | |
23d994ff | 126 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
2cde7108 | 127 | |
7dd50860 | 128 | W tym pakiecie znajdują się pliki dla wersji korzystającej z |
623e5403 | 129 | framebuffera. |
9d57cad8 | 130 | |
9d57cad8 | 131 | %package sdl |
132 | Summary: Free Unix Spectrum Emulator (SDL version) | |
aefab7a2 | 133 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na SDL) |
9d57cad8 | 134 | Group: Applications/Emulators |
6af50621 | 135 | Requires: %{name}-common = %{version}-%{release} |
a8da872e | 136 | Requires: SDL >= 1.2.4 |
9d57cad8 | 137 | |
138 | %description sdl | |
139 | fuse is Free Unix Spectrum Emulator. | |
140 | What Fuse does have: | |
141 | ||
142 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
143 | speed on any computer you're likely to try it on (it runs at full | |
144 | speed on a SparcStation 4 unless you do too much graphics intensive | |
145 | stuff). | |
146 | * Support for loading from .tzx files. | |
23d994ff | 147 | * Sound emulation. |
148 | * Emulation of several printers for ZX Spectrum. | |
9d57cad8 | 149 | |
150 | This package contains files for SDL version. | |
151 | ||
7dd50860 | 152 | %description sdl -l pl.UTF-8 |
9d57cad8 | 153 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 154 | Jego właściwości to: |
9d57cad8 | 155 | |
156 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
157 | * Możliwość ładowania programów z plików .tzx. |
158 | * Dźwięk. | |
23d994ff | 159 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
9d57cad8 | 160 | |
7dd50860 | 161 | W tym pakiecie znajdują się pliki dla wersji korzystającej z SDL. |
9d57cad8 | 162 | |
9128f30b | 163 | %package svga |
164 | Summary: Free Unix Spectrum Emulator (svga version) | |
aefab7a2 | 165 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na svgalib) |
9128f30b | 166 | Group: Applications/Emulators |
6af50621 | 167 | Requires: %{name}-common = %{version}-%{release} |
9128f30b | 168 | |
169 | %description svga | |
170 | fuse is Free Unix Spectrum Emulator. | |
171 | What Fuse does have: | |
172 | ||
173 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
174 | speed on any computer you're likely to try it on (it runs at full | |
175 | speed on a SparcStation 4 unless you do too much graphics intensive | |
176 | stuff). | |
177 | * Support for loading from .tzx files. | |
23d994ff | 178 | * Sound emulation. |
179 | * Emulation of several printers for ZX Spectrum. | |
9128f30b | 180 | |
181 | This package contains files for svga version. | |
182 | ||
7dd50860 | 183 | %description svga -l pl.UTF-8 |
9128f30b | 184 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 185 | Jego właściwości to: |
9128f30b | 186 | |
187 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
188 | * Możliwość ładowania programów z plików .tzx. |
189 | * Dźwięk. | |
23d994ff | 190 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
9128f30b | 191 | |
7dd50860 | 192 | W tym pakiecie znajdują się pliki dla wersji korzystającej z svgalib. |
9128f30b | 193 | |
23bf58cd | 194 | %package gtk |
3bcbbbcf JB |
195 | Summary: Free Unix Spectrum Emulator (GTK+ 2 version) |
196 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 2) | |
9128f30b | 197 | Group: Applications/Emulators |
6af50621 | 198 | Requires: %{name}-common = %{version}-%{release} |
3bcbbbcf JB |
199 | Requires: gtk+2 >= 2:2.18.0 |
200 | Obsoletes: fuse-X11 | |
9128f30b | 201 | |
23bf58cd | 202 | %description gtk |
9128f30b | 203 | fuse is Free Unix Spectrum Emulator. |
204 | What Fuse does have: | |
205 | ||
206 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
207 | speed on any computer you're likely to try it on (it runs at full | |
208 | speed on a SparcStation 4 unless you do too much graphics intensive | |
209 | stuff). | |
210 | * Support for loading from .tzx files. | |
23d994ff | 211 | * Sound emulation. |
212 | * Emulation of several printers for ZX Spectrum. | |
9128f30b | 213 | |
3bcbbbcf | 214 | This package contains files for GTK+ 2 version. |
9128f30b | 215 | |
23bf58cd | 216 | %description gtk -l pl.UTF-8 |
9128f30b | 217 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. |
7dd50860 | 218 | Jego właściwości to: |
9128f30b | 219 | |
220 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
7dd50860 JR |
221 | * Możliwość ładowania programów z plików .tzx. |
222 | * Dźwięk. | |
23d994ff | 223 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. |
9128f30b | 224 | |
3bcbbbcf | 225 | W tym pakiecie znajdują się pliki dla wersji GTK+ 2. |
23bf58cd | 226 | |
227 | %package gtk3 | |
3bcbbbcf JB |
228 | Summary: Free Unix Spectrum Emulator (GTK+ 3 version) |
229 | Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 3) | |
23bf58cd | 230 | Group: Applications/Emulators |
23bf58cd | 231 | Requires: %{name}-common = %{version}-%{release} |
3bcbbbcf | 232 | Obsoletes: fuse-X11 |
23bf58cd | 233 | |
234 | %description gtk3 | |
235 | fuse is Free Unix Spectrum Emulator. | |
236 | What Fuse does have: | |
237 | ||
238 | * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy | |
239 | speed on any computer you're likely to try it on (it runs at full | |
240 | speed on a SparcStation 4 unless you do too much graphics intensive | |
241 | stuff). | |
242 | * Support for loading from .tzx files. | |
243 | * Sound emulation. | |
244 | * Emulation of several printers for ZX Spectrum. | |
245 | ||
3bcbbbcf | 246 | This package contains files for GTK+ 3 version. |
23bf58cd | 247 | |
248 | %description gtk3 -l pl.UTF-8 | |
249 | fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum. | |
250 | Jego właściwości to: | |
251 | ||
252 | * Emulacja ZX Spectrum 48K/128K/+2/+2A. | |
253 | * Możliwość ładowania programów z plików .tzx. | |
254 | * Dźwięk. | |
255 | * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum. | |
256 | ||
3bcbbbcf | 257 | W tym pakiecie znajdują się pliki dla wersji GTK+ 3. |
9128f30b | 258 | |
259 | %prep | |
260 | %setup -q | |
261 | ||
262 | %build | |
1240656c | 263 | #%patch0 -p1 |
18788b42 | 264 | #%{__libtoolize} |
265 | #%{__aclocal} | |
266 | #%{__autoheader} | |
267 | #%{__autoconf} | |
268 | #%{__automake} | |
9d57cad8 | 269 | |
9d57cad8 | 270 | # SDL |
6af50621 | 271 | %if %{with sdl} |
1240656c WF |
272 | mkdir build-sdl |
273 | cd build-sdl | |
274 | ../%configure \ | |
275 | --with-sdl \ | |
276 | --program-suffix=-sdl | |
9d57cad8 | 277 | %{__make} |
1240656c | 278 | cd .. |
9d57cad8 | 279 | %endif |
280 | ||
281 | # svga | |
6af50621 | 282 | %if %{with svga} |
1240656c WF |
283 | mkdir build-svga |
284 | cd build-svga | |
285 | ../%configure \ | |
286 | --with-svgalib \ | |
287 | --program-suffix=-svga | |
9d57cad8 | 288 | %{__make} |
1240656c | 289 | cd .. |
9128f30b | 290 | %endif |
291 | ||
9d57cad8 | 292 | # framebuffer |
6af50621 | 293 | %if %{with fb} |
1240656c WF |
294 | mkdir build-fb |
295 | cd build-fb | |
296 | ../%configure \ | |
297 | --with-fb \ | |
298 | --program-suffix=-fb | |
9d57cad8 | 299 | %{__make} |
1240656c | 300 | cd .. |
9d57cad8 | 301 | %endif |
2cde7108 | 302 | |
23bf58cd | 303 | # gtk |
304 | %if %{with gtk} | |
1240656c WF |
305 | mkdir build-gtk |
306 | cd build-gtk | |
307 | ../%configure \ | |
308 | --with-gtk \ | |
309 | --program-suffix=-gtk | |
23bf58cd | 310 | %{__make} |
1240656c | 311 | cd .. |
23bf58cd | 312 | %endif |
313 | ||
314 | # gtk3 | |
315 | %if %{with gtk3} | |
1240656c WF |
316 | mkdir build-gtk3 |
317 | cd build-gtk3 | |
318 | ../%configure \ | |
3bcbbbcf | 319 | --with-gtk \ |
1240656c WF |
320 | --enable-gtk3 \ |
321 | --program-suffix=-gtk3 | |
23bf58cd | 322 | %{__make} |
1240656c | 323 | cd .. |
23bf58cd | 324 | %endif |
325 | ||
9128f30b | 326 | %install |
327 | rm -rf $RPM_BUILD_ROOT | |
1240656c WF |
328 | %if %{with sdl} |
329 | %{__make} -C build-sdl install \ | |
330 | DESTDIR=$RPM_BUILD_ROOT | |
331 | %endif | |
332 | ||
333 | %if %{with svga} | |
334 | %{__make} -C build-svga install \ | |
335 | DESTDIR=$RPM_BUILD_ROOT | |
336 | %endif | |
337 | ||
338 | %if %{with fb} | |
339 | %{__make} -C build-fb install \ | |
340 | DESTDIR=$RPM_BUILD_ROOT | |
341 | %endif | |
cb86401f | 342 | |
1240656c WF |
343 | %if %{with gtk} |
344 | %{__make} -C build-gtk install \ | |
b5c19b2d | 345 | DESTDIR=$RPM_BUILD_ROOT |
1240656c WF |
346 | %endif |
347 | ||
348 | %if %{with gtk3} | |
349 | %{__make} -C build-gtk3 install \ | |
350 | DESTDIR=$RPM_BUILD_ROOT | |
351 | %endif | |
9128f30b | 352 | |
87c5873c | 353 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name} |
9128f30b | 354 | |
355 | %clean | |
356 | rm -rf $RPM_BUILD_ROOT | |
357 | ||
358 | %files common | |
359 | %defattr(644,root,root,755) | |
1240656c | 360 | %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/*.txt |
cb86401f | 361 | %{_datadir}/%{name} |
9128f30b | 362 | |
6af50621 | 363 | %if %{with fb} |
2cde7108 | 364 | %files fb |
365 | %defattr(644,root,root,755) | |
366 | %attr(755,root,root) %{_bindir}/fuse-fb | |
1240656c | 367 | %{_mandir}/man1/fuse-fb.1* |
9d57cad8 | 368 | %endif |
369 | ||
23bf58cd | 370 | %if %{with gtk} |
371 | %files gtk | |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_bindir}/fuse-gtk | |
1240656c | 374 | %{_mandir}/man1/fuse-gtk.1* |
23bf58cd | 375 | %endif |
376 | ||
377 | %if %{with gtk3} | |
378 | %files gtk3 | |
379 | %defattr(644,root,root,755) | |
380 | %attr(755,root,root) %{_bindir}/fuse-gtk3 | |
1240656c | 381 | %{_mandir}/man1/fuse-gtk3.1* |
23bf58cd | 382 | %endif |
383 | ||
6af50621 | 384 | %if %{with sdl} |
9d57cad8 | 385 | %files sdl |
386 | %defattr(644,root,root,755) | |
387 | %attr(755,root,root) %{_bindir}/fuse-sdl | |
1240656c | 388 | %{_mandir}/man1/fuse-sdl.1* |
9d57cad8 | 389 | %endif |
2cde7108 | 390 | |
6af50621 | 391 | %if %{with svga} |
9128f30b | 392 | %files svga |
393 | %defattr(644,root,root,755) | |
394 | %attr(755,root,root) %{_bindir}/fuse-svga | |
1240656c | 395 | %{_mandir}/man1/fuse-svga.1* |
23a20042 | 396 | %endif |