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