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