]>
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 |
a171cf5e | 14 | Version: 1.1.1 |
87c5873c | 15 | Release: 6 |
1ed57557 | 16 | License: GPL v2+ |
9128f30b | 17 | Group: Applications/Emulators |
87c5873c | 18 | Source0: http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz |
a171cf5e | 19 | # Source0-md5: 858e530ffc04a2ed62dce76ac29b5762 |
87c5873c WF |
20 | Source1: ti_m397.rom |
21 | # Source1-md5: d23c2d692f0b9d969f5f303c770a07fd | |
22 | Patch0: fuse-1.1.1.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 |
a171cf5e | 35 | BuildRequires: libspectrum-devel >= 1.1.1 |
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 | |
87c5873c | 263 | %patch0 -p1 |
18788b42 | 264 | #%{__libtoolize} |
265 | #%{__aclocal} | |
266 | #%{__autoheader} | |
267 | #%{__autoconf} | |
268 | #%{__automake} | |
9d57cad8 | 269 | |
9d57cad8 | 270 | # SDL |
6af50621 | 271 | %if %{with sdl} |
9d57cad8 | 272 | %configure \ |
273 | --with-sdl | |
9128f30b | 274 | %{__make} clean |
9d57cad8 | 275 | %{__make} |
1ed57557 | 276 | cp -f fuse fuse-sdl |
9d57cad8 | 277 | %endif |
278 | ||
279 | # svga | |
6af50621 | 280 | %if %{with svga} |
72d4adbf | 281 | %configure \ |
72d4adbf | 282 | --with-svgalib |
9d57cad8 | 283 | %{__make} clean |
284 | %{__make} | |
1ed57557 | 285 | cp -f fuse fuse-svga |
9128f30b | 286 | %endif |
287 | ||
9d57cad8 | 288 | # framebuffer |
6af50621 | 289 | %if %{with fb} |
2cde7108 | 290 | %configure \ |
9d57cad8 | 291 | --with-fb |
292 | %{__make} clean | |
293 | %{__make} | |
1ed57557 | 294 | cp -f fuse fuse-fb |
9d57cad8 | 295 | %endif |
2cde7108 | 296 | |
23bf58cd | 297 | # These two must be the last, because they install menu_data.ui |
298 | # gtk | |
299 | %if %{with gtk} | |
300 | %configure \ | |
23bf58cd | 301 | --with-gtk |
302 | %{__make} clean | |
303 | %{__make} | |
304 | cp -f fuse fuse-gtk | |
305 | %endif | |
306 | ||
307 | # gtk3 | |
308 | %if %{with gtk3} | |
309 | %configure \ | |
3bcbbbcf | 310 | --with-gtk \ |
23bf58cd | 311 | --enable-gtk3 |
312 | %{__make} clean | |
313 | %{__make} | |
314 | cp -f fuse fuse-gtk3 | |
315 | %endif | |
316 | ||
9128f30b | 317 | %install |
318 | rm -rf $RPM_BUILD_ROOT | |
cb86401f | 319 | |
b5c19b2d PG |
320 | %{__make} install \ |
321 | DESTDIR=$RPM_BUILD_ROOT | |
9128f30b | 322 | |
6af50621 | 323 | %{?with_svga:install fuse-svga $RPM_BUILD_ROOT%{_bindir}} |
23bf58cd | 324 | %{?with_gtk:install fuse-gtk $RPM_BUILD_ROOT%{_bindir}} |
325 | %{?with_gtk3:install fuse-gtk3 $RPM_BUILD_ROOT%{_bindir}} | |
1ed57557 | 326 | %{?with_fb:install fuse-fb $RPM_BUILD_ROOT%{_bindir}} |
6af50621 | 327 | %{?with_sdl:install fuse-sdl $RPM_BUILD_ROOT%{_bindir}} |
88d18b79 | 328 | install ui/widget/fuse.font $RPM_BUILD_ROOT%{_datadir}/%{name} |
87c5873c | 329 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name} |
9128f30b | 330 | |
331 | %clean | |
332 | rm -rf $RPM_BUILD_ROOT | |
333 | ||
334 | %files common | |
335 | %defattr(644,root,root,755) | |
23bf58cd | 336 | %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/ChangeLog hacking/*.txt |
cb86401f | 337 | %{_datadir}/%{name} |
1ed57557 | 338 | %{_mandir}/man1/fuse.1* |
9128f30b | 339 | |
6af50621 | 340 | %if %{with fb} |
2cde7108 | 341 | %files fb |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_bindir}/fuse-fb | |
9d57cad8 | 344 | %endif |
345 | ||
23bf58cd | 346 | %if %{with gtk} |
347 | %files gtk | |
348 | %defattr(644,root,root,755) | |
349 | %attr(755,root,root) %{_bindir}/fuse-gtk | |
350 | %endif | |
351 | ||
352 | %if %{with gtk3} | |
353 | %files gtk3 | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_bindir}/fuse-gtk3 | |
356 | %endif | |
357 | ||
6af50621 | 358 | %if %{with sdl} |
9d57cad8 | 359 | %files sdl |
360 | %defattr(644,root,root,755) | |
361 | %attr(755,root,root) %{_bindir}/fuse-sdl | |
362 | %endif | |
2cde7108 | 363 | |
6af50621 | 364 | %if %{with svga} |
9128f30b | 365 | %files svga |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{_bindir}/fuse-svga | |
23a20042 | 368 | %endif |