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