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