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