3 %bcond_without static_libs # don't build static library
4 %bcond_with xcb # XCB instead of Xlib
6 %define eet_ver 0.9.10.038
8 Summary: Enlightened Core X interface library
9 Summary(pl.UTF-8): Biblioteka interfejsu X Enlightened Core
15 Source0: http://download.enlightenment.org/snapshots/2008-05-19/%{name}-%{version}.tar.bz2
16 # Source0-md5: 3d328b276556045c3d169ea4980d1aaf
17 Patch0: %{name}-link.patch
18 URL: http://enlightenment.org/p.php?p=about/libs/ecore
19 BuildRequires: DirectFB-devel >= 0.9.16
20 BuildRequires: SDL-devel
21 BuildRequires: autoconf >= 2.52
22 BuildRequires: automake >= 1.6
23 BuildRequires: curl-devel
24 BuildRequires: eet-devel >= %{eet_ver}
25 BuildRequires: evas-devel >= %{version}
26 BuildRequires: libtool
27 BuildRequires: openssl-devel
28 BuildRequires: pkgconfig
29 BuildRequires: tslib-devel
31 BuildRequires: libxcb-devel
32 BuildRequires: xcb-util-devel
34 BuildRequires: xorg-lib-libXScrnSaver-devel
35 BuildRequires: xorg-lib-libXcursor-devel
36 BuildRequires: xorg-lib-libXdamage-devel
37 BuildRequires: xorg-lib-libXext-devel
38 BuildRequires: xorg-lib-libXfixes-devel
39 BuildRequires: xorg-lib-libXinerama-devel
40 BuildRequires: xorg-lib-libXp-devel
41 BuildRequires: xorg-lib-libXrandr-devel
42 BuildRequires: xorg-lib-libXrender-devel
44 Requires: evas >= %{version}
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Ecore is the event/X abstraction layer that makes doing selections,
52 Xdnd, general X stuff, event loops, timeouts and idle handlers fast,
53 optimized, and convenient. It's a separate library so anyone can make
54 use of the work put into Ecore to make this job easy for applications.
56 %description -l pl.UTF-8
57 Ecore to warstwa abstrakcji zdarzeń/X, która powoduje, że dokonywanie
58 zaznaczeń, Xdnd, ogólne operacje X, pętle zdarzeń, obsługa timeoutów i
59 bezczynności są szybkie, zoptymalizowane i wygodne. Jest to wydzielona
60 biblioteka, więc każdy może skorzystać z pracy włożonej w Ecore do
61 ułatwienia swojej pracy przy aplikacjach.
64 Summary: Ecore Connection Library
65 Summary(pl.UTF-8): Biblioteka połączeń Ecore
67 Requires: %{name} = %{version}-%{release}
71 Ecore Connection Library.
73 %description con -l pl.UTF-8
74 Biblioteka połączeń Ecore.
77 Summary: Ecore Enlightened Property Library
78 Summary(pl.UTF-8): Biblioteka właściwości Ecore
80 Requires: %{name}-ipc = %{version}-%{release}
81 Requires: evas-devel >= %{version}
82 Requires: eet-devel >= %{eet_ver}
86 Ecore Enlightened Property Library.
88 %description config -l pl.UTF-8
89 Biblioteka właściwości Ecore.
92 Summary: Ecore freedesktop.org .desktop, icon, menu parsing Library
93 Summary(pl.UTF-8): Biblioteka przetwarzania plików .desktop, ikon i menu
95 Requires: %{name}-file = %{version}-%{release}
99 Ecore freedesktop.org .desktop, icon, menu parsing Library.
101 %description desktop -l pl.UTF-8
102 Biblioteka przetwarzania plików .desktop, ikon i menu.
105 Summary: Ecore frame buffer system functions
106 Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
108 Requires: %{name} = %{version}-%{release}
109 Requires: DirectFB >= 0.9.16
110 Conflicts: ecore-libs
112 %description directfb
113 Ecore frame buffer system functions.
115 %description directfb -l pl.UTF-8
116 Funkcje systemowe framebuffera Ecore.
119 Summary: Ecore frame buffer system functions
120 Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
122 Requires: %{name} = %{version}-%{release}
123 Conflicts: ecore-libs
126 Ecore frame buffer system functions.
128 %description fb -l pl.UTF-8
129 Funkcje systemowe framebuffera Ecore.
132 Summary: Ecore File Library
133 Summary(pl.UTF-8): Biblioteka Ecore File
135 Requires: %{name} = %{version}-%{release}
136 Conflicts: ecore-libs
141 %description file -l pl.UTF-8
142 Biblioteka Ecore File.
145 Summary: Ecore library IMF module
146 Summary(pl.UTF-8): Moduł IMF biblioteki Ecore
148 Requires: %{name}-con = %{version}-%{release}
149 Conflicts: ecore-libs
152 Ecore library IMF module.
154 %description imf -l pl.UTF-8
155 Moduł IMF biblioteki Ecore.
158 Summary: Ecore library IMF Evas module
159 Summary(pl.UTF-8): Moduł IMF Evas biblioteki Ecore
161 Requires: %{name}-evas = %{version}-%{release}
162 Requires: %{name}-imf = %{version}-%{release}
163 Conflicts: ecore-libs
165 %description imf-evas
166 Ecore library IMF Evas module.
168 %description imf-evas -l pl.UTF-8
169 Moduł IMF Evas biblioteki Ecore.
172 Summary: Ecore inter-process communication functions
173 Summary(pl.UTF-8): Funkcje komunikacji międzyprocesowej Ecore
175 Requires: %{name}-con = %{version}-%{release}
176 Conflicts: ecore-libs
179 Ecore inter-process communication functions.
181 %description ipc -l pl.UTF-8
182 Funkcje komunikacji międzyprocesowej Ecore.
185 Summary: Ecore job dealing functions
186 Summary(pl.UTF-8): Funkcje obsługi zadań Ecore
188 Requires: %{name} = %{version}-%{release}
189 Conflicts: ecore-libs
192 Ecore job dealing functions.
194 %description job -l pl.UTF-8
195 Funkcje obsługi zadań Ecore.
198 Summary: Ecore library SDL module
199 Summary(pl.UTF-8): Moduł SDL biblioteki Ecore
201 Requires: %{name} = %{version}-%{release}
202 Conflicts: ecore-libs
205 Ecore library SDL module.
207 %description sdl -l pl.UTF-8
208 Moduł SDL biblioteki Ecore.
211 Summary: Ecore text encoding conversion functions
212 Summary(pl.UTF-8): Funkcje konwersji kodowania tekstu Ecore
214 Requires: %{name} = %{version}-%{release}
215 Conflicts: ecore-libs
218 Ecore text encoding conversion functions.
220 %description txt -l pl.UTF-8
221 Funkcje konwersji kodowania tekstu Ecore.
224 Summary: Ecore functions for dealing with the X Window System
225 Summary(pl.UTF-8): Funkcje Ecore do obsługi X Window System
227 Requires: %{name}-txt = %{version}-%{release}
228 Conflicts: ecore-libs
231 Ecore functions for dealing with the X Window System.
233 %description x -l pl.UTF-8
234 Funkcje Ecore do obsługi X Window System.
237 Summary: Ecore header files
238 Summary(pl.UTF-8): Pliki nagłówkowe Ecore
239 Group: Development/Libraries
240 Requires: %{name} = %{version}-%{release}
241 Requires: %{name}-con = %{version}-%{release}
242 # + openssl-devel curl-devel
243 Requires: %{name}-config = %{version}-%{release}
244 # + eet-devel >= 0.9.10.038
245 Requires: %{name}-desktop = %{version}-%{release}
246 Requires: %{name}-directfb = %{version}-%{release}
247 # + DirectFB-devel >= 0.9.16
248 Requires: %{name}-fb = %{version}-%{release}
250 Requires: %{name}-file = %{version}-%{release}
252 Requires: %{name}-imf = %{version}-%{release}
253 Requires: %{name}-ipc = %{version}-%{release}
254 Requires: %{name}-job = %{version}-%{release}
255 Requires: %{name}-sdl = %{version}-%{release}
257 Requires: %{name}-txt = %{version}-%{release}
258 Requires: %{name}-x = %{version}-%{release}
260 # + libxcb-devel xcb-util-devel
262 # + xorg-lib-libXScrnSaver-devel xorg-lib-libXcursor-devel xorg-lib-libXdamage-devel xorg-lib-libXext-devel xorg-lib-libXfixes-devel xorg-lib-libXinerama-devel xorg-lib-libXp-devel xorg-lib-libXrandr-devel xorg-lib-libXrender-devel
266 Ecore development files.
268 %description devel -l pl.UTF-8
269 Pliki programistyczne Ecore.
272 Summary: Static Ecore libraries
273 Summary(pl.UTF-8): Statyczne biblioteki Ecore
274 Group: Development/Libraries
275 Requires: %{name}-devel = %{version}-%{release}
278 Static Ecore libraries.
280 %description static -l pl.UTF-8
281 Statyczne biblioteki Ecore.
284 Summary: Ecore Evas Wrapper Library
285 Summary(pl.UTF-8): Biblioteka Ecore Evas Wrapper
287 #Requires: %{name}-directfb = %{version}-%{release}
288 Requires: %{name}-fb = %{version}-%{release}
289 Requires: %{name}-sdl = %{version}-%{release}
290 Requires: %{name}-x = %{version}-%{release}
291 Requires: evas >= %{version}
292 Conflicts: ecore-libs
295 Ecore Evas Wrapper Library.
297 %description evas -l pl.UTF-8
298 Biblioteka Ecore Evas Wrapper.
301 Summary: Header files for Ecore Evas Wrapper Library
302 Summary(pl.UTF-8): Pliki nagłówkowe biblioteka Ecore Evas Wrapper
303 Group: Development/Libraries
304 Requires: %{name}-devel = %{version}-%{release}
305 Requires: %{name}-imf-evas = %{version}-%{release}
306 #Requires: DirectFB-devel >= 0.9.16
308 Requires: evas-devel >= %{version}
309 Requires: tslib-devel
311 %description evas-devel
312 Header files for Ecore Evas Wrapper Library.
314 %description evas-devel -l pl.UTF-8
315 Pliki nagłówkowe biblioteka Ecore Evas Wrapper.
318 Summary: Static Ecore Evas Wrapper Library
319 Summary(pl.UTF-8): Biblioteka statyczna Ecore Evas Wrapper
320 Group: Development/Libraries
321 Requires: %{name}-evas-devel = %{version}-%{release}
323 %description evas-static
324 Static Ecore Evas Wrapper Library.
326 %description evas-static -l pl.UTF-8
327 Biblioteka statyczna Ecore Evas Wrapper.
340 %{!?with_static_libs:--disable-static} \
342 --enable-ecore-config \
343 --enable-ecore-desktop \
344 --enable-ecore-directfb \
346 --enable-ecore-file \
352 %{?with_xcb:--enable-ecore-x-xcb} \
353 --enable-ecore-evas \
354 --enable-ecore-evas-buffer \
355 --disable-ecore-evas-dfb \
356 --enable-ecore-evas-fb \
357 --enable-ecore-evas-sdl \
358 --enable-ecore-evas-xrender \
364 # --enable-ecore-evas-dfb needs evas-directfb (currently disabled)
369 rm -rf $RPM_BUILD_ROOT
372 DESTDIR=$RPM_BUILD_ROOT
375 rm -rf $RPM_BUILD_ROOT
377 %post -p /sbin/ldconfig
378 %postun -p /sbin/ldconfig
379 %post con -p /sbin/ldconfig
380 %postun con -p /sbin/ldconfig
381 %post config -p /sbin/ldconfig
382 %postun config -p /sbin/ldconfig
383 %post directfb -p /sbin/ldconfig
384 %postun directfb -p /sbin/ldconfig
385 %post desktop -p /sbin/ldconfig
386 %postun desktop -p /sbin/ldconfig
387 %post evas -p /sbin/ldconfig
388 %postun evas -p /sbin/ldconfig
389 %post fb -p /sbin/ldconfig
390 %postun fb -p /sbin/ldconfig
391 %post file -p /sbin/ldconfig
392 %postun file -p /sbin/ldconfig
393 %post imf -p /sbin/ldconfig
394 %postun imf -p /sbin/ldconfig
395 %post imf-evas -p /sbin/ldconfig
396 %postun imf-evas -p /sbin/ldconfig
397 %post ipc -p /sbin/ldconfig
398 %postun ipc -p /sbin/ldconfig
399 %post job -p /sbin/ldconfig
400 %postun job -p /sbin/ldconfig
401 %post sdl -p /sbin/ldconfig
402 %postun sdl -p /sbin/ldconfig
403 %post txt -p /sbin/ldconfig
404 %postun txt -p /sbin/ldconfig
405 %post x -p /sbin/ldconfig
406 %postun x -p /sbin/ldconfig
409 %defattr(644,root,root,755)
410 %doc AUTHORS COPYING COPYING-PLAIN README
411 %attr(755,root,root) %{_libdir}/libecore.so.*.*.*
412 %attr(755,root,root) %ghost %{_libdir}/libecore.so.0
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/libecore_con.so.*.*.*
417 %attr(755,root,root) %ghost %{_libdir}/libecore_con.so.0
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_bindir}/ecore_config
422 %attr(755,root,root) %{_libdir}/libecore_config.so.*.*.*
423 %attr(755,root,root) %ghost %{_libdir}/libecore_config.so.0
426 %defattr(644,root,root,755)
427 %attr(755,root,root) %{_libdir}/libecore_directfb.so.*.*.*
428 %attr(755,root,root) %ghost %{_libdir}/libecore_directfb.so.0
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_libdir}/libecore_desktop.so.*.*.*
433 %attr(755,root,root) %ghost %{_libdir}/libecore_desktop.so.0
436 %defattr(644,root,root,755)
437 %attr(755,root,root) %{_libdir}/libecore_fb.so.*.*.*
438 %attr(755,root,root) %ghost %{_libdir}/libecore_fb.so.0
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_libdir}/libecore_file.so.*.*.*
443 %attr(755,root,root) %ghost %{_libdir}/libecore_file.so.0
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/libecore_imf.so.*.*.*
448 %attr(755,root,root) %ghost %{_libdir}/libecore_imf.so.0
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/libecore_imf_evas.so.*.*.*
453 %attr(755,root,root) %ghost %{_libdir}/libecore_imf_evas.so.0
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_libdir}/libecore_ipc.so.*.*.*
458 %attr(755,root,root) %ghost %{_libdir}/libecore_ipc.so.0
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/libecore_job.so.*.*.*
463 %attr(755,root,root) %ghost %{_libdir}/libecore_job.so.0
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_libdir}/libecore_sdl.so.*.*.*
468 %attr(755,root,root) %ghost %{_libdir}/libecore_sdl.so.0
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/libecore_txt.so.*.*.*
473 %attr(755,root,root) %ghost %{_libdir}/libecore_txt.so.0
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_libdir}/libecore_x.so.*.*.*
478 %attr(755,root,root) %ghost %{_libdir}/libecore_x.so.0
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/libecore.so
483 %{_libdir}/libecore.la
484 %{_includedir}/Ecore.h
485 %{_includedir}/Ecore_Data.h
486 %{_includedir}/Ecore_Str.h
487 %{_pkgconfigdir}/ecore.pc
489 %attr(755,root,root) %{_libdir}/libecore_con.so
490 %attr(755,root,root) %{_libdir}/libecore_config.so
491 %attr(755,root,root) %{_libdir}/libecore_directfb.so
492 %attr(755,root,root) %{_libdir}/libecore_desktop.so
493 %attr(755,root,root) %{_libdir}/libecore_fb.so
494 %attr(755,root,root) %{_libdir}/libecore_file.so
495 %attr(755,root,root) %{_libdir}/libecore_imf.so
496 %attr(755,root,root) %{_libdir}/libecore_ipc.so
497 %attr(755,root,root) %{_libdir}/libecore_job.so
498 %attr(755,root,root) %{_libdir}/libecore_sdl.so
499 %attr(755,root,root) %{_libdir}/libecore_txt.so
500 %attr(755,root,root) %{_libdir}/libecore_x.so
501 %{_libdir}/libecore_con.la
502 %{_libdir}/libecore_config.la
503 %{_libdir}/libecore_directfb.la
504 %{_libdir}/libecore_desktop.la
505 %{_libdir}/libecore_fb.la
506 %{_libdir}/libecore_file.la
507 %{_libdir}/libecore_imf.la
508 %{_libdir}/libecore_ipc.la
509 %{_libdir}/libecore_job.la
510 %{_libdir}/libecore_sdl.la
511 %{_libdir}/libecore_txt.la
512 %{_libdir}/libecore_x.la
513 %{_includedir}/Ecore_Con.h
514 %{_includedir}/Ecore_Config.h
515 %{_includedir}/Ecore_Desktop.h
516 %{_includedir}/Ecore_DirectFB.h
517 %{_includedir}/Ecore_Fb.h
518 %{_includedir}/Ecore_File.h
519 %{_includedir}/Ecore_IMF.h
520 %{_includedir}/Ecore_Ipc.h
521 %{_includedir}/Ecore_Job.h
522 %{_includedir}/Ecore_Sdl.h
523 %{_includedir}/Ecore_Txt.h
524 %{_includedir}/Ecore_X.h
525 %{_includedir}/Ecore_X_Atoms.h
526 %{_includedir}/Ecore_X_Cursor.h
527 %{_pkgconfigdir}/ecore-con.pc
528 %{_pkgconfigdir}/ecore-config.pc
529 %{_pkgconfigdir}/ecore-directfb.pc
530 %{_pkgconfigdir}/ecore-desktop.pc
531 %{_pkgconfigdir}/ecore-fb.pc
532 %{_pkgconfigdir}/ecore-file.pc
533 %{_pkgconfigdir}/ecore-imf.pc
534 %{_pkgconfigdir}/ecore-ipc.pc
535 %{_pkgconfigdir}/ecore-job.pc
536 %{_pkgconfigdir}/ecore-sdl.pc
537 %{_pkgconfigdir}/ecore-txt.pc
538 %{_pkgconfigdir}/ecore-x.pc
540 %if %{with static_libs}
542 %defattr(644,root,root,755)
543 %{_libdir}/libecore.a
545 %{_libdir}/libecore_con.a
546 %{_libdir}/libecore_config.a
547 %{_libdir}/libecore_directfb.a
548 %{_libdir}/libecore_desktop.a
549 %{_libdir}/libecore_fb.a
550 %{_libdir}/libecore_file.a
551 %{_libdir}/libecore_imf.a
552 %{_libdir}/libecore_ipc.a
553 %{_libdir}/libecore_job.a
554 %{_libdir}/libecore_sdl.a
555 %{_libdir}/libecore_txt.a
556 %{_libdir}/libecore_x.a
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_libdir}/libecore_evas.so.*.*.*
562 %attr(755,root,root) %ghost %{_libdir}/libecore_evas.so.0
565 %defattr(644,root,root,755)
566 %attr(755,root,root) %{_libdir}/libecore_evas.so
567 %{_libdir}/libecore_evas.la
568 %{_includedir}/Ecore_Evas.h
569 %{_pkgconfigdir}/ecore-evas.pc
571 %attr(755,root,root) %{_libdir}/libecore_imf_evas.so
572 %{_libdir}/libecore_imf_evas.la
573 %{_includedir}/Ecore_IMF_Evas.h
574 %{_pkgconfigdir}/ecore-imf-evas.pc
577 %defattr(644,root,root,755)
578 %{_libdir}/libecore_evas.a
580 %{_libdir}/libecore_imf_evas.a