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