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