]>
Commit | Line | Data |
---|---|---|
1 | # NOTE: for versions >= 1.8 see efl.spec | |
2 | # TODO: use system liblinebreak? | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without mmx # MMX and MMX2 support (on x86) | |
6 | %bcond_without sse # SSE support (on x86) | |
7 | %bcond_without altivec # altivec support (on PPC) | |
8 | %bcond_without fb # FB engine | |
9 | %bcond_without directfb # DirectFB engine | |
10 | %bcond_without sdl # SDL (OpenGL and software) engines | |
11 | %bcond_with svg # Esvg-based SVG loader | |
12 | %bcond_without wayland # wayland-egl, wayland-shm engines | |
13 | %bcond_without xcb # XCB engines (software_8_x11, possibly software_x11/gl_x11) | |
14 | %bcond_with xcb_api # software_x11/gl_x11 engines with XCB support (experimental) | |
15 | %bcond_without static_libs # don't build static library | |
16 | # | |
17 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
18 | %undefine with_mmx | |
19 | %endif | |
20 | %ifnarch i686 pentium3 pentium4 athlon %{x8664} | |
21 | %undefine with_sse | |
22 | %endif | |
23 | %ifnarch ppc | |
24 | %undefine with_altivec | |
25 | %endif | |
26 | %if %{without xcb} | |
27 | %undefine xcb_api | |
28 | %endif | |
29 | %if %{with xcb_api} | |
30 | %define xapi xcb | |
31 | %else | |
32 | %define xapi xlib | |
33 | %endif | |
34 | # | |
35 | %define edb_ver 1.0.5.043 | |
36 | %define eet_ver 1.7.0 | |
37 | %define eina_ver 1.7.10 | |
38 | ||
39 | Summary: Multi-platform Canvas Library | |
40 | Summary(pl.UTF-8): Wieloplatformowa biblioteka do rysowania | |
41 | Name: evas | |
42 | Version: 1.7.10 | |
43 | Release: 2 | |
44 | License: BSD | |
45 | Group: Libraries | |
46 | Source0: http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2 | |
47 | # Source0-md5: ae96df73b30f4957aebe32c13d75cb49 | |
48 | Patch0: %{name}-wayland.patch | |
49 | Patch1: %{name}-fribidi.patch | |
50 | URL: http://trac.enlightenment.org/e/wiki/Evas | |
51 | %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.16} | |
52 | BuildRequires: Mesa-libGLU-devel | |
53 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2.0} | |
54 | BuildRequires: autoconf >= 2.59-9 | |
55 | BuildRequires: automake >= 1.6 | |
56 | BuildRequires: edb-devel >= %{edb_ver} | |
57 | BuildRequires: eet-devel >= %{eet_ver} | |
58 | BuildRequires: eina-devel >= %{eina_ver} | |
59 | %{?with_svg:BuildRequires: esvg-devel >= 0.0.16} | |
60 | BuildRequires: fontconfig-devel >= 2.5.0 | |
61 | BuildRequires: freetype-devel >= 1:2.2 | |
62 | BuildRequires: fribidi-devel >= 0.19.2 | |
63 | BuildRequires: giflib-devel | |
64 | BuildRequires: harfbuzz-devel >= 0.9.0 | |
65 | BuildRequires: libjpeg-devel | |
66 | BuildRequires: libpng-devel >= 1.2 | |
67 | BuildRequires: libtiff-devel | |
68 | BuildRequires: libtool | |
69 | BuildRequires: pixman-devel | |
70 | BuildRequires: pkgconfig | |
71 | BuildRequires: readline-devel | |
72 | BuildRequires: xorg-lib-libXext-devel | |
73 | %if %{with xcb} | |
74 | BuildRequires: libxcb-devel | |
75 | BuildRequires: xcb-util-image-devel >= 0.2.1 | |
76 | %endif | |
77 | %if %{with wayland} | |
78 | BuildRequires: OpenGL-devel | |
79 | BuildRequires: Mesa-libEGL-devel >= 7.10 | |
80 | BuildRequires: Mesa-libGLES-devel | |
81 | BuildRequires: Mesa-libwayland-egl-devel | |
82 | BuildRequires: wayland-devel | |
83 | %endif | |
84 | Requires: eet >= %{eet_ver} | |
85 | Requires: eina >= %{eina_ver} | |
86 | Requires: freetype >= 1:2.2 | |
87 | Requires: fribidi >= 0.19.2 | |
88 | Requires: harfbuzz >= 0.9.0 | |
89 | Obsoletes: evas-libs | |
90 | Obsoletes: evas-engine-software_qtopia | |
91 | Obsoletes: evas-engine-xrender_x11 | |
92 | Obsoletes: evas-engine-xrender_xcb | |
93 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
94 | ||
95 | %undefine __cxx | |
96 | ||
97 | %description | |
98 | Evas is a clean display canvas API for several target display systems | |
99 | that can draw anti-aliased text, smooth super and sub-sampled scaled | |
100 | images, alpha-blend objects much and more. | |
101 | ||
102 | %description -l pl.UTF-8 | |
103 | Evas to czyste API "płótna obrazu" dla różnych systemów wyświetlania, | |
104 | będące w stanie rysować tekst z antyaliasingiem, wygładzane, skalowane | |
105 | obrazy, obiekty z alpha-blendingiem i inne elementy. | |
106 | ||
107 | %package devel | |
108 | Summary: Evas header files | |
109 | Summary(pl.UTF-8): Pliki nagłówkowe Evas | |
110 | Group: Development/Libraries | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: eet-devel >= %{eet_ver} | |
113 | Requires: eina-devel >= %{eina_ver} | |
114 | Requires: fontconfig-devel >= 2.5.0 | |
115 | Requires: freetype-devel >= 1:2.2 | |
116 | Requires: fribidi-devel >= 0.19.2 | |
117 | Requires: harfbuzz-devel >= 0.9.0 | |
118 | Provides: %{name}-devel(%{xapi}) = %{version}-%{release} | |
119 | ||
120 | %description devel | |
121 | Header files for Evas. | |
122 | ||
123 | %description devel -l pl.UTF-8 | |
124 | Pliki nagłówkowe Evas. | |
125 | ||
126 | %package static | |
127 | Summary: Static Evas library | |
128 | Summary(pl.UTF-8): Statyczna biblioteka Evas | |
129 | Group: Development/Libraries | |
130 | Requires: %{name}-devel = %{version}-%{release} | |
131 | ||
132 | %description static | |
133 | Static Evas library. | |
134 | ||
135 | %description static -l pl.UTF-8 | |
136 | Statyczna biblioteka Evas. | |
137 | ||
138 | ##### MODULES ##### | |
139 | # engines: | |
140 | %package engine-buffer | |
141 | Summary: Buffer rendering engine module for Evas | |
142 | Summary(pl.UTF-8): Moduł silnika renderującego do bufora dla Evas | |
143 | Group: X11/Libraries | |
144 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
145 | ||
146 | %description engine-buffer | |
147 | Memory Buffer rendering engine module for Evas. | |
148 | ||
149 | %description engine-buffer -l pl.UTF-8 | |
150 | Moduł silnika renderującego do bufora dla Evas. | |
151 | ||
152 | %package engine-directfb | |
153 | Summary: DirectFB rendering engine module for Evas | |
154 | Summary(pl.UTF-8): Moduł silnika renderującego na DirectFB dla Evas | |
155 | Group: X11/Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | Requires: DirectFB >= 0.9.16 | |
158 | ||
159 | %description engine-directfb | |
160 | DirectFB rendering engine module for Evas. | |
161 | ||
162 | %description engine-directfb -l pl.UTF-8 | |
163 | Moduł silnika renderującego na DirectFB dla Evas. | |
164 | ||
165 | %package engine-fb | |
166 | Summary: Framebuffer rendering engine module for Evas | |
167 | Summary(pl.UTF-8): Moduł silnika renderującego na framebuffer dla Evas | |
168 | Group: X11/Libraries | |
169 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
170 | ||
171 | %description engine-fb | |
172 | Framebuffer rendering engine module for Evas. | |
173 | ||
174 | %description engine-fb -l pl.UTF-8 | |
175 | Moduł silnika renderującego na framebuffer dla Evas. | |
176 | ||
177 | %package engine-gl_sdl | |
178 | Summary: SDL OpenGL rendering engine module for Evas | |
179 | Summary(pl.UTF-8): Moduł silnika renderującego na SDL OpenGL dla Evas | |
180 | Group: X11/Libraries | |
181 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
182 | Requires: SDL >= 1.2.0 | |
183 | ||
184 | %description engine-gl_sdl | |
185 | SDL OpenGL rendering engine module for Evas. | |
186 | ||
187 | %description engine-gl_sdl -l pl.UTF-8 | |
188 | Moduł silnika renderującego na SDL OpenGL dla Evas. | |
189 | ||
190 | %package engine-gl_x11 | |
191 | Summary: OpenGL under X11 rendering engine module for Evas | |
192 | Summary(pl.UTF-8): Moduł silnika renderującego na OpenGL pod X11 dla Evas | |
193 | Group: X11/Libraries | |
194 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
195 | Provides: %{name}-engine-gl_x11(%{xapi}) = %{version}-%{release} | |
196 | ||
197 | %description engine-gl_x11 | |
198 | OpenGL under X11 rendering engine module for Evas. | |
199 | ||
200 | %description engine-gl_x11 -l pl.UTF-8 | |
201 | Moduł silnika renderującego na OpenGL pod X11 dla Evas. | |
202 | ||
203 | %package engine-software_8 | |
204 | Summary: 8-bit software rendering engine module for Evas | |
205 | Summary(pl.UTF-8): Moduł silnika programowego renderującego 8-bitowego dla Evas | |
206 | Group: X11/Libraries | |
207 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
208 | ||
209 | %description engine-software_8 | |
210 | 8-bit software rendering engine module for Evas. | |
211 | ||
212 | %description engine-software_8 -l pl.UTF-8 | |
213 | Moduł silnika programowego renderującego 8-bitowego dla Evas. | |
214 | ||
215 | %package engine-software_8_x11 | |
216 | Summary: 8-bit X11 software rendering engine module for Evas | |
217 | Summary(pl.UTF-8): Moduł silnika programowego renderującego 8-bitowego na X11 dla Evas | |
218 | Group: X11/Libraries | |
219 | Requires: %{name}-engine-software_8 = %{version}-%{release} | |
220 | ||
221 | %description engine-software_8_x11 | |
222 | 8-bit X11 (XCB) software rendering engine module for Evas. | |
223 | ||
224 | %description engine-software_8_x11 -l pl.UTF-8 | |
225 | Moduł silnika programowego renderującego 8-bitowego na X11 (XCB) dla | |
226 | Evas. | |
227 | ||
228 | %package engine-software_16 | |
229 | Summary: 16-bit software rendering engine module for Evas | |
230 | Summary(pl.UTF-8): Moduł silnika programowego renderującego 16-bitowego dla Evas | |
231 | Group: X11/Libraries | |
232 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
233 | ||
234 | %description engine-software_16 | |
235 | 16-bit software rendering engine module for Evas. | |
236 | ||
237 | %description engine-software_16 -l pl.UTF-8 | |
238 | Moduł silnika programowego renderującego 16-bitowego dla Evas. | |
239 | ||
240 | %package engine-software_16_sdl | |
241 | Summary: 16-bit SDL software rendering engine module for Evas | |
242 | Summary(pl.UTF-8): Moduł silnika programowego renderującego 16-bitowego na SDL dla Evas | |
243 | Group: X11/Libraries | |
244 | Requires: %{name}-engine-software_16 = %{version}-%{release} | |
245 | Requires: SDL >= 1.2.0 | |
246 | Obsoletes: evas-engine-software_sdl | |
247 | ||
248 | %description engine-software_16_sdl | |
249 | 16-bit SDL software rendering engine module for Evas. | |
250 | ||
251 | %description engine-software_16_sdl -l pl.UTF-8 | |
252 | Moduł silnika programowego renderującego 16-bitowego na SDL dla Evas. | |
253 | ||
254 | %package engine-software_16_x11 | |
255 | Summary: 16-bit X11 software rendering engine module for Evas | |
256 | Summary(pl.UTF-8): Moduł silnika programowego renderującego 16-bitowego na X11 dla Evas | |
257 | Group: X11/Libraries | |
258 | Requires: %{name}-engine-software_16 = %{version}-%{release} | |
259 | ||
260 | %description engine-software_16_x11 | |
261 | 16-bit X11 (Xlib) software rendering engine module for Evas. | |
262 | ||
263 | %description engine-software_16_x11 -l pl.UTF-8 | |
264 | Moduł silnika programowego renderującego 16-bitowego na X11 (Xlib) dla | |
265 | Evas. | |
266 | ||
267 | %package engine-software_generic | |
268 | Summary: Software rendering common engine module for Evas | |
269 | Summary(pl.UTF-8): Moduł wspólnego programowego silnika renderującego dla Evas | |
270 | Group: X11/Libraries | |
271 | Requires: %{name} = %{version}-%{release} | |
272 | ||
273 | %description engine-software_generic | |
274 | Software rendering common engine module for Evas. | |
275 | ||
276 | %description engine-software_generic -l pl.UTF-8 | |
277 | Moduł wspólnego programowego silnika renderującego dla Evas. | |
278 | ||
279 | %package engine-software_x11 | |
280 | Summary: Software X11 rendering engine module for Evas | |
281 | Summary(pl.UTF-8): Moduł programowego silnika renderującego X11 dla Evas | |
282 | Group: X11/Libraries | |
283 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
284 | Obsoletes: evas-engine-software_xcb | |
285 | ||
286 | %description engine-software_x11 | |
287 | Software X11 rendering engine module for Evas. | |
288 | ||
289 | %description engine-software_x11 -l pl.UTF-8 | |
290 | Moduł programowego silnika renderującego X11 dla Evas. | |
291 | ||
292 | %package engine-wayland_egl | |
293 | Summary: Wayland EGL rendering engine module for Evas | |
294 | Summary(pl.UTF-8): Moduł silnika renderującego Wayland EGL dla Evas | |
295 | Group: Libraries | |
296 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
297 | ||
298 | %description engine-wayland_egl | |
299 | Wayland EGL rendering engine module for Evas. | |
300 | ||
301 | %description engine-wayland_egl -l pl.UTF-8 | |
302 | Moduł silnika renderującego Wayland EGL dla Evas. | |
303 | ||
304 | %package engine-wayland_shm | |
305 | Summary: Wayland SHM rendering engine module for Evas | |
306 | Summary(pl.UTF-8): Moduł silnika renderującego Wayland SHM dla Evas | |
307 | Group: Libraries | |
308 | Requires: %{name}-engine-software_generic = %{version}-%{release} | |
309 | ||
310 | %description engine-wayland_shm | |
311 | Wayland SHM rendering engine module for Evas. | |
312 | ||
313 | %description engine-wayland_shm -l pl.UTF-8 | |
314 | Moduł silnika renderującego Wayland SHM dla Evas. | |
315 | ||
316 | # loaders: | |
317 | %package loader-edb | |
318 | Summary: EDB Image loader module for Evas | |
319 | Summary(pl.UTF-8): Moduł wczytywania obrazów EDB dla Evas | |
320 | Group: X11/Libraries | |
321 | Requires: %{name} = %{version}-%{release} | |
322 | ||
323 | %description loader-edb | |
324 | EDB Image loader module for Evas. | |
325 | ||
326 | %description loader-edb -l pl.UTF-8 | |
327 | Moduł wczytywania obrazów EDB dla Evas. | |
328 | ||
329 | %package loader-eet | |
330 | Summary: EET Image loader module for Evas | |
331 | Summary(pl.UTF-8): Moduł wczytywania obrazów EET dla Evas | |
332 | Group: X11/Libraries | |
333 | Requires: %{name} = %{version}-%{release} | |
334 | ||
335 | %description loader-eet | |
336 | EET Image loader module for Evas. | |
337 | ||
338 | %description loader-eet -l pl.UTF-8 | |
339 | Moduł wczytywania obrazów EET dla Evas. | |
340 | ||
341 | %package loader-gif | |
342 | Summary: GIF Image loader module for Evas | |
343 | Summary(pl.UTF-8): Moduł wczytywania obrazów GIF dla Evas | |
344 | Group: X11/Libraries | |
345 | Requires: %{name} = %{version}-%{release} | |
346 | ||
347 | %description loader-gif | |
348 | GIF Image loader module for Evas. | |
349 | ||
350 | %description loader-gif -l pl.UTF-8 | |
351 | Moduł wczytywania obrazów GIF dla Evas. | |
352 | ||
353 | %package loader-jpeg | |
354 | Summary: JPEG Image loader module for Evas | |
355 | Summary(pl.UTF-8): Moduł wczytywania obrazów JPEG dla Evas | |
356 | Group: X11/Libraries | |
357 | Requires: %{name} = %{version}-%{release} | |
358 | ||
359 | %description loader-jpeg | |
360 | JPEG Image loader module for Evas. | |
361 | ||
362 | %description loader-jpeg -l pl.UTF-8 | |
363 | Moduł wczytywania obrazów JPEG dla Evas. | |
364 | ||
365 | %package loader-pmaps | |
366 | Summary: PMAPS Image loader module for Evas | |
367 | Summary(pl.UTF-8): Moduł wczytywania obrazów PMAPS dla Evas | |
368 | Group: X11/Libraries | |
369 | Requires: %{name} = %{version}-%{release} | |
370 | ||
371 | %description loader-pmaps | |
372 | PMAPS Image loader module for Evas. | |
373 | ||
374 | %description loader-pmaps -l pl.UTF-8 | |
375 | Moduł wczytywania obrazów PMAPS dla Evas. | |
376 | ||
377 | %package loader-png | |
378 | Summary: PNG Image loader module for Evas | |
379 | Summary(pl.UTF-8): Moduł wczytywania obrazów PNG dla Evas | |
380 | Group: X11/Libraries | |
381 | Requires: %{name} = %{version}-%{release} | |
382 | ||
383 | %description loader-png | |
384 | PNG Image loader module for Evas. | |
385 | ||
386 | %description loader-png -l pl.UTF-8 | |
387 | Moduł wczytywania obrazów PNG dla Evas. | |
388 | ||
389 | %package loader-svg | |
390 | Summary: SVG Image loader module for Evas | |
391 | Summary(pl.UTF-8): Moduł wczytywania obrazów SVG dla Evas | |
392 | Group: X11/Libraries | |
393 | Requires: %{name} = %{version}-%{release} | |
394 | Requires: esvg >= 0.0.16 | |
395 | ||
396 | %description loader-svg | |
397 | SVG Image loader module for Evas. | |
398 | ||
399 | %description loader-svg -l pl.UTF-8 | |
400 | Moduł wczytywania obrazów SVG dla Evas. | |
401 | ||
402 | %package loader-tiff | |
403 | Summary: TIFF Image loader module for Evas | |
404 | Summary(pl.UTF-8): Moduł wczytywania obrazów TIFF dla Evas | |
405 | Group: X11/Libraries | |
406 | Requires: %{name} = %{version}-%{release} | |
407 | ||
408 | %description loader-tiff | |
409 | TIFF Image loader module for Evas. | |
410 | ||
411 | %description loader-tiff -l pl.UTF-8 | |
412 | Moduł wczytywania obrazów TIFF dla Evas. | |
413 | ||
414 | %package loader-xpm | |
415 | Summary: XPM Image loader module for Evas | |
416 | Summary(pl.UTF-8): Moduł wczytywania obrazów XPM dla Evas | |
417 | Group: X11/Libraries | |
418 | Requires: %{name} = %{version}-%{release} | |
419 | ||
420 | %description loader-xpm | |
421 | XPM Image loader module for Evas. | |
422 | ||
423 | %description loader-xpm -l pl.UTF-8 | |
424 | Moduł wczytywania obrazów XPM dla Evas. | |
425 | ||
426 | # savers: | |
427 | %package saver-edb | |
428 | Summary: EDB Image saver module for Evas | |
429 | Summary(pl.UTF-8): Moduł zapisywania obrazów EDB dla Evas | |
430 | Group: X11/Libraries | |
431 | Requires: %{name} = %{version}-%{release} | |
432 | ||
433 | %description saver-edb | |
434 | EDB Image saver module for Evas. | |
435 | ||
436 | %description saver-edb -l pl.UTF-8 | |
437 | Moduł zapisywania obrazów EDB dla Evas. | |
438 | ||
439 | %package saver-eet | |
440 | Summary: EET Image saver module for Evas | |
441 | Summary(pl.UTF-8): Moduł zapisywania obrazów EET dla Evas | |
442 | Group: X11/Libraries | |
443 | Requires: %{name} = %{version}-%{release} | |
444 | ||
445 | %description saver-eet | |
446 | EET Image saver module for Evas. | |
447 | ||
448 | %description saver-eet -l pl.UTF-8 | |
449 | Moduł zapisywania obrazów EET dla Evas. | |
450 | ||
451 | %package saver-jpeg | |
452 | Summary: JPEG Image saver module for Evas | |
453 | Summary(pl.UTF-8): Moduł zapisywania obrazów JPEG dla Evas | |
454 | Group: X11/Libraries | |
455 | Requires: %{name} = %{version}-%{release} | |
456 | ||
457 | %description saver-jpeg | |
458 | JPEG Image saver module for Evas. | |
459 | ||
460 | %description saver-jpeg -l pl.UTF-8 | |
461 | Moduł zapisywania obrazów JPEG dla Evas. | |
462 | ||
463 | %package saver-png | |
464 | Summary: PNG Image saver module for Evas | |
465 | Summary(pl.UTF-8): Moduł zapisywania obrazów PNG dla Evas | |
466 | Group: X11/Libraries | |
467 | Requires: %{name} = %{version}-%{release} | |
468 | ||
469 | %description saver-png | |
470 | PNG Image saver module for Evas. | |
471 | ||
472 | %description saver-png -l pl.UTF-8 | |
473 | Moduł zapisywania obrazów PNG dla Evas. | |
474 | ||
475 | %package saver-tiff | |
476 | Summary: TIFF Image saver module for Evas | |
477 | Summary(pl.UTF-8): Moduł zapisywania obrazów TIFF dla Evas | |
478 | Group: X11/Libraries | |
479 | Requires: %{name} = %{version}-%{release} | |
480 | ||
481 | %description saver-tiff | |
482 | TIFF Image saver module for Evas. | |
483 | ||
484 | %description saver-tiff -l pl.UTF-8 | |
485 | Moduł zapisywania obrazów TIFF dla Evas. | |
486 | ||
487 | %prep | |
488 | %setup -q -n %{name}-%{version} | |
489 | %patch0 -p1 | |
490 | %patch1 -p1 | |
491 | ||
492 | %build | |
493 | %{__libtoolize} | |
494 | %{__aclocal} -I m4 | |
495 | %{__autoconf} | |
496 | %{__autoheader} | |
497 | %{__automake} | |
498 | %configure \ | |
499 | --disable-silent-rules \ | |
500 | %{!?with_static_libs:--disable-static} \ | |
501 | --enable-buffer \ | |
502 | --enable-cpu-altivec%{!?with_altivec:=no} \ | |
503 | --enable-cpu-c \ | |
504 | --enable-cpu-mmx%{!?with_mmx:=no} \ | |
505 | --enable-cpu-sse%{!?with_sse:=no} \ | |
506 | --enable-directfb%{!?with_directfb:=no} \ | |
507 | --enable-fb%{!?with_fb:=no} \ | |
508 | --enable-font-loader-eet \ | |
509 | --enable-gl-sdl%{!?with_sdl:=no} \ | |
510 | --enable-gl-xcb%{!?with_xcb_api:=no} \ | |
511 | --enable-gl-xlib \ | |
512 | --enable-image-loader-edb \ | |
513 | --enable-image-loader-eet \ | |
514 | --enable-image-loader-gif \ | |
515 | --enable-image-loader-jpeg \ | |
516 | --enable-image-loader-png \ | |
517 | --enable-image-loader-svg%{!?with_svg:=no} \ | |
518 | --enable-image-loader-tiff \ | |
519 | --enable-image-loader-xpm \ | |
520 | --enable-pixman \ | |
521 | --enable-software-8-x11%{!?with_xcb:=no} \ | |
522 | --enable-software-16-sdl%{!?with_sdl:=no} \ | |
523 | --enable-software-16-x11 \ | |
524 | --enable-software-xcb%{!?with_xcb_api:=no} \ | |
525 | --enable-software-xlib \ | |
526 | --enable-wayland-egl%{!?with_wayland:=no} \ | |
527 | --enable-wayland-shm%{!?with_wayland:=no} \ | |
528 | --disable-valgrind | |
529 | ||
530 | %{__make} | |
531 | ||
532 | %install | |
533 | rm -rf $RPM_BUILD_ROOT | |
534 | ||
535 | %{__make} install \ | |
536 | DESTDIR=$RPM_BUILD_ROOT | |
537 | ||
538 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/cserve2/*/*/*/module.la | |
539 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/*/*/*/module.la | |
540 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/engines/software_16_sdl/linux-gnu-*/module.a | |
541 | ||
542 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
543 | mv -f $RPM_BUILD_ROOT%{_datadir}/evas/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
544 | ||
545 | %clean | |
546 | rm -rf $RPM_BUILD_ROOT | |
547 | ||
548 | %post -p /sbin/ldconfig | |
549 | %postun -p /sbin/ldconfig | |
550 | ||
551 | %files | |
552 | %defattr(644,root,root,755) | |
553 | %doc AUTHORS COPYING ChangeLog NEWS README | |
554 | %attr(755,root,root) %{_bindir}/evas_cserve2_client | |
555 | %attr(755,root,root) %{_bindir}/evas_cserve2_debug | |
556 | %attr(755,root,root) %{_bindir}/evas_cserve2_usage | |
557 | %attr(755,root,root) %{_libdir}/libevas.so.*.*.* | |
558 | %attr(755,root,root) %ghost %{_libdir}/libevas.so.1 | |
559 | %attr(755,root,root) %{_libexecdir}/dummy_slave | |
560 | %attr(755,root,root) %{_libexecdir}/evas_cserve2 | |
561 | %attr(755,root,root) %{_libexecdir}/evas_cserve2_slave | |
562 | %dir %{_libdir}/%{name} | |
563 | %dir %{_libdir}/%{name}/cserve2 | |
564 | %dir %{_libdir}/%{name}/cserve2/loaders | |
565 | # loaders without additional dependencies | |
566 | %dir %{_libdir}/%{name}/cserve2/loaders/bmp | |
567 | %dir %{_libdir}/%{name}/cserve2/loaders/bmp/linux-gnu-* | |
568 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/bmp/linux-gnu-*/module.so | |
569 | %dir %{_libdir}/%{name}/cserve2/loaders/ico | |
570 | %dir %{_libdir}/%{name}/cserve2/loaders/ico/linux-gnu-* | |
571 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/ico/linux-gnu-*/module.so | |
572 | %dir %{_libdir}/%{name}/cserve2/loaders/psd | |
573 | %dir %{_libdir}/%{name}/cserve2/loaders/psd/linux-gnu-* | |
574 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/psd/linux-gnu-*/module.so | |
575 | %dir %{_libdir}/%{name}/cserve2/loaders/tga | |
576 | %dir %{_libdir}/%{name}/cserve2/loaders/tga/linux-gnu-* | |
577 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/tga/linux-gnu-*/module.so | |
578 | %dir %{_libdir}/%{name}/cserve2/loaders/wbmp | |
579 | %dir %{_libdir}/%{name}/cserve2/loaders/wbmp/linux-gnu-* | |
580 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/wbmp/linux-gnu-*/module.so | |
581 | %dir %{_libdir}/%{name}/modules | |
582 | %dir %{_libdir}/%{name}/modules/engines | |
583 | %dir %{_libdir}/%{name}/modules/loaders | |
584 | %dir %{_libdir}/%{name}/modules/savers | |
585 | # loaders without additional dependencies | |
586 | %dir %{_libdir}/%{name}/modules/loaders/bmp | |
587 | %dir %{_libdir}/%{name}/modules/loaders/bmp/linux-gnu-* | |
588 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/bmp/linux-gnu-*/module.so | |
589 | %dir %{_libdir}/%{name}/modules/loaders/generic | |
590 | %dir %{_libdir}/%{name}/modules/loaders/generic/linux-gnu-* | |
591 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/generic/linux-gnu-*/module.so | |
592 | %dir %{_libdir}/%{name}/modules/loaders/ico | |
593 | %dir %{_libdir}/%{name}/modules/loaders/ico/linux-gnu-* | |
594 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/ico/linux-gnu-*/module.so | |
595 | %dir %{_libdir}/%{name}/modules/loaders/psd | |
596 | %dir %{_libdir}/%{name}/modules/loaders/psd/linux-gnu-* | |
597 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/psd/linux-gnu-*/module.so | |
598 | %dir %{_libdir}/%{name}/modules/loaders/tga | |
599 | %dir %{_libdir}/%{name}/modules/loaders/tga/linux-gnu-* | |
600 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/tga/linux-gnu-*/module.so | |
601 | %dir %{_libdir}/%{name}/modules/loaders/wbmp | |
602 | %dir %{_libdir}/%{name}/modules/loaders/wbmp/linux-gnu-* | |
603 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/wbmp/linux-gnu-*/module.so | |
604 | %{_datadir}/%{name} | |
605 | ||
606 | %files devel | |
607 | %defattr(644,root,root,755) | |
608 | %attr(755,root,root) %{_libdir}/libevas.so | |
609 | %{_libdir}/libevas.la | |
610 | %{_includedir}/evas-1 | |
611 | %{_pkgconfigdir}/evas.pc | |
612 | # engine private structures | |
613 | %{?with_directfb:%{_pkgconfigdir}/evas-directfb.pc} | |
614 | %{_pkgconfigdir}/evas-fb.pc | |
615 | %{?with_sdl:%{_pkgconfigdir}/evas-opengl-sdl.pc} | |
616 | %{_pkgconfigdir}/evas-opengl-x11.pc | |
617 | %{?with_xcb:%{_pkgconfigdir}/evas-software-8-x11.pc} | |
618 | %{_pkgconfigdir}/evas-software-16-x11.pc | |
619 | %{_pkgconfigdir}/evas-software-buffer.pc | |
620 | %{?with_sdl:%{_pkgconfigdir}/evas-software-sdl.pc} | |
621 | %{_pkgconfigdir}/evas-software-x11.pc | |
622 | %if %{with wayland} | |
623 | %{_pkgconfigdir}/evas-wayland-egl.pc | |
624 | %{_pkgconfigdir}/evas-wayland-shm.pc | |
625 | %endif | |
626 | %{_examplesdir}/%{name}-%{version} | |
627 | ||
628 | %if %{with static_libs} | |
629 | %files static | |
630 | %defattr(644,root,root,755) | |
631 | %{_libdir}/libevas.a | |
632 | %endif | |
633 | ||
634 | %files engine-buffer | |
635 | %defattr(644,root,root,755) | |
636 | %dir %{_libdir}/%{name}/modules/engines/buffer | |
637 | %dir %{_libdir}/%{name}/modules/engines/buffer/linux-gnu-* | |
638 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/buffer/linux-gnu-*/module.so | |
639 | ||
640 | %if %{with directfb} | |
641 | %files engine-directfb | |
642 | %defattr(644,root,root,755) | |
643 | %dir %{_libdir}/%{name}/modules/engines/directfb | |
644 | %dir %{_libdir}/%{name}/modules/engines/directfb/linux-gnu-* | |
645 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/directfb/linux-gnu-*/module.so | |
646 | %endif | |
647 | ||
648 | %if %{with fb} | |
649 | %files engine-fb | |
650 | %defattr(644,root,root,755) | |
651 | %dir %{_libdir}/%{name}/modules/engines/fb | |
652 | %dir %{_libdir}/%{name}/modules/engines/fb/linux-gnu-* | |
653 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/fb/linux-gnu-*/module.so | |
654 | %endif | |
655 | ||
656 | %if %{with sdl} | |
657 | %files engine-gl_sdl | |
658 | %defattr(644,root,root,755) | |
659 | %dir %{_libdir}/%{name}/modules/engines/gl_sdl | |
660 | %dir %{_libdir}/%{name}/modules/engines/gl_sdl/linux-gnu-* | |
661 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/gl_sdl/linux-gnu-*/module.so | |
662 | %endif | |
663 | ||
664 | %files engine-gl_x11 | |
665 | %defattr(644,root,root,755) | |
666 | %dir %{_libdir}/%{name}/modules/engines/gl_x11 | |
667 | %dir %{_libdir}/%{name}/modules/engines/gl_x11/linux-gnu-* | |
668 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/gl_x11/linux-gnu-*/module.so | |
669 | ||
670 | %if %{with xcb} | |
671 | %files engine-software_8 | |
672 | %defattr(644,root,root,755) | |
673 | %dir %{_libdir}/%{name}/modules/engines/software_8 | |
674 | %dir %{_libdir}/%{name}/modules/engines/software_8/linux-gnu-* | |
675 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_8/linux-gnu-*/module.so | |
676 | ||
677 | %files engine-software_8_x11 | |
678 | %defattr(644,root,root,755) | |
679 | %dir %{_libdir}/%{name}/modules/engines/software_8_x11 | |
680 | %dir %{_libdir}/%{name}/modules/engines/software_8_x11/linux-gnu-* | |
681 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_8_x11/linux-gnu-*/module.so | |
682 | %endif | |
683 | ||
684 | %files engine-software_16 | |
685 | %defattr(644,root,root,755) | |
686 | %dir %{_libdir}/%{name}/modules/engines/software_16 | |
687 | %dir %{_libdir}/%{name}/modules/engines/software_16/linux-gnu-* | |
688 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_16/linux-gnu-*/module.so | |
689 | ||
690 | %files engine-software_16_x11 | |
691 | %defattr(644,root,root,755) | |
692 | %dir %{_libdir}/%{name}/modules/engines/software_16_x11 | |
693 | %dir %{_libdir}/%{name}/modules/engines/software_16_x11/linux-gnu-* | |
694 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_16_x11/linux-gnu-*/module.so | |
695 | ||
696 | %if %{with sdl} | |
697 | %files engine-software_16_sdl | |
698 | %defattr(644,root,root,755) | |
699 | %dir %{_libdir}/%{name}/modules/engines/software_16_sdl | |
700 | %dir %{_libdir}/%{name}/modules/engines/software_16_sdl/linux-gnu-* | |
701 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_16_sdl/linux-gnu-*/module.so | |
702 | %endif | |
703 | ||
704 | %files engine-software_generic | |
705 | %defattr(644,root,root,755) | |
706 | %dir %{_libdir}/%{name}/modules/engines/software_generic | |
707 | %dir %{_libdir}/%{name}/modules/engines/software_generic/linux-gnu-* | |
708 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_generic/linux-gnu-*/module.so | |
709 | ||
710 | %files engine-software_x11 | |
711 | %defattr(644,root,root,755) | |
712 | %dir %{_libdir}/%{name}/modules/engines/software_x11 | |
713 | %dir %{_libdir}/%{name}/modules/engines/software_x11/linux-gnu-* | |
714 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/software_x11/linux-gnu-*/module.so | |
715 | ||
716 | %if %{with wayland} | |
717 | %files engine-wayland_egl | |
718 | %defattr(644,root,root,755) | |
719 | %dir %{_libdir}/%{name}/modules/engines/wayland_egl | |
720 | %dir %{_libdir}/%{name}/modules/engines/wayland_egl/linux-gnu-* | |
721 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/wayland_egl/linux-gnu-*/module.so | |
722 | ||
723 | %files engine-wayland_shm | |
724 | %defattr(644,root,root,755) | |
725 | %dir %{_libdir}/%{name}/modules/engines/wayland_shm | |
726 | %dir %{_libdir}/%{name}/modules/engines/wayland_shm/linux-gnu-* | |
727 | %attr(755,root,root) %{_libdir}/%{name}/modules/engines/wayland_shm/linux-gnu-*/module.so | |
728 | %endif | |
729 | ||
730 | %files loader-edb | |
731 | %defattr(644,root,root,755) | |
732 | %dir %{_libdir}/%{name}/modules/loaders/edb | |
733 | %dir %{_libdir}/%{name}/modules/loaders/edb/linux-gnu-* | |
734 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/edb/linux-gnu-*/module.so | |
735 | ||
736 | %files loader-eet | |
737 | %defattr(644,root,root,755) | |
738 | %dir %{_libdir}/%{name}/cserve2/loaders/eet | |
739 | %dir %{_libdir}/%{name}/cserve2/loaders/eet/linux-gnu-* | |
740 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/eet/linux-gnu-*/module.so | |
741 | %dir %{_libdir}/%{name}/modules/loaders/eet | |
742 | %dir %{_libdir}/%{name}/modules/loaders/eet/linux-gnu-* | |
743 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/eet/linux-gnu-*/module.so | |
744 | ||
745 | %files loader-gif | |
746 | %defattr(644,root,root,755) | |
747 | %dir %{_libdir}/%{name}/modules/loaders/gif | |
748 | %dir %{_libdir}/%{name}/modules/loaders/gif/linux-gnu-* | |
749 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/gif/linux-gnu-*/module.so | |
750 | ||
751 | %files loader-jpeg | |
752 | %defattr(644,root,root,755) | |
753 | %dir %{_libdir}/%{name}/cserve2/loaders/jpeg | |
754 | %dir %{_libdir}/%{name}/cserve2/loaders/jpeg/linux-gnu-* | |
755 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/jpeg/linux-gnu-*/module.so | |
756 | %dir %{_libdir}/%{name}/modules/loaders/jpeg | |
757 | %dir %{_libdir}/%{name}/modules/loaders/jpeg/linux-gnu-* | |
758 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/jpeg/linux-gnu-*/module.so | |
759 | ||
760 | %files loader-pmaps | |
761 | %defattr(644,root,root,755) | |
762 | %dir %{_libdir}/%{name}/cserve2/loaders/pmaps | |
763 | %dir %{_libdir}/%{name}/cserve2/loaders/pmaps/linux-gnu-* | |
764 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/pmaps/linux-gnu-*/module.so | |
765 | %dir %{_libdir}/%{name}/modules/loaders/pmaps | |
766 | %dir %{_libdir}/%{name}/modules/loaders/pmaps/linux-gnu-* | |
767 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/pmaps/linux-gnu-*/module.so | |
768 | ||
769 | %files loader-png | |
770 | %defattr(644,root,root,755) | |
771 | %dir %{_libdir}/%{name}/cserve2/loaders/png | |
772 | %dir %{_libdir}/%{name}/cserve2/loaders/png/linux-gnu-* | |
773 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/png/linux-gnu-*/module.so | |
774 | %dir %{_libdir}/%{name}/modules/loaders/png | |
775 | %dir %{_libdir}/%{name}/modules/loaders/png/linux-gnu-* | |
776 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/png/linux-gnu-*/module.so | |
777 | ||
778 | %if %{with svg} | |
779 | %files loader-svg | |
780 | %defattr(644,root,root,755) | |
781 | %dir %{_libdir}/%{name}/modules/loaders/svg | |
782 | %dir %{_libdir}/%{name}/modules/loaders/svg/linux-gnu-* | |
783 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/svg/linux-gnu-*/module.so | |
784 | %endif | |
785 | ||
786 | %files loader-tiff | |
787 | %defattr(644,root,root,755) | |
788 | %dir %{_libdir}/%{name}/cserve2/loaders/tiff | |
789 | %dir %{_libdir}/%{name}/cserve2/loaders/tiff/linux-gnu-* | |
790 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/tiff/linux-gnu-*/module.so | |
791 | %dir %{_libdir}/%{name}/modules/loaders/tiff | |
792 | %dir %{_libdir}/%{name}/modules/loaders/tiff/linux-gnu-* | |
793 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/tiff/linux-gnu-*/module.so | |
794 | ||
795 | %files loader-xpm | |
796 | %defattr(644,root,root,755) | |
797 | %dir %{_libdir}/%{name}/cserve2/loaders/xpm | |
798 | %dir %{_libdir}/%{name}/cserve2/loaders/xpm/linux-gnu-* | |
799 | %attr(755,root,root) %{_libdir}/%{name}/cserve2/loaders/xpm/linux-gnu-*/module.so | |
800 | %dir %{_libdir}/%{name}/modules/loaders/xpm | |
801 | %dir %{_libdir}/%{name}/modules/loaders/xpm/linux-gnu-* | |
802 | %attr(755,root,root) %{_libdir}/%{name}/modules/loaders/xpm/linux-gnu-*/module.so | |
803 | ||
804 | %files saver-edb | |
805 | %defattr(644,root,root,755) | |
806 | %dir %{_libdir}/%{name}/modules/savers/edb | |
807 | %dir %{_libdir}/%{name}/modules/savers/edb/linux-gnu-* | |
808 | %attr(755,root,root) %{_libdir}/%{name}/modules/savers/edb/linux-gnu-*/module.so | |
809 | ||
810 | %files saver-eet | |
811 | %defattr(644,root,root,755) | |
812 | %dir %{_libdir}/%{name}/modules/savers/eet | |
813 | %dir %{_libdir}/%{name}/modules/savers/eet/linux-gnu-* | |
814 | %attr(755,root,root) %{_libdir}/%{name}/modules/savers/eet/linux-gnu-*/module.so | |
815 | ||
816 | %files saver-jpeg | |
817 | %defattr(644,root,root,755) | |
818 | %dir %{_libdir}/%{name}/modules/savers/jpeg | |
819 | %dir %{_libdir}/%{name}/modules/savers/jpeg/linux-gnu-* | |
820 | %attr(755,root,root) %{_libdir}/%{name}/modules/savers/jpeg/linux-gnu-*/module.so | |
821 | ||
822 | %files saver-png | |
823 | %defattr(644,root,root,755) | |
824 | %dir %{_libdir}/%{name}/modules/savers/png | |
825 | %dir %{_libdir}/%{name}/modules/savers/png/linux-gnu-* | |
826 | %attr(755,root,root) %{_libdir}/%{name}/modules/savers/png/linux-gnu-*/module.so | |
827 | ||
828 | %files saver-tiff | |
829 | %defattr(644,root,root,755) | |
830 | %dir %{_libdir}/%{name}/modules/savers/tiff | |
831 | %dir %{_libdir}/%{name}/modules/savers/tiff/linux-gnu-* | |
832 | %attr(755,root,root) %{_libdir}/%{name}/modules/savers/tiff/linux-gnu-*/module.so |