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