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