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