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