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