]> git.pld-linux.org Git - packages/fuse.git/blob - fuse.spec
Release 5 (by relup.sh)
[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 %define         libspectrumver  1.4.2
11 Summary:        Free Unix Spectrum Emulator
12 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum
13 Name:           fuse
14 Version:        1.5.3
15 Release:        1
16 License:        GPL v2+
17 Group:          Applications/Emulators
18 Source0:        http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
19 # Source0-md5:  8bbee33be6725ee86e8ab1a6b535326a
20 Source1:        ti_m397.rom
21 # Source1-md5:  8c61b20e1f7666ff80ad7f48bb2b10c0
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 >= %{libspectrumver}
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 %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 >= %{libspectrumver}
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
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 %define common_opts \\\
283         --disable-silent-rules \\\
284         --with-bash-completion-dir=%{bash_compdir} \\\
285         %{nil}
286 # SDL
287 %if %{with sdl}
288 mkdir build-sdl
289 cd build-sdl
290 ../%configure \
291         %{common_opts} \
292         --program-suffix=-sdl \
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         %{common_opts} \
304         --program-suffix=-svga \
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         %{common_opts} \
316         --program-suffix=-fb \
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         %{common_opts} \
332         --program-suffix=-gtk \
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         %{common_opts} \
348         --enable-gtk3 \
349         --program-suffix=-gtk3 \
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 ChangeLog 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.088903 seconds and 3 git commands to generate.