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