]> git.pld-linux.org Git - packages/fuse.git/blob - fuse.spec
36c94a0da6f42c3629f92d7a77ec2b48c33a0d8d
[packages/fuse.git] / fuse.spec
1 # TODO: Fix issue with the WORDS_BIGENDIAN macro of autoconf-2.63
2 # fuse built using autotools is unusable because of it.
3 #
4 # Conditional build:
5 %bcond_with     svga    # svgalib version
6 %bcond_without  fb      # framebuffer version
7 %bcond_without  gtk     # GTK+ 2 version
8 %bcond_without  gtk3    # GTK+ 3 version
9 %bcond_without  sdl     # SDL version
10 #
11 Summary:        Free Unix Spectrum Emulator
12 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum
13 Name:           fuse
14 Version:        1.1.1
15 Release:        1
16 License:        GPL v2+
17 Group:          Applications/Emulators
18 Source0:        http://download.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
19 # Source0-md5:  858e530ffc04a2ed62dce76ac29b5762
20 URL:            http://fuse-emulator.sourceforge.net/
21 BuildRequires:  SDL-devel >= 1.2.4
22 BuildRequires:  alsa-lib-devel
23 BuildRequires:  autoconf >= 2.59-9
24 BuildRequires:  automake
25 BuildRequires:  glib2-devel >= 1:2.20.0
26 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.18.0}
27 %{?with_gtk3:BuildRequires:     gtk+3-devel}
28 %{?with_fb:BuildRequires:       gpm-devel}
29 BuildRequires:  libpng-devel
30 BuildRequires:  libsamplerate-devel
31 BuildRequires:  libspectrum-devel >= 1.1.1
32 BuildRequires:  libtool >= 2:2
33 BuildRequires:  libxml2-devel >= 2.0.0
34 BuildRequires:  perl-base
35 BuildRequires:  pkgconfig
36 %{?with_svga:BuildRequires:     svgalib-devel}
37 BuildRequires:  xorg-lib-libX11-devel
38 BuildRequires:  zlib-devel
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 fuse is Free Unix Spectrum Emulator.
43 What Fuse does have:
44
45 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
46   speed on any computer you're likely to try it on (it runs at full
47   speed on a SparcStation 4 unless you do too much graphics intensive
48   stuff).
49 * Support for loading from .tzx files.
50 * Sound emulation.
51 * Emulation of several printers for ZX Spectrum.
52
53 %description -l pl.UTF-8
54 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
55 Jego właściwości to:
56
57 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
58 * Możliwość ładowania programów z plików .tzx.
59 * Dźwięk.
60 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
61
62 %package common
63 Summary:        Free Unix Spectrum Emulator (common files)
64 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (pliki wspólne)
65 Group:          Applications/Emulators
66 Requires:       glib2 >= 1:2.20.0
67 Requires:       libspectrum >= 0.4.0
68
69 %description common
70 fuse is Free Unix Spectrum Emulator.
71 What Fuse does have:
72
73 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
74   speed on any computer you're likely to try it on (it runs at full
75   speed on a SparcStation 4 unless you do too much graphics intensive
76   stuff).
77 * Support for loading from .tzx files.
78 * Sound emulation.
79 * Emulation of several printers for ZX Spectrum.
80
81 This package contains common files for all versions.
82
83 %description common -l pl.UTF-8
84 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
85 Jego właściwości to:
86
87 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
88 * Możliwość ładowania programów z plików .tzx.
89 * Dźwięk.
90 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
91
92 W tym pakiecie znajdują się wspólne pliki dla wszystkich wersji.
93
94 %package fb
95 Summary:        Free Unix Spectrum Emulator (framebuffer version)
96 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer)
97 Group:          Applications/Emulators
98 Requires:       %{name}-common = %{version}-%{release}
99
100 %description fb
101 fuse is Free Unix Spectrum Emulator.
102 What Fuse does have:
103
104 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
105   speed on any computer you're likely to try it on (it runs at full
106   speed on a SparcStation 4 unless you do too much graphics intensive
107   stuff).
108 * Support for loading from .tzx files.
109 * Sound emulation.
110 * Emulation of several printers for ZX Spectrum.
111
112 This package contains files for framebuffer version.
113
114 %description fb -l pl.UTF-8
115 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
116 Jego właściwości to:
117
118 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
119 * Możliwość ładowania programów z plików .tzx.
120 * Dźwięk.
121 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
122
123 W tym pakiecie znajdują się pliki dla wersji korzystającej z
124 framebuffera.
125
126 %package sdl
127 Summary:        Free Unix Spectrum Emulator (SDL version)
128 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na SDL)
129 Group:          Applications/Emulators
130 Requires:       %{name}-common = %{version}-%{release}
131 Requires:       SDL >= 1.2.4
132
133 %description sdl
134 fuse is Free Unix Spectrum Emulator.
135 What Fuse does have:
136
137 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
138   speed on any computer you're likely to try it on (it runs at full
139   speed on a SparcStation 4 unless you do too much graphics intensive
140   stuff).
141 * Support for loading from .tzx files.
142 * Sound emulation.
143 * Emulation of several printers for ZX Spectrum.
144
145 This package contains files for SDL version.
146
147 %description sdl -l pl.UTF-8
148 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
149 Jego właściwości to:
150
151 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
152 * Możliwość ładowania programów z plików .tzx.
153 * Dźwięk.
154 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
155
156 W tym pakiecie znajdują się pliki dla wersji korzystającej z SDL.
157
158 %package svga
159 Summary:        Free Unix Spectrum Emulator (svga version)
160 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na svgalib)
161 Group:          Applications/Emulators
162 Requires:       %{name}-common = %{version}-%{release}
163
164 %description svga
165 fuse is Free Unix Spectrum Emulator.
166 What Fuse does have:
167
168 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
169   speed on any computer you're likely to try it on (it runs at full
170   speed on a SparcStation 4 unless you do too much graphics intensive
171   stuff).
172 * Support for loading from .tzx files.
173 * Sound emulation.
174 * Emulation of several printers for ZX Spectrum.
175
176 This package contains files for svga version.
177
178 %description svga -l pl.UTF-8
179 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
180 Jego właściwości to:
181
182 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
183 * Możliwość ładowania programów z plików .tzx.
184 * Dźwięk.
185 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
186
187 W tym pakiecie znajdują się pliki dla wersji korzystającej z svgalib.
188
189 %package gtk
190 Summary:        Free Unix Spectrum Emulator (GTK+ 2 version)
191 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 2)
192 Group:          Applications/Emulators
193 Requires:       %{name}-common = %{version}-%{release}
194 Requires:       gtk+2 >= 2:2.18.0
195 Obsoletes:      fuse-X11
196
197 %description gtk
198 fuse is Free Unix Spectrum Emulator.
199 What Fuse does have:
200
201 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
202   speed on any computer you're likely to try it on (it runs at full
203   speed on a SparcStation 4 unless you do too much graphics intensive
204   stuff).
205 * Support for loading from .tzx files.
206 * Sound emulation.
207 * Emulation of several printers for ZX Spectrum.
208
209 This package contains files for GTK+ 2 version.
210
211 %description gtk -l pl.UTF-8
212 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
213 Jego właściwości to:
214
215 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
216 * Możliwość ładowania programów z plików .tzx.
217 * Dźwięk.
218 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
219
220 W tym pakiecie znajdują się pliki dla wersji GTK+ 2.
221
222 %package gtk3
223 Summary:        Free Unix Spectrum Emulator (GTK+ 3 version)
224 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja GTK+ 3)
225 Group:          Applications/Emulators
226 Requires:       %{name}-common = %{version}-%{release}
227 Obsoletes:      fuse-X11
228
229 %description gtk3
230 fuse is Free Unix Spectrum Emulator.
231 What Fuse does have:
232
233 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
234   speed on any computer you're likely to try it on (it runs at full
235   speed on a SparcStation 4 unless you do too much graphics intensive
236   stuff).
237 * Support for loading from .tzx files.
238 * Sound emulation.
239 * Emulation of several printers for ZX Spectrum.
240
241 This package contains files for GTK+ 3 version.
242
243 %description gtk3 -l pl.UTF-8
244 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
245 Jego właściwości to:
246
247 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
248 * Możliwość ładowania programów z plików .tzx.
249 * Dźwięk.
250 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
251
252 W tym pakiecie znajdują się pliki dla wersji GTK+ 3.
253
254 %prep
255 %setup -q
256
257 %build
258 #%{__libtoolize}
259 #%{__aclocal}
260 #%{__autoheader}
261 #%{__autoconf}
262 #%{__automake}
263
264 # SDL
265 %if %{with sdl}
266 %configure \
267         --with-sdl
268 %{__make} clean
269 %{__make}
270 cp -f fuse fuse-sdl
271 %endif
272
273 # svga
274 %if %{with svga}
275 %configure \
276         --with-svgalib
277 %{__make} clean
278 %{__make}
279 cp -f fuse fuse-svga
280 %endif
281
282 # framebuffer
283 %if %{with fb}
284 %configure \
285         --with-fb
286 %{__make} clean
287 %{__make}
288 cp -f fuse fuse-fb
289 %endif
290
291 # These two must be the last, because they install menu_data.ui
292 # gtk
293 %if %{with gtk}
294 %configure  \
295         --with-gtk
296 %{__make} clean
297 %{__make}
298 cp -f fuse fuse-gtk
299 %endif
300
301 # gtk3
302 %if %{with gtk3}
303 %configure  \
304         --with-gtk \
305         --enable-gtk3
306 %{__make} clean
307 %{__make}
308 cp -f fuse fuse-gtk3
309 %endif
310
311 %install
312 rm -rf $RPM_BUILD_ROOT
313
314 %{__make} install \
315         DESTDIR=$RPM_BUILD_ROOT
316
317 %{?with_svga:install fuse-svga  $RPM_BUILD_ROOT%{_bindir}}
318 %{?with_gtk:install fuse-gtk    $RPM_BUILD_ROOT%{_bindir}}
319 %{?with_gtk3:install fuse-gtk3  $RPM_BUILD_ROOT%{_bindir}}
320 %{?with_fb:install fuse-fb      $RPM_BUILD_ROOT%{_bindir}}
321 %{?with_sdl:install fuse-sdl    $RPM_BUILD_ROOT%{_bindir}}
322
323 %clean
324 rm -rf $RPM_BUILD_ROOT
325
326 %files common
327 %defattr(644,root,root,755)
328 %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/ChangeLog hacking/*.txt
329 %{_datadir}/%{name}
330 %{_mandir}/man1/fuse.1*
331
332 %if %{with fb}
333 %files fb
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_bindir}/fuse-fb
336 %endif
337
338 %if %{with gtk}
339 %files gtk
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/fuse-gtk
342 %endif
343
344 %if %{with gtk3}
345 %files gtk3
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_bindir}/fuse-gtk3
348 %endif
349
350 %if %{with sdl}
351 %files sdl
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/fuse-sdl
354 %endif
355
356 %if %{with svga}
357 %files svga
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_bindir}/fuse-svga
360 %endif
This page took 0.125306 seconds and 2 git commands to generate.