3 %bcond_without static_libs # don't build static library
4 %bcond_with xcb # XCB instead of Xlib
7 %define snapdate 2010-06-27
8 %define svn -ver-svn-06
9 Summary: Enlightened Core X interface library
10 Summary(pl.UTF-8): Biblioteka interfejsu X Enlightened Core
16 Source0: http://download.enlightenment.org/snapshots/%{snapdate}/%{name}-%{version}.tar.bz2
17 # Source0-md5: 52245ac4e4c83e579692eff6380e56b1
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}
84 Ecore Enlightened Property Library.
86 %description config -l pl.UTF-8
87 Biblioteka właściwości Ecore.
90 Summary: Ecore freedesktop.org .desktop, icon, menu parsing Library
91 Summary(pl.UTF-8): Biblioteka przetwarzania plików .desktop, ikon i menu
93 Requires: %{name}-file = %{version}-%{release}
97 Ecore freedesktop.org .desktop, icon, menu parsing Library.
99 %description desktop -l pl.UTF-8
100 Biblioteka przetwarzania plików .desktop, ikon i menu.
103 Summary: Ecore frame buffer system functions
104 Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
106 Requires: %{name} = %{version}-%{release}
107 Requires: DirectFB >= 0.9.16
108 Conflicts: ecore-libs
110 %description directfb
111 Ecore frame buffer system functions.
113 %description directfb -l pl.UTF-8
114 Funkcje systemowe framebuffera Ecore.
117 Summary: Ecore frame buffer system functions
118 Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
120 Requires: %{name} = %{version}-%{release}
121 Conflicts: ecore-libs
124 Ecore frame buffer system functions.
126 %description fb -l pl.UTF-8
127 Funkcje systemowe framebuffera Ecore.
130 Summary: Ecore File Library
131 Summary(pl.UTF-8): Biblioteka Ecore File
133 Requires: %{name} = %{version}-%{release}
134 Conflicts: ecore-libs
139 %description file -l pl.UTF-8
140 Biblioteka Ecore File.
143 Summary: Ecore library IMF module
144 Summary(pl.UTF-8): Moduł IMF biblioteki Ecore
146 Requires: %{name}-con = %{version}-%{release}
147 Conflicts: ecore-libs
150 Ecore library IMF module.
152 %description imf -l pl.UTF-8
153 Moduł IMF biblioteki Ecore.
156 Summary: Ecore library IMF Evas module
157 Summary(pl.UTF-8): Moduł IMF Evas biblioteki Ecore
159 Requires: %{name}-evas = %{version}-%{release}
160 Requires: %{name}-imf = %{version}-%{release}
161 Conflicts: ecore-libs
163 %description imf-evas
164 Ecore library IMF Evas module.
166 %description imf-evas -l pl.UTF-8
167 Moduł IMF Evas biblioteki Ecore.
170 Summary: Ecore library Input module
171 Summary(pl.UTF-8): Moduł Input biblioteki Ecore
173 Requires: %{name} = %{version}-%{release}
174 Conflicts: ecore-libs
177 Ecore library Input module.
179 %description input -l pl.UTF-8
180 Moduł Input biblioteki Ecore.
183 Summary: Ecore library Input Evas module
184 Summary(pl.UTF-8): Moduł Input Evas biblioteki Ecore
186 Requires: %{name}-evas = %{version}-%{release}
187 Requires: %{name}-input = %{version}-%{release}
188 Conflicts: ecore-libs
190 %description input-evas
191 Ecore library Input Evas module.
193 %description input-evas -l pl.UTF-8
194 Moduł Input Evas biblioteki Ecore.
197 Summary: Ecore inter-process communication functions
198 Summary(pl.UTF-8): Funkcje komunikacji międzyprocesowej Ecore
200 Requires: %{name}-con = %{version}-%{release}
201 Conflicts: ecore-libs
204 Ecore inter-process communication functions.
206 %description ipc -l pl.UTF-8
207 Funkcje komunikacji międzyprocesowej Ecore.
210 Summary: Ecore job dealing functions
211 Summary(pl.UTF-8): Funkcje obsługi zadań Ecore
213 Requires: %{name} = %{version}-%{release}
214 Conflicts: ecore-libs
217 Ecore job dealing functions.
219 %description job -l pl.UTF-8
220 Funkcje obsługi zadań Ecore.
223 Summary: Ecore library SDL module
224 Summary(pl.UTF-8): Moduł SDL biblioteki Ecore
226 Requires: %{name} = %{version}-%{release}
227 Conflicts: ecore-libs
230 Ecore library SDL module.
232 %description sdl -l pl.UTF-8
233 Moduł SDL biblioteki Ecore.
236 Summary: Ecore text encoding conversion functions
237 Summary(pl.UTF-8): Funkcje konwersji kodowania tekstu Ecore
239 Requires: %{name} = %{version}-%{release}
240 Conflicts: ecore-libs
243 Ecore text encoding conversion functions.
245 %description txt -l pl.UTF-8
246 Funkcje konwersji kodowania tekstu Ecore.
249 Summary: Ecore functions for dealing with the X Window System
250 Summary(pl.UTF-8): Funkcje Ecore do obsługi X Window System
252 Conflicts: ecore-libs
255 Ecore functions for dealing with the X Window System.
257 %description x -l pl.UTF-8
258 Funkcje Ecore do obsługi X Window System.
261 Summary: Ecore header files
262 Summary(pl.UTF-8): Pliki nagłówkowe Ecore
263 Group: Development/Libraries
264 Requires: %{name} = %{version}-%{release}
265 Requires: %{name}-con = %{version}-%{release}
266 # + openssl-devel curl-devel
267 Requires: %{name}-config = %{version}-%{release}
268 # + eet-devel >= 0.9.10.038
269 Requires: %{name}-directfb = %{version}-%{release}
270 # + DirectFB-devel >= 0.9.16
271 Requires: %{name}-fb = %{version}-%{release}
273 Requires: %{name}-file = %{version}-%{release}
275 Requires: %{name}-imf = %{version}-%{release}
276 Requires: %{name}-ipc = %{version}-%{release}
277 Requires: %{name}-sdl = %{version}-%{release}
279 Requires: %{name}-x = %{version}-%{release}
281 # + libxcb-devel xcb-util-devel
283 # + 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
287 Ecore development files.
289 %description devel -l pl.UTF-8
290 Pliki programistyczne Ecore.
293 Summary: Static Ecore libraries
294 Summary(pl.UTF-8): Statyczne biblioteki Ecore
295 Group: Development/Libraries
296 Requires: %{name}-devel = %{version}-%{release}
299 Static Ecore libraries.
301 %description static -l pl.UTF-8
302 Statyczne biblioteki Ecore.
305 Summary: Ecore Evas Wrapper Library
306 Summary(pl.UTF-8): Biblioteka Ecore Evas Wrapper
308 #Requires: %{name}-directfb = %{version}-%{release}
309 Requires: %{name}-fb = %{version}-%{release}
310 Requires: %{name}-sdl = %{version}-%{release}
311 Requires: %{name}-x = %{version}-%{release}
312 Requires: evas >= %{version}
313 Conflicts: ecore-libs
316 Ecore Evas Wrapper Library.
318 %description evas -l pl.UTF-8
319 Biblioteka Ecore Evas Wrapper.
322 Summary: Header files for Ecore Evas Wrapper Library
323 Summary(pl.UTF-8): Pliki nagłówkowe biblioteka Ecore Evas Wrapper
324 Group: Development/Libraries
325 Requires: %{name}-devel = %{version}-%{release}
326 Requires: %{name}-imf-evas = %{version}-%{release}
327 #Requires: DirectFB-devel >= 0.9.16
329 Requires: evas-devel >= %{version}
330 Requires: tslib-devel
332 %description evas-devel
333 Header files for Ecore Evas Wrapper Library.
335 %description evas-devel -l pl.UTF-8
336 Pliki nagłówkowe biblioteka Ecore Evas Wrapper.
339 Summary: Static Ecore Evas Wrapper Library
340 Summary(pl.UTF-8): Biblioteka statyczna Ecore Evas Wrapper
341 Group: Development/Libraries
342 Requires: %{name}-evas-devel = %{version}-%{release}
344 %description evas-static
345 Static Ecore Evas Wrapper Library.
347 %description evas-static -l pl.UTF-8
348 Biblioteka statyczna Ecore Evas Wrapper.
360 %{!?with_static_libs:--disable-static} \
362 --enable-ecore-config \
363 --enable-ecore-directfb \
365 --enable-ecore-file \
369 %{?with_xcb:--enable-ecore-x-xcb} \
370 --enable-ecore-evas \
371 --enable-ecore-evas-buffer \
372 --disable-ecore-evas-dfb \
373 --enable-ecore-evas-fb \
374 --enable-ecore-evas-sdl \
375 --enable-ecore-evas-xrender \
381 # --enable-ecore-evas-dfb needs evas-directfb (currently disabled)
386 rm -rf $RPM_BUILD_ROOT
389 DESTDIR=$RPM_BUILD_ROOT
391 %find_lang %{name} --all-name
394 rm -rf $RPM_BUILD_ROOT
396 %post -p /sbin/ldconfig
397 %postun -p /sbin/ldconfig
398 %post con -p /sbin/ldconfig
399 %postun con -p /sbin/ldconfig
400 %post config -p /sbin/ldconfig
401 %postun config -p /sbin/ldconfig
402 %post directfb -p /sbin/ldconfig
403 %postun directfb -p /sbin/ldconfig
404 %post desktop -p /sbin/ldconfig
405 %postun desktop -p /sbin/ldconfig
406 %post evas -p /sbin/ldconfig
407 %postun evas -p /sbin/ldconfig
408 %post fb -p /sbin/ldconfig
409 %postun fb -p /sbin/ldconfig
410 %post file -p /sbin/ldconfig
411 %postun file -p /sbin/ldconfig
412 %post imf -p /sbin/ldconfig
413 %postun imf -p /sbin/ldconfig
414 %post imf-evas -p /sbin/ldconfig
415 %postun imf-evas -p /sbin/ldconfig
416 %post input -p /sbin/ldconfig
417 %postun input -p /sbin/ldconfig
418 %post input-evas -p /sbin/ldconfig
419 %postun input-evas -p /sbin/ldconfig
420 %post ipc -p /sbin/ldconfig
421 %postun ipc -p /sbin/ldconfig
422 %post sdl -p /sbin/ldconfig
423 %postun sdl -p /sbin/ldconfig
424 %post x -p /sbin/ldconfig
425 %postun x -p /sbin/ldconfig
427 %files -f %{name}.lang
428 %defattr(644,root,root,755)
429 %doc AUTHORS COPYING COPYING-PLAIN README
430 %attr(755,root,root) %{_libdir}/libecore%{svn}.so.*.*.*
431 %attr(755,root,root) %ghost %{_libdir}/libecore%{svn}.so.0
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/libecore_con%{svn}.so.*.*.*
436 %attr(755,root,root) %ghost %{_libdir}/libecore_con%{svn}.so.0
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_bindir}/ecore_config
441 %attr(755,root,root) %{_libdir}/libecore_config%{svn}.so.*.*.*
442 %attr(755,root,root) %ghost %{_libdir}/libecore_config%{svn}.so.0
445 %defattr(644,root,root,755)
446 %attr(755,root,root) %{_libdir}/libecore_directfb%{svn}.so.*.*.*
447 %attr(755,root,root) %ghost %{_libdir}/libecore_directfb%{svn}.so.0
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/libecore_desktop.so.*.*.*
453 %attr(755,root,root) %ghost %{_libdir}/libecore_desktop.so.0
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_libdir}/libecore_fb%{svn}.so.*.*.*
459 %attr(755,root,root) %ghost %{_libdir}/libecore_fb%{svn}.so.0
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/libecore_file%{svn}.so.*.*.*
464 %attr(755,root,root) %ghost %{_libdir}/libecore_file%{svn}.so.0
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/libecore_imf%{svn}.so.*.*.*
469 %attr(755,root,root) %ghost %{_libdir}/libecore_imf%{svn}.so.0
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/libecore_imf_evas%{svn}.so.*.*.*
474 %attr(755,root,root) %ghost %{_libdir}/libecore_imf_evas%{svn}.so.0
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/libecore_input%{svn}.so.*.*.*
479 %attr(755,root,root) %ghost %{_libdir}/libecore_input%{svn}.so.0
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/libecore_input_evas%{svn}.so.*.*.*
484 %attr(755,root,root) %ghost %{_libdir}/libecore_input_evas%{svn}.so.0
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_libdir}/libecore_ipc%{svn}.so.*.*.*
489 %attr(755,root,root) %ghost %{_libdir}/libecore_ipc%{svn}.so.0
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/libecore_job.so.*.*.*
495 %attr(755,root,root) %ghost %{_libdir}/libecore_job.so.0
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_libdir}/libecore_sdl%{svn}.so.*.*.*
501 %attr(755,root,root) %ghost %{_libdir}/libecore_sdl%{svn}.so.0
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/libecore_txt.so.*.*.*
507 %attr(755,root,root) %ghost %{_libdir}/libecore_txt.so.0
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{_libdir}/libecore_x%{svn}.so.*.*.*
513 %attr(755,root,root) %ghost %{_libdir}/libecore_x%{svn}.so.0
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/libecore.so
518 %{_libdir}/libecore.la
519 %{_includedir}/Ecore.h
520 %{_includedir}/Ecore_Getopt.h
521 %{_includedir}/Ecore_Input.h
522 #%{_includedir}/Ecore_Data.h
523 #%{_includedir}/Ecore_Str.h
524 %{_pkgconfigdir}/ecore.pc
526 %attr(755,root,root) %{_libdir}/libecore_con.so
527 %attr(755,root,root) %{_libdir}/libecore_config.so
528 %attr(755,root,root) %{_libdir}/libecore_directfb.so
529 #%attr(755,root,root) %{_libdir}/libecore_desktop.so
530 %attr(755,root,root) %{_libdir}/libecore_fb.so
531 %attr(755,root,root) %{_libdir}/libecore_file.so
532 %attr(755,root,root) %{_libdir}/libecore_imf.so
533 %attr(755,root,root) %{_libdir}/libecore_input.so
534 %attr(755,root,root) %{_libdir}/libecore_ipc.so
535 #%attr(755,root,root) %{_libdir}/libecore_job.so
536 %attr(755,root,root) %{_libdir}/libecore_sdl.so
537 #%attr(755,root,root) %{_libdir}/libecore_txt.so
538 %attr(755,root,root) %{_libdir}/libecore_x.so
539 %{_libdir}/libecore_con.la
540 %{_libdir}/libecore_config.la
541 %{_libdir}/libecore_directfb.la
542 #%{_libdir}/libecore_desktop.la
543 %{_libdir}/libecore_fb.la
544 %{_libdir}/libecore_file.la
545 %{_libdir}/libecore_imf.la
546 %{_libdir}/libecore_input.la
547 %{_libdir}/libecore_ipc.la
548 #%{_libdir}/libecore_job.la
549 %{_libdir}/libecore_sdl.la
550 #%{_libdir}/libecore_txt.la
551 %{_libdir}/libecore_x.la
552 %{_includedir}/Ecore_Con.h
553 %{_includedir}/Ecore_Config.h
554 #%{_includedir}/Ecore_Desktop.h
555 %{_includedir}/Ecore_DirectFB.h
556 %{_includedir}/Ecore_Fb.h
557 %{_includedir}/Ecore_File.h
558 %{_includedir}/Ecore_IMF.h
559 %{_includedir}/Ecore_Ipc.h
560 #%{_includedir}/Ecore_Job.h
561 %{_includedir}/Ecore_Sdl.h
562 #%{_includedir}/Ecore_Txt.h
563 %{_includedir}/Ecore_X.h
564 %{_includedir}/Ecore_X_Atoms.h
565 %{_includedir}/Ecore_X_Cursor.h
566 %{_pkgconfigdir}/ecore-con.pc
567 %{_pkgconfigdir}/ecore-config.pc
568 %{_pkgconfigdir}/ecore-directfb.pc
569 #%{_pkgconfigdir}/ecore-desktop.pc
570 %{_pkgconfigdir}/ecore-fb.pc
571 %{_pkgconfigdir}/ecore-file.pc
572 %{_pkgconfigdir}/ecore-imf.pc
573 %{_pkgconfigdir}/ecore-input.pc
574 %{_pkgconfigdir}/ecore-ipc.pc
575 #%{_pkgconfigdir}/ecore-job.pc
576 %{_pkgconfigdir}/ecore-sdl.pc
577 #%{_pkgconfigdir}/ecore-txt.pc
578 %{_pkgconfigdir}/ecore-x.pc
580 %if %{with static_libs}
582 %defattr(644,root,root,755)
583 %{_libdir}/libecore.a
585 %{_libdir}/libecore_con.a
586 %{_libdir}/libecore_config.a
587 %{_libdir}/libecore_directfb.a
588 #%{_libdir}/libecore_desktop.a
589 %{_libdir}/libecore_fb.a
590 %{_libdir}/libecore_file.a
591 %{_libdir}/libecore_imf.a
592 %{_libdir}/libecore_input.a
593 %{_libdir}/libecore_ipc.a
594 #%{_libdir}/libecore_job.a
595 %{_libdir}/libecore_sdl.a
596 #%{_libdir}/libecore_txt.a
597 %{_libdir}/libecore_x.a
601 %defattr(644,root,root,755)
602 %attr(755,root,root) %{_libdir}/libecore_evas%{svn}.so.*.*.*
603 %attr(755,root,root) %ghost %{_libdir}/libecore_evas%{svn}.so.0
606 %defattr(644,root,root,755)
607 %attr(755,root,root) %{_libdir}/libecore_evas.so
608 %{_libdir}/libecore_evas.la
609 %{_includedir}/Ecore_Evas.h
610 %{_includedir}/Ecore_Input_Evas.h
611 %{_pkgconfigdir}/ecore-evas.pc
613 %attr(755,root,root) %{_libdir}/libecore_imf_evas.so
614 %attr(755,root,root) %{_libdir}/libecore_input_evas.so
615 %{_libdir}/libecore_imf_evas.la
616 %{_libdir}/libecore_input_evas.la
617 %{_includedir}/Ecore_IMF_Evas.h
618 %{_pkgconfigdir}/ecore-imf-evas.pc
619 %{_pkgconfigdir}/ecore-input-evas.pc
622 %defattr(644,root,root,755)
623 %{_libdir}/libecore_evas.a
625 %{_libdir}/libecore_imf_evas.a
626 %{_libdir}/libecore_input_evas.a