]> git.pld-linux.org Git - packages/fuse.git/blame - fuse.spec
- updated to 1.5.3
[packages/fuse.git] / fuse.spec
CommitLineData
830ee63a 1#
9d57cad8 2# Conditional build:
3bcbbbcf
JB
3%bcond_with svga # svgalib version
4%bcond_without fb # framebuffer version
40afd244 5%bcond_without gtk2 # GTK+ 2 version
3bcbbbcf
JB
6%bcond_without gtk3 # GTK+ 3 version
7%bcond_without sdl # SDL version
8e39874e 8%bcond_without libao # libao instead of alsa
6af50621 9#
77f90f24 10%define libspectrumver 1.4.2
9128f30b 11Summary: Free Unix Spectrum Emulator
aefab7a2 12Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum
9128f30b 13Name: fuse
77f90f24 14Version: 1.5.3
2e4668f0 15Release: 1
1ed57557 16License: GPL v2+
9128f30b 17Group: Applications/Emulators
87c5873c 18Source0: http://downloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
77f90f24 19# Source0-md5: 8bbee33be6725ee86e8ab1a6b535326a
87c5873c 20Source1: ti_m397.rom
c71d7a17 21# Source1-md5: 8c61b20e1f7666ff80ad7f48bb2b10c0
72d9889b 22URL: http://fuse-emulator.sourceforge.net/
23bf58cd 23BuildRequires: SDL-devel >= 1.2.4
c7190618 24%{!?with_libao:BuildRequires: alsa-lib-devel}
23d994ff 25BuildRequires: autoconf >= 2.59-9
26BuildRequires: automake
3bcbbbcf 27BuildRequires: glib2-devel >= 1:2.20.0
ec58fc02 28%{?with_fb:BuildRequires: gpm-devel}
40afd244
JB
29%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.18.0}
30%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
c7190618 31%{?with_libao:BuildRequires: libao-devel}
abb1d23d 32BuildRequires: libjsw-devel
acbcc23e 33BuildRequires: libmount-devel
9d57cad8 34BuildRequires: libpng-devel
3eff276c 35BuildRequires: libsamplerate-devel
0ceddc27 36BuildRequires: libspectrum-devel >= %{libspectrumver}
3bcbbbcf 37BuildRequires: libtool >= 2:2
a8da872e 38BuildRequires: libxml2-devel >= 2.0.0
3eff276c 39BuildRequires: perl-base
83a91b44 40BuildRequires: pkgconfig
ec58fc02 41BuildRequires: rpmbuild(macros) >= 1.697
40afd244 42BuildRequires: sed >= 4.0
6af50621 43%{?with_svga:BuildRequires: svgalib-devel}
3bcbbbcf
JB
44BuildRequires: xorg-lib-libX11-devel
45BuildRequires: zlib-devel
9128f30b 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49fuse is Free Unix Spectrum Emulator.
50What 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.
23d994ff 58* Emulation of several printers for ZX Spectrum.
9128f30b 59
7dd50860 60%description -l pl.UTF-8
9128f30b 61fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 62Jego właściwości to:
9128f30b 63
64* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
65* Możliwość ładowania programów z plików .tzx.
66* Dźwięk.
23d994ff 67* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
9128f30b 68
69%package common
70Summary: Free Unix Spectrum Emulator (common files)
aefab7a2 71Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (pliki wspólne)
9128f30b 72Group: Applications/Emulators
3bcbbbcf 73Requires: glib2 >= 1:2.20.0
0ceddc27 74Requires: libspectrum >= %{libspectrumver}
88291491 75Suggests: fdd3000e
9128f30b 76
77%description common
78fuse is Free Unix Spectrum Emulator.
79What 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.
23d994ff 86* Sound emulation.
87* Emulation of several printers for ZX Spectrum.
9128f30b 88
cb86401f 89This package contains common files for all versions.
9128f30b 90
7dd50860 91%description common -l pl.UTF-8
9128f30b 92fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 93Jego właściwości to:
9128f30b 94
95* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
96* Możliwość ładowania programów z plików .tzx.
97* Dźwięk.
9128f30b 98* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
99
7dd50860 100W tym pakiecie znajdują się wspólne pliki dla wszystkich wersji.
9128f30b 101
2cde7108 102%package fb
103Summary: Free Unix Spectrum Emulator (framebuffer version)
aefab7a2 104Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer)
2cde7108 105Group: Applications/Emulators
6af50621 106Requires: %{name}-common = %{version}-%{release}
2cde7108 107
108%description fb
109fuse is Free Unix Spectrum Emulator.
110What 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.
23d994ff 117* Sound emulation.
118* Emulation of several printers for ZX Spectrum.
2cde7108 119
120This package contains files for framebuffer version.
121
7dd50860 122%description fb -l pl.UTF-8
2cde7108 123fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 124Jego właściwości to:
2cde7108 125
126* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
127* Możliwość ładowania programów z plików .tzx.
128* Dźwięk.
23d994ff 129* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
2cde7108 130
7dd50860 131W tym pakiecie znajdują się pliki dla wersji korzystającej z
623e5403 132framebuffera.
9d57cad8 133
9d57cad8 134%package sdl
135Summary: Free Unix Spectrum Emulator (SDL version)
aefab7a2 136Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na SDL)
9d57cad8 137Group: Applications/Emulators
6af50621 138Requires: %{name}-common = %{version}-%{release}
a8da872e 139Requires: SDL >= 1.2.4
9d57cad8 140
141%description sdl
142fuse is Free Unix Spectrum Emulator.
143What 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.
23d994ff 150* Sound emulation.
151* Emulation of several printers for ZX Spectrum.
9d57cad8 152
153This package contains files for SDL version.
154
7dd50860 155%description sdl -l pl.UTF-8
9d57cad8 156fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 157Jego właściwości to:
9d57cad8 158
159* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
160* Możliwość ładowania programów z plików .tzx.
161* Dźwięk.
23d994ff 162* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
9d57cad8 163
7dd50860 164W tym pakiecie znajdują się pliki dla wersji korzystającej z SDL.
9d57cad8 165
9128f30b 166%package svga
167Summary: Free Unix Spectrum Emulator (svga version)
aefab7a2 168Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja na svgalib)
9128f30b 169Group: Applications/Emulators
6af50621 170Requires: %{name}-common = %{version}-%{release}
9128f30b 171
172%description svga
173fuse is Free Unix Spectrum Emulator.
174What 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.
23d994ff 181* Sound emulation.
182* Emulation of several printers for ZX Spectrum.
9128f30b 183
184This package contains files for svga version.
185
7dd50860 186%description svga -l pl.UTF-8
9128f30b 187fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 188Jego właściwości to:
9128f30b 189
190* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
191* Możliwość ładowania programów z plików .tzx.
192* Dźwięk.
23d994ff 193* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
9128f30b 194
7dd50860 195W tym pakiecie znajdują się pliki dla wersji korzystającej z svgalib.
9128f30b 196
23bf58cd 197%package gtk
3bcbbbcf
JB
198Summary: Free Unix Spectrum Emulator (GTK+ 2 version)
199Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 2)
9128f30b 200Group: Applications/Emulators
6af50621 201Requires: %{name}-common = %{version}-%{release}
3bcbbbcf
JB
202Requires: gtk+2 >= 2:2.18.0
203Obsoletes: fuse-X11
9128f30b 204
23bf58cd 205%description gtk
9128f30b 206fuse is Free Unix Spectrum Emulator.
207What 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.
23d994ff 214* Sound emulation.
215* Emulation of several printers for ZX Spectrum.
9128f30b 216
3bcbbbcf 217This package contains files for GTK+ 2 version.
9128f30b 218
23bf58cd 219%description gtk -l pl.UTF-8
9128f30b 220fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
7dd50860 221Jego właściwości to:
9128f30b 222
223* Emulacja ZX Spectrum 48K/128K/+2/+2A.
7dd50860
JR
224* Możliwość ładowania programów z plików .tzx.
225* Dźwięk.
23d994ff 226* Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
9128f30b 227
3bcbbbcf 228W tym pakiecie znajdują się pliki dla wersji GTK+ 2.
23bf58cd 229
230%package gtk3
3bcbbbcf
JB
231Summary: Free Unix Spectrum Emulator (GTK+ 3 version)
232Summary(pl.UTF-8): Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 3)
23bf58cd 233Group: Applications/Emulators
23bf58cd 234Requires: %{name}-common = %{version}-%{release}
3bcbbbcf 235Obsoletes: fuse-X11
23bf58cd 236
237%description gtk3
238fuse is Free Unix Spectrum Emulator.
239What 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
3bcbbbcf 249This package contains files for GTK+ 3 version.
23bf58cd 250
251%description gtk3 -l pl.UTF-8
252fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
253Jego 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
3bcbbbcf 260W tym pakiecie znajdują się pliki dla wersji GTK+ 3.
9128f30b 261
40afd244
JB
262%package -n bash-completion-fuse
263Summary: Bash completion for FUSE emulator commands
264Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń emulatora FUSE
265Group: Applications/Shells
266Requires: %{name}-common = %{version}-%{release}
267Requires: bash-completion >= 2.0
268
269%description -n bash-completion-fuse
270Bash completion for FUSE emulator commands.
271
272%description -n bash-completion-fuse -l pl.UTF-8
273Bashowe dopełnianie składni poleceń emulatora FUSE.
274
9128f30b 275%prep
276%setup -q
40afd244
JB
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
9128f30b 280
281%build
672dd998
JB
282%define common_opts \\\
283 --disable-silent-rules \\\
284 --with-bash-completion-dir=%{bash_compdir} \\\
285 %{nil}
9d57cad8 286# SDL
6af50621 287%if %{with sdl}
1240656c
WF
288mkdir build-sdl
289cd build-sdl
290../%configure \
672dd998 291 %{common_opts} \
40afd244 292 --program-suffix=-sdl \
40afd244 293 --with-sdl
ec58fc02 294%{__make}
1240656c 295cd ..
9d57cad8 296%endif
297
298# svga
6af50621 299%if %{with svga}
1240656c
WF
300mkdir build-svga
301cd build-svga
302../%configure \
672dd998 303 %{common_opts} \
40afd244 304 --program-suffix=-svga \
40afd244 305 --with-svgalib
ec58fc02 306%{__make}
1240656c 307cd ..
9128f30b 308%endif
309
9d57cad8 310# framebuffer
6af50621 311%if %{with fb}
1240656c
WF
312mkdir build-fb
313cd build-fb
314../%configure \
672dd998 315 %{common_opts} \
40afd244 316 --program-suffix=-fb \
2408f8ba 317%if %{with libao}
c7190618
WF
318 --without-alsa \
319 --with-libao \
320%endif
40afd244 321 --with-fb
ec58fc02 322%{__make}
1240656c 323cd ..
9d57cad8 324%endif
2cde7108 325
23bf58cd 326# gtk
40afd244
JB
327%if %{with gtk2}
328mkdir build-gtk2
329cd build-gtk2
1240656c 330../%configure \
672dd998 331 %{common_opts} \
40afd244 332 --program-suffix=-gtk \
2408f8ba 333%if %{with libao}
c7190618
WF
334 --without-alsa \
335 --with-libao \
336%endif
40afd244 337 --with-gtk
ec58fc02 338%{__make}
1240656c 339cd ..
23bf58cd 340%endif
341
342# gtk3
343%if %{with gtk3}
1240656c
WF
344mkdir build-gtk3
345cd build-gtk3
346../%configure \
672dd998 347 %{common_opts} \
1240656c 348 --enable-gtk3 \
40afd244 349 --program-suffix=-gtk3 \
2408f8ba 350%if %{with libao}
c7190618
WF
351 --without-alsa \
352 --with-libao \
353%endif
40afd244 354 --with-gtk
ec58fc02 355%{__make}
1240656c 356cd ..
23bf58cd 357%endif
358
9128f30b 359%install
360rm -rf $RPM_BUILD_ROOT
1240656c
WF
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
cb86401f 375
40afd244
JB
376%if %{with gtk2}
377%{__make} -C build-gtk2 install \
b5c19b2d 378 DESTDIR=$RPM_BUILD_ROOT
1240656c
WF
379%endif
380
381%if %{with gtk3}
382%{__make} -C build-gtk3 install \
383 DESTDIR=$RPM_BUILD_ROOT
384%endif
9128f30b 385
ec58fc02 386cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}
9128f30b 387
388%clean
389rm -rf $RPM_BUILD_ROOT
390
391%files common
392%defattr(644,root,root,755)
0ceddc27 393%doc README THANKS AUTHORS ChangeLog keysyms.dat keysyms.pl hacking/*.txt
cb86401f 394%{_datadir}/%{name}
9128f30b 395
6af50621 396%if %{with fb}
2cde7108 397%files fb
398%defattr(644,root,root,755)
399%attr(755,root,root) %{_bindir}/fuse-fb
1240656c 400%{_mandir}/man1/fuse-fb.1*
9d57cad8 401%endif
402
40afd244 403%if %{with gtk2}
23bf58cd 404%files gtk
405%defattr(644,root,root,755)
406%attr(755,root,root) %{_bindir}/fuse-gtk
1240656c 407%{_mandir}/man1/fuse-gtk.1*
23bf58cd 408%endif
409
410%if %{with gtk3}
411%files gtk3
412%defattr(644,root,root,755)
413%attr(755,root,root) %{_bindir}/fuse-gtk3
1240656c 414%{_mandir}/man1/fuse-gtk3.1*
23bf58cd 415%endif
416
6af50621 417%if %{with sdl}
9d57cad8 418%files sdl
419%defattr(644,root,root,755)
420%attr(755,root,root) %{_bindir}/fuse-sdl
1240656c 421%{_mandir}/man1/fuse-sdl.1*
9d57cad8 422%endif
2cde7108 423
6af50621 424%if %{with svga}
9128f30b 425%files svga
426%defattr(644,root,root,755)
427%attr(755,root,root) %{_bindir}/fuse-svga
1240656c 428%{_mandir}/man1/fuse-svga.1*
23a20042 429%endif
40afd244
JB
430
431%files -n bash-completion-fuse
432%defattr(644,root,root,755)
433%{bash_compdir}/fuse
This page took 0.127141 seconds and 4 git commands to generate.