]> git.pld-linux.org Git - packages/fuse.git/blob - fuse.spec
- use new bconds, strict internal deps
[packages/fuse.git] / fuse.spec
1 #
2 # Conditional build:
3 %bcond_without svga     # do not build svgalib version
4 %bcond_without x        # do not build X11 version
5 %bcond_without fb       # do not build framebuffer version
6 %bcond_without sdl      # do not build SDL version
7 #
8 %ifnarch %{ix86} alpha ppc
9 %undefine       with_svga
10 %endif
11 Summary:        Free Unix Spectrum Emulator
12 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum
13 Name:           fuse
14 Version:        0.6.2
15 Release:        1
16 License:        GPL
17 Group:          Applications/Emulators
18 Source0:        http://dl.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
19 # Source0-md5:  4195399aaa3a471ea64606f5eb10c6f8
20 URL:            http://fuse-emulator.sourceforge.net/
21 %{?with_sdl:BuildRequires:      SDL-devel}
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 %{?with_x:BuildRequires:        gtk+-devel}
25 BuildRequires:  lib765-devel
26 BuildRequires:  libjsw-devel
27 BuildRequires:  libpng-devel
28 BuildRequires:  libspectrum-devel >= 0.2.1
29 BuildRequires:  libxml2-devel
30 BuildRequires:  perl
31 %{?with_svga:BuildRequires:     svgalib-devel}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 fuse is Free Unix Spectrum Emulator.
36 What Fuse does have:
37
38 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
39   speed on any computer you're likely to try it on (it runs at full
40   speed on a SparcStation 4 unless you do too much graphics intensive
41   stuff).
42 * Support for loading from .tzx files.
43 * Sound emulation.
44
45 %description -l pl
46 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
47 Jego w³a¶ciwo¶ci to:
48
49 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
50 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
51 * D¼wiêk.
52
53 %package common
54 Summary:        Free Unix Spectrum Emulator (common files)
55 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum (pliki wspólne)
56 Group:          Applications/Emulators
57
58 %description common
59 fuse is Free Unix Spectrum Emulator.
60 What Fuse does have:
61
62 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
63   speed on any computer you're likely to try it on (it runs at full
64   speed on a SparcStation 4 unless you do too much graphics intensive
65   stuff).
66 * Support for loading from .tzx files.
67 * Sound.
68
69 This package contains common files for all versions.
70
71 %description common -l pl
72 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
73 Jego w³a¶ciwo¶ci to:
74
75 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
76 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
77 * D¼wiêk.
78 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
79
80 W tym pakiecie znajduj± siê wspólne pliki dla wszystkich wersji.
81
82 %package fb
83 Summary:        Free Unix Spectrum Emulator (framebuffer version)
84 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer)
85 Group:          Applications/Emulators
86 Requires:       %{name}-common = %{version}-%{release}
87
88 %description fb
89 fuse is Free Unix Spectrum Emulator.
90 What Fuse does have:
91
92 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
93   speed on any computer you're likely to try it on (it runs at full
94   speed on a SparcStation 4 unless you do too much graphics intensive
95   stuff).
96 * Support for loading from .tzx files.
97 * Sound.
98
99 This package contains files for framebuffer version.
100
101 %description fb -l pl
102 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
103 Jego w³a¶ciwo¶ci to:
104
105 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
106 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
107 * D¼wiêk.
108
109 W tym pakiecie znajduj± siê pliki dla wersji korzystaj±cej z
110 framebuffera.
111
112 %package sdl
113 Summary:        Free Unix Spectrum Emulator (SDL version)
114 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum (wersja na SDL)
115 Group:          Applications/Emulators
116 Requires:       %{name}-common = %{version}-%{release}
117
118 %description sdl
119 fuse is Free Unix Spectrum Emulator.
120 What Fuse does have:
121
122 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
123   speed on any computer you're likely to try it on (it runs at full
124   speed on a SparcStation 4 unless you do too much graphics intensive
125   stuff).
126 * Support for loading from .tzx files.
127 * Sound.
128
129 This package contains files for SDL version.
130
131 %description sdl -l pl
132 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
133 Jego w³a¶ciwo¶ci to:
134
135 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
136 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
137 * D¼wiêk.
138
139 W tym pakiecie znajduj± siê pliki dla wersji korzystaj±cej z SDL.
140
141 %package svga
142 Summary:        Free Unix Spectrum Emulator (svga version)
143 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum (wersja na svgalib)
144 Group:          Applications/Emulators
145 Requires:       %{name}-common = %{version}-%{release}
146
147 %description svga
148 fuse is Free Unix Spectrum Emulator.
149 What Fuse does have:
150
151 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
152   speed on any computer you're likely to try it on (it runs at full
153   speed on a SparcStation 4 unless you do too much graphics intensive
154   stuff).
155 * Support for loading from .tzx files.
156 * Sound.
157
158 This package contains files for svga version.
159
160 %description svga -l pl
161 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
162 Jego w³a¶ciwo¶ci to:
163
164 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
165 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
166 * D¼wiêk.
167
168 W tym pakiecie znajduj± siê pliki dla wersji korzystaj±cej z svgalib.
169
170 %package X11
171 Summary:        Free Unix Spectrum Emulator (X11 version)
172 Summary(pl):    Darmowy uniksowy emulator ZX Spectrum (wersja na XWindow)
173 Group:          Applications/Emulators
174 Requires:       %{name}-common = %{version}-%{release}
175
176 %description X11
177 fuse is Free Unix Spectrum Emulator.
178 What Fuse does have:
179
180 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
181   speed on any computer you're likely to try it on (it runs at full
182   speed on a SparcStation 4 unless you do too much graphics intensive
183   stuff).
184 * Support for loading from .tzx files.
185 * Sound.
186
187 This package contains files for X11 version.
188
189 %description X11 -l pl
190 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
191 Jego w³a¶ciwo¶ci to:
192
193 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
194 * Mo¿liwo¶æ ³adowania programów z plików .tzx.
195 * D¼wiêk.
196
197 W tym pakiecie znajduj± siê pliki dla wersji X11.
198
199 %prep
200 %setup -q
201 touch ui/sdl/sdljoystick.h
202
203 %build
204 %{__aclocal}
205 %{__autoheader}
206 %{__autoconf}
207 %{__automake}
208
209 # X11
210 %if %{with x}
211 %configure  \
212         --disable-ui-joystick \
213         --with-joystick \
214         --with-gtk
215 %{__make} clean
216 %{__make}
217 cp -f ./fuse ./fuse-x11
218 %endif
219
220 # SDL
221 %if %{with sdl}
222 %configure \
223         --disable-ui-joystick \
224         --with-joystick \
225         --with-sdl
226 %{__make} clean
227 %{__make}
228 cp -f ./fuse ./fuse-sdl
229 %endif
230
231 # svga
232 %if %{with svga}
233 %configure \
234         --disable-ui-joystick \
235         --with-joystick \
236         --with-svgalib
237 %{__make} clean
238 %{__make}
239 cp -f ./fuse ./fuse-svga
240 %endif
241
242 # framebuffer
243 %if %{with fb}
244 %configure \
245         --with-joystick \
246         --with-fb
247 %{__make} clean
248 %{__make}
249 cp -f ./fuse ./fuse-fb
250 %endif
251
252 %install
253 rm -rf $RPM_BUILD_ROOT
254
255 %{__make} install \
256         DESTDIR=$RPM_BUILD_ROOT
257
258 %{?with_svga:install fuse-svga  $RPM_BUILD_ROOT%{_bindir}}
259 %{?with_x:install fuse-x11              $RPM_BUILD_ROOT%{_bindir}}
260 %{?with_fb:install fuse-fb              $RPM_BUILD_ROOT%{_bindir}}
261 %{?with_sdl:install fuse-sdl    $RPM_BUILD_ROOT%{_bindir}}
262
263 %clean
264 rm -rf $RPM_BUILD_ROOT
265
266 %files common
267 %defattr(644,root,root,755)
268 %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/*
269 %{_datadir}/%{name}
270 %{_mandir}/man1/*
271
272 %if %{with fb}
273 %files fb
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/fuse-fb
276 %endif
277
278 %if %{with sdl}
279 %files sdl
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_bindir}/fuse-sdl
282 %endif
283
284 %if %{with svga}
285 %files svga
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_bindir}/fuse-svga
288 %endif
289
290 %if %{with x}
291 %files X11
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/fuse-x11
294 %endif
This page took 0.045231 seconds and 3 git commands to generate.