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