]> git.pld-linux.org Git - packages/fuse.git/blob - fuse.spec
- updated runtime libspectrum version
[packages/fuse.git] / fuse.spec
1 #
2 # Conditional build:
3 %bcond_with     svga    # svgalib version
4 %bcond_without  fb      # framebuffer version
5 %bcond_without  gtk2    # GTK+ 2 version
6 %bcond_without  gtk3    # GTK+ 3 version
7 %bcond_without  sdl     # SDL version
8 #
9 Summary:        Free Unix Spectrum Emulator
10 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum
11 Name:           fuse
12 Version:        1.3.1
13 Release:        1
14 License:        GPL v2+
15 Group:          Applications/Emulators
16 Source0:        http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
17 # Source0-md5:  50016ce765a1834b4514102c309a7830
18 Source1:        ti_m397.rom
19 # Source1-md5:  8c61b20e1f7666ff80ad7f48bb2b10c0
20 Patch0:         fuse-1.1.1-2.patch
21 URL:            http://fuse-emulator.sourceforge.net/
22 BuildRequires:  SDL-devel >= 1.2.4
23 BuildRequires:  alsa-lib-devel
24 BuildRequires:  autoconf >= 2.59-9
25 BuildRequires:  automake
26 BuildRequires:  glib2-devel >= 1:2.20.0
27 %{?with_gtk2:BuildRequires:     gtk+2-devel >= 2:2.18.0}
28 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0}
29 %{?with_fb:BuildRequires:       gpm-devel}
30 BuildRequires:  libjsw-devel
31 BuildRequires:  libmount-devel
32 BuildRequires:  libpng-devel
33 BuildRequires:  libsamplerate-devel
34 BuildRequires:  libspectrum-devel >= 1.3.1
35 BuildRequires:  libtool >= 2:2
36 BuildRequires:  libxml2-devel >= 2.0.0
37 BuildRequires:  perl-base
38 BuildRequires:  pkgconfig
39 BuildRequires:  rpmbuild(macros) >= 1.673
40 BuildRequires:  sed >= 4.0
41 %{?with_svga:BuildRequires:     svgalib-devel}
42 BuildRequires:  xorg-lib-libX11-devel
43 BuildRequires:  zlib-devel
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.
56 * Emulation of several printers for ZX Spectrum.
57
58 %description -l pl.UTF-8
59 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
60 Jego właściwości to:
61
62 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
63 * Możliwość ładowania programów z plików .tzx.
64 * Dźwięk.
65 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
66
67 %package common
68 Summary:        Free Unix Spectrum Emulator (common files)
69 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (pliki wspólne)
70 Group:          Applications/Emulators
71 Requires:       glib2 >= 1:2.20.0
72 Requires:       libspectrum >= 1.3.1
73 Suggests:       fdd3000e
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.
84 * Sound emulation.
85 * Emulation of several printers for ZX Spectrum.
86
87 This package contains common files for all versions.
88
89 %description common -l pl.UTF-8
90 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
91 Jego właściwości to:
92
93 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
94 * Możliwość ładowania programów z plików .tzx.
95 * Dźwięk.
96 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
97
98 W tym pakiecie znajdują się wspólne pliki dla wszystkich wersji.
99
100 %package fb
101 Summary:        Free Unix Spectrum Emulator (framebuffer version)
102 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer)
103 Group:          Applications/Emulators
104 Requires:       %{name}-common = %{version}-%{release}
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.
115 * Sound emulation.
116 * Emulation of several printers for ZX Spectrum.
117
118 This package contains files for framebuffer version.
119
120 %description fb -l pl.UTF-8
121 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
122 Jego właściwości to:
123
124 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
125 * Możliwość ładowania programów z plików .tzx.
126 * Dźwięk.
127 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
128
129 W tym pakiecie znajdują się pliki dla wersji korzystającej z
130 framebuffera.
131
132 %package sdl
133 Summary:        Free Unix Spectrum Emulator (SDL version)
134 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na SDL)
135 Group:          Applications/Emulators
136 Requires:       %{name}-common = %{version}-%{release}
137 Requires:       SDL >= 1.2.4
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.
148 * Sound emulation.
149 * Emulation of several printers for ZX Spectrum.
150
151 This package contains files for SDL version.
152
153 %description sdl -l pl.UTF-8
154 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
155 Jego właściwości to:
156
157 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
158 * Możliwość ładowania programów z plików .tzx.
159 * Dźwięk.
160 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
161
162 W tym pakiecie znajdują się pliki dla wersji korzystającej z SDL.
163
164 %package svga
165 Summary:        Free Unix Spectrum Emulator (svga version)
166 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na svgalib)
167 Group:          Applications/Emulators
168 Requires:       %{name}-common = %{version}-%{release}
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.
179 * Sound emulation.
180 * Emulation of several printers for ZX Spectrum.
181
182 This package contains files for svga version.
183
184 %description svga -l pl.UTF-8
185 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
186 Jego właściwości to:
187
188 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
189 * Możliwość ładowania programów z plików .tzx.
190 * Dźwięk.
191 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
192
193 W tym pakiecie znajdują się pliki dla wersji korzystającej z svgalib.
194
195 %package gtk
196 Summary:        Free Unix Spectrum Emulator (GTK+ 2 version)
197 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 2)
198 Group:          Applications/Emulators
199 Requires:       %{name}-common = %{version}-%{release}
200 Requires:       gtk+2 >= 2:2.18.0
201 Obsoletes:      fuse-X11
202
203 %description gtk
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.
212 * Sound emulation.
213 * Emulation of several printers for ZX Spectrum.
214
215 This package contains files for GTK+ 2 version.
216
217 %description gtk -l pl.UTF-8
218 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
219 Jego właściwości to:
220
221 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
222 * Możliwość ładowania programów z plików .tzx.
223 * Dźwięk.
224 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
225
226 W tym pakiecie znajdują się pliki dla wersji GTK+ 2.
227
228 %package gtk3
229 Summary:        Free Unix Spectrum Emulator (GTK+ 3 version)
230 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 3)
231 Group:          Applications/Emulators
232 Requires:       %{name}-common = %{version}-%{release}
233 Obsoletes:      fuse-X11
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
247 This package contains files for GTK+ 3 version.
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
258 W tym pakiecie znajdują się pliki dla wersji GTK+ 3.
259
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
273 %prep
274 %setup -q
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
280
281 %build
282 #%{__libtoolize}
283 #%{__aclocal} -I m4
284 #%{__autoconf}
285 #%{__autoheader}
286 #%{__automake}
287
288 # SDL
289 %if %{with sdl}
290 mkdir build-sdl
291 cd build-sdl
292 ../%configure \
293         --program-suffix=-sdl \
294         --with-bash-completion-dir=%{bash_compdir} \
295         --with-sdl
296 %{__make}
297 cd ..
298 %endif
299
300 # svga
301 %if %{with svga}
302 mkdir build-svga
303 cd build-svga
304 ../%configure \
305         --program-suffix=-svga \
306         --with-bash-completion-dir=%{bash_compdir} \
307         --with-svgalib
308 %{__make}
309 cd ..
310 %endif
311
312 # framebuffer
313 %if %{with fb}
314 mkdir build-fb
315 cd build-fb
316 ../%configure \
317         --program-suffix=-fb \
318         --with-bash-completion-dir=%{bash_compdir} \
319         --with-fb
320 %{__make}
321 cd ..
322 %endif
323
324 # gtk
325 %if %{with gtk2}
326 mkdir build-gtk2
327 cd build-gtk2
328 ../%configure  \
329         --program-suffix=-gtk \
330         --with-bash-completion-dir=%{bash_compdir} \
331         --with-gtk
332 %{__make}
333 cd ..
334 %endif
335
336 # gtk3
337 %if %{with gtk3}
338 mkdir build-gtk3
339 cd build-gtk3
340 ../%configure  \
341         --enable-gtk3 \
342         --program-suffix=-gtk3 \
343         --with-bash-completion-dir=%{bash_compdir} \
344         --with-gtk
345 %{__make}
346 cd ..
347 %endif
348
349 %install
350 rm -rf $RPM_BUILD_ROOT
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
365
366 %if %{with gtk2}
367 %{__make} -C build-gtk2 install \
368         DESTDIR=$RPM_BUILD_ROOT
369 %endif
370
371 %if %{with gtk3}
372 %{__make} -C build-gtk3 install \
373         DESTDIR=$RPM_BUILD_ROOT
374 %endif
375
376 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}
377
378 %clean
379 rm -rf $RPM_BUILD_ROOT
380
381 %files common
382 %defattr(644,root,root,755)
383 %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/*.txt
384 %{_datadir}/%{name}
385
386 %if %{with fb}
387 %files fb
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_bindir}/fuse-fb
390 %{_mandir}/man1/fuse-fb.1*
391 %endif
392
393 %if %{with gtk2}
394 %files gtk
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_bindir}/fuse-gtk
397 %{_mandir}/man1/fuse-gtk.1*
398 %endif
399
400 %if %{with gtk3}
401 %files gtk3
402 %defattr(644,root,root,755)
403 %attr(755,root,root) %{_bindir}/fuse-gtk3
404 %{_mandir}/man1/fuse-gtk3.1*
405 %endif
406
407 %if %{with sdl}
408 %files sdl
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_bindir}/fuse-sdl
411 %{_mandir}/man1/fuse-sdl.1*
412 %endif
413
414 %if %{with svga}
415 %files svga
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_bindir}/fuse-svga
418 %{_mandir}/man1/fuse-svga.1*
419 %endif
420
421 %files -n bash-completion-fuse
422 %defattr(644,root,root,755)
423 %{bash_compdir}/fuse
This page took 1.428679 seconds and 3 git commands to generate.