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