]> git.pld-linux.org Git - packages/fuse.git/blob - fuse.spec
- missing files from fuse CVS
[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 Summary:        Free Unix Spectrum Emulator
9 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum
10 Name:           fuse
11 Version:        0.7.0
12 Release:        2
13 License:        GPL
14 Group:          Applications/Emulators
15 Source0:        ftp://ftp.worldofspectrum.org/pub/sinclair/emulators/unix/%{name}-%{version}.tar.gz
16 # Source0-md5:  d81ad260cd6a8dd533af01ee6a5f9527
17 Patch0:         %{name}-gcc4.patch
18 Patch1:         %{name}-fb.patch
19 URL:            http://fuse-emulator.sourceforge.net/
20 %{?with_sdl:BuildRequires:      SDL-devel >= 1.2.4}
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 %{?with_x:BuildRequires:        gtk+2-devel >= 1:2.0.0}
24 BuildRequires:  lib765-devel
25 BuildRequires:  libjsw-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libspectrum-devel >= 0.2.1
28 BuildRequires:  libxml2-devel >= 2.0.0
29 BuildRequires:  perl
30 %{?with_svga:BuildRequires:     svgalib-devel}
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 fuse is Free Unix Spectrum Emulator.
35 What Fuse does have:
36
37 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
38   speed on any computer you're likely to try it on (it runs at full
39   speed on a SparcStation 4 unless you do too much graphics intensive
40   stuff).
41 * Support for loading from .tzx files.
42 * Sound emulation.
43
44 %description -l pl.UTF-8
45 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
46 Jego właściwości to:
47
48 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
49 * Możliwość ładowania programów z plików .tzx.
50 * Dźwięk.
51
52 %package common
53 Summary:        Free Unix Spectrum Emulator (common files)
54 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (pliki wspólne)
55 Group:          Applications/Emulators
56
57 %description common
58 fuse is Free Unix Spectrum Emulator.
59 What Fuse does have:
60
61 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
62   speed on any computer you're likely to try it on (it runs at full
63   speed on a SparcStation 4 unless you do too much graphics intensive
64   stuff).
65 * Support for loading from .tzx files.
66 * Sound.
67
68 This package contains common files for all versions.
69
70 %description common -l pl.UTF-8
71 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
72 Jego właściwości to:
73
74 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
75 * Możliwość ładowania programów z plików .tzx.
76 * Dźwięk.
77 * Emulacja kilku drukarek przeznaczonych dla ZX Spectrum.
78
79 W tym pakiecie znajdują się wspólne pliki dla wszystkich wersji.
80
81 %package fb
82 Summary:        Free Unix Spectrum Emulator (framebuffer version)
83 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na framebuffer)
84 Group:          Applications/Emulators
85 Requires:       %{name}-common = %{version}-%{release}
86
87 %description fb
88 fuse is Free Unix Spectrum Emulator.
89 What Fuse does have:
90
91 * Working 48K/128K/+2/+2A Speccy emulation, running at true Speccy
92   speed on any computer you're likely to try it on (it runs at full
93   speed on a SparcStation 4 unless you do too much graphics intensive
94   stuff).
95 * Support for loading from .tzx files.
96 * Sound.
97
98 This package contains files for framebuffer version.
99
100 %description fb -l pl.UTF-8
101 fuse (Free Unix Spectrum Emulator) jest emulatorem ZX Spectrum.
102 Jego właściwości to:
103
104 * Emulacja ZX Spectrum 48K/128K/+2/+2A.
105 * Możliwość ładowania programów z plików .tzx.
106 * Dźwięk.
107
108 W tym pakiecie znajdują się pliki dla wersji korzystającej z
109 framebuffera.
110
111 %package sdl
112 Summary:        Free Unix Spectrum Emulator (SDL version)
113 Summary(pl.UTF-8):      Darmowy uniksowy emulator ZX Spectrum (wersja na SDL)
114 Group:          Applications/Emulators
115 Requires:       %{name}-common = %{version}-%{release}
116 Requires:       SDL >= 1.2.4
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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
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 %patch0 -p1
202 %patch1 -p1
203
204 %build
205 %{__aclocal}
206 %{__autoheader}
207 %{__autoconf}
208 %{__automake}
209
210 # X11
211 %if %{with x}
212 %configure  \
213         --disable-ui-joystick \
214         --with-joystick \
215         --with-gtk
216 %{__make} clean
217 %{__make}
218 cp -f ./fuse ./fuse-x11
219 %endif
220
221 # SDL
222 %if %{with sdl}
223 %configure \
224         --disable-ui-joystick \
225         --with-joystick \
226         --with-sdl
227 %{__make} clean
228 %{__make}
229 cp -f ./fuse ./fuse-sdl
230 %endif
231
232 # svga
233 %if %{with svga}
234 %configure \
235         --disable-ui-joystick \
236         --with-joystick \
237         --with-svgalib
238 %{__make} clean
239 %{__make}
240 cp -f ./fuse ./fuse-svga
241 %endif
242
243 # framebuffer
244 %if %{with fb}
245 %configure \
246         --with-joystick \
247         --with-fb
248 %{__make} clean
249 %{__make}
250 cp -f ./fuse ./fuse-fb
251 %endif
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255
256 %{__make} install \
257         DESTDIR=$RPM_BUILD_ROOT
258
259 %{?with_svga:install fuse-svga  $RPM_BUILD_ROOT%{_bindir}}
260 %{?with_x:install fuse-x11              $RPM_BUILD_ROOT%{_bindir}}
261 %{?with_fb:install fuse-fb              $RPM_BUILD_ROOT%{_bindir}}
262 %{?with_sdl:install fuse-sdl    $RPM_BUILD_ROOT%{_bindir}}
263
264 %clean
265 rm -rf $RPM_BUILD_ROOT
266
267 %files common
268 %defattr(644,root,root,755)
269 %doc README THANKS AUTHORS keysyms.dat keysyms.pl hacking/*
270 %{_datadir}/%{name}
271 %{_mandir}/man1/*
272
273 %if %{with fb}
274 %files fb
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/fuse-fb
277 %endif
278
279 %if %{with sdl}
280 %files sdl
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_bindir}/fuse-sdl
283 %endif
284
285 %if %{with svga}
286 %files svga
287 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_bindir}/fuse-svga
289 %endif
290
291 %if %{with x}
292 %files X11
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_bindir}/fuse-x11
295 %endif
This page took 0.092834 seconds and 3 git commands to generate.