]> git.pld-linux.org Git - packages/ecore.git/blob - ecore.spec
- updated to 20080813 snap
[packages/ecore.git] / ecore.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 %bcond_with     xcb             # XCB instead of Xlib
5 #
6 %define         _snap   20080813
7 %define         eet_ver 1.0.1
8
9 Summary:        Enlightened Core X interface library
10 Summary(pl.UTF-8):      Biblioteka interfejsu X Enlightened Core
11 Name:           ecore
12 Version:        0.9.9.044
13 Release:        0.%{_snap}.1
14 License:        BSD
15 Group:          X11/Libraries
16 Source0:        %{name}-%{version}-%{_snap}.tar.bz2
17 # Source0-md5:  d04c6ca6acfd6b05b81ac4d65b2f229b
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
30 %if %{with xcb}
31 BuildRequires:  libxcb-devel
32 BuildRequires:  xcb-util-devel
33 %else
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
43 %endif
44 Requires:       evas >= %{version}
45 Obsoletes:      ecore-libs
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %undefine       __cxx
49
50 %description
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.
55
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.
62
63 %package con
64 Summary:        Ecore Connection Library
65 Summary(pl.UTF-8):      Biblioteka połączeń Ecore
66 Group:          Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Conflicts:      ecore-libs
69
70 %description con
71 Ecore Connection Library.
72
73 %description con -l pl.UTF-8
74 Biblioteka połączeń Ecore.
75
76 %package config
77 Summary:        Ecore Enlightened Property Library
78 Summary(pl.UTF-8):      Biblioteka właściwości Ecore
79 Group:          Libraries
80 Requires:       %{name}-ipc = %{version}-%{release}
81 Requires:       evas-devel >= %{version}
82 Requires:       eet-devel >= %{eet_ver}
83 Conflicts:      ecore-libs
84
85 %description config
86 Ecore Enlightened Property Library.
87
88 %description config -l pl.UTF-8
89 Biblioteka właściwości Ecore.
90
91 %package desktop
92 Summary:        Ecore freedesktop.org .desktop, icon, menu parsing Library
93 Summary(pl.UTF-8):      Biblioteka przetwarzania plików .desktop, ikon i menu
94 Group:          X11/Libraries
95 Requires:       %{name}-file = %{version}-%{release}
96 Conflicts:      ecore-libs
97
98 %description desktop
99 Ecore freedesktop.org .desktop, icon, menu parsing Library.
100
101 %description desktop -l pl.UTF-8
102 Biblioteka przetwarzania plików .desktop, ikon i menu.
103
104 %package directfb
105 Summary:        Ecore frame buffer system functions
106 Summary(pl.UTF-8):      Funkcje systemowe framebuffera Ecore
107 Group:          Libraries
108 Requires:       %{name} = %{version}-%{release}
109 Requires:       DirectFB >= 0.9.16
110 Conflicts:      ecore-libs
111
112 %description directfb
113 Ecore frame buffer system functions.
114
115 %description directfb -l pl.UTF-8
116 Funkcje systemowe framebuffera Ecore.
117
118 %package fb
119 Summary:        Ecore frame buffer system functions
120 Summary(pl.UTF-8):      Funkcje systemowe framebuffera Ecore
121 Group:          Libraries
122 Requires:       %{name} = %{version}-%{release}
123 Conflicts:      ecore-libs
124
125 %description fb
126 Ecore frame buffer system functions.
127
128 %description fb -l pl.UTF-8
129 Funkcje systemowe framebuffera Ecore.
130
131 %package file
132 Summary:        Ecore File Library
133 Summary(pl.UTF-8):      Biblioteka Ecore File
134 Group:          Libraries
135 Requires:       %{name} = %{version}-%{release}
136 Conflicts:      ecore-libs
137
138 %description file
139 Ecore File Library.
140
141 %description file -l pl.UTF-8
142 Biblioteka Ecore File.
143
144 %package imf
145 Summary:        Ecore library IMF module
146 Summary(pl.UTF-8):      Moduł IMF biblioteki Ecore
147 Group:          Libraries
148 Requires:       %{name}-con = %{version}-%{release}
149 Conflicts:      ecore-libs
150
151 %description imf
152 Ecore library IMF module.
153
154 %description imf -l pl.UTF-8
155 Moduł IMF biblioteki Ecore.
156
157 %package imf-evas
158 Summary:        Ecore library IMF Evas module
159 Summary(pl.UTF-8):      Moduł IMF Evas biblioteki Ecore
160 Group:          Libraries
161 Requires:       %{name}-evas = %{version}-%{release}
162 Requires:       %{name}-imf = %{version}-%{release}
163 Conflicts:      ecore-libs
164
165 %description imf-evas
166 Ecore library IMF Evas module.
167
168 %description imf-evas -l pl.UTF-8
169 Moduł IMF Evas biblioteki Ecore.
170
171 %package ipc
172 Summary:        Ecore inter-process communication functions
173 Summary(pl.UTF-8):      Funkcje komunikacji międzyprocesowej Ecore
174 Group:          Libraries
175 Requires:       %{name}-con = %{version}-%{release}
176 Conflicts:      ecore-libs
177
178 %description ipc
179 Ecore inter-process communication functions.
180
181 %description ipc -l pl.UTF-8
182 Funkcje komunikacji międzyprocesowej Ecore.
183
184 %package job
185 Summary:        Ecore job dealing functions
186 Summary(pl.UTF-8):      Funkcje obsługi zadań Ecore
187 Group:          Libraries
188 Requires:       %{name} = %{version}-%{release}
189 Conflicts:      ecore-libs
190
191 %description job
192 Ecore job dealing functions.
193
194 %description job -l pl.UTF-8
195 Funkcje obsługi zadań Ecore.
196
197 %package sdl
198 Summary:        Ecore library SDL module
199 Summary(pl.UTF-8):      Moduł SDL biblioteki Ecore
200 Group:          Libraries
201 Requires:       %{name} = %{version}-%{release}
202 Conflicts:      ecore-libs
203
204 %description sdl
205 Ecore library SDL module.
206
207 %description sdl -l pl.UTF-8
208 Moduł SDL biblioteki Ecore.
209
210 %package txt
211 Summary:        Ecore text encoding conversion functions
212 Summary(pl.UTF-8):      Funkcje konwersji kodowania tekstu Ecore
213 Group:          Libraries
214 Requires:       %{name} = %{version}-%{release}
215 Conflicts:      ecore-libs
216
217 %description txt
218 Ecore text encoding conversion functions.
219
220 %description txt -l pl.UTF-8
221 Funkcje konwersji kodowania tekstu Ecore.
222
223 %package x
224 Summary:        Ecore functions for dealing with the X Window System
225 Summary(pl.UTF-8):      Funkcje Ecore do obsługi X Window System
226 Group:          X11/Libraries
227 Requires:       %{name}-txt = %{version}-%{release}
228 Conflicts:      ecore-libs
229
230 %description x
231 Ecore functions for dealing with the X Window System.
232
233 %description x -l pl.UTF-8
234 Funkcje Ecore do obsługi X Window System.
235
236 %package devel
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}
249 # + tslib-devel
250 Requires:       %{name}-file = %{version}-%{release}
251 # + curl-devel
252 Requires:       %{name}-imf = %{version}-%{release}
253 Requires:       %{name}-ipc = %{version}-%{release}
254 Requires:       %{name}-job = %{version}-%{release}
255 Requires:       %{name}-sdl = %{version}-%{release}
256 # + sdl-devel
257 Requires:       %{name}-txt = %{version}-%{release}
258 Requires:       %{name}-x = %{version}-%{release}
259 %if %{with xcb}
260 # + libxcb-devel xcb-util-devel
261 %else
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
263 %endif
264
265 %description devel
266 Ecore development files.
267
268 %description devel -l pl.UTF-8
269 Pliki programistyczne Ecore.
270
271 %package static
272 Summary:        Static Ecore libraries
273 Summary(pl.UTF-8):      Statyczne biblioteki Ecore
274 Group:          Development/Libraries
275 Requires:       %{name}-devel = %{version}-%{release}
276
277 %description static
278 Static Ecore libraries.
279
280 %description static -l pl.UTF-8
281 Statyczne biblioteki Ecore.
282
283 %package evas
284 Summary:        Ecore Evas Wrapper Library
285 Summary(pl.UTF-8):      Biblioteka Ecore Evas Wrapper
286 Group:          Libraries
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
293
294 %description evas
295 Ecore Evas Wrapper Library.
296
297 %description evas -l pl.UTF-8
298 Biblioteka Ecore Evas Wrapper.
299
300 %package evas-devel
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
307 Requires:       SDL-devel
308 Requires:       evas-devel >= %{version}
309 Requires:       tslib-devel
310
311 %description evas-devel
312 Header files for Ecore Evas Wrapper Library.
313
314 %description evas-devel -l pl.UTF-8
315 Pliki nagłówkowe biblioteka Ecore Evas Wrapper.
316
317 %package evas-static
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}
322
323 %description evas-static
324 Static Ecore Evas Wrapper Library.
325
326 %description evas-static -l pl.UTF-8
327 Biblioteka statyczna Ecore Evas Wrapper.
328
329 %prep
330 %setup -q -n %{name}-%{version}-%{_snap}
331
332 %build
333 %{__libtoolize}
334 %{__aclocal} -I m4
335 %{__autoconf}
336 %{__autoheader}
337 %{__automake}
338 %configure \
339         %{!?with_static_libs:--disable-static} \
340         --enable-ecore-con      \
341         --enable-ecore-config   \
342         --enable-ecore-desktop  \
343         --enable-ecore-directfb \
344         --enable-ecore-fb       \
345         --enable-ecore-file     \
346         --enable-ecore-ipc      \
347         --enable-ecore-job      \
348         --enable-ecore-sdl      \
349         --enable-ecore-txt      \
350         --enable-ecore-x        \
351         %{?with_xcb:--enable-ecore-x-xcb}       \
352         --enable-ecore-evas     \
353         --enable-ecore-evas-buffer \
354         --disable-ecore-evas-dfb \
355         --enable-ecore-evas-fb  \
356         --enable-ecore-evas-sdl \
357         --enable-ecore-evas-xrender \
358         --enable-curl           \
359         --enable-inotify        \
360         --enable-openssl        \
361         --enable-poll
362
363 # --enable-ecore-evas-dfb needs evas-directfb (currently disabled)
364
365 %{__make}
366
367 %install
368 rm -rf $RPM_BUILD_ROOT
369
370 %{__make} install \
371         DESTDIR=$RPM_BUILD_ROOT
372
373 %clean
374 rm -rf $RPM_BUILD_ROOT
375
376 %post   -p /sbin/ldconfig
377 %postun -p /sbin/ldconfig
378 %post   con     -p /sbin/ldconfig
379 %postun con     -p /sbin/ldconfig
380 %post   config  -p /sbin/ldconfig
381 %postun config  -p /sbin/ldconfig
382 %post   directfb -p /sbin/ldconfig
383 %postun directfb -p /sbin/ldconfig
384 %post   desktop -p /sbin/ldconfig
385 %postun desktop -p /sbin/ldconfig
386 %post   evas    -p /sbin/ldconfig
387 %postun evas    -p /sbin/ldconfig
388 %post   fb      -p /sbin/ldconfig
389 %postun fb      -p /sbin/ldconfig
390 %post   file    -p /sbin/ldconfig
391 %postun file    -p /sbin/ldconfig
392 %post   imf     -p /sbin/ldconfig
393 %postun imf     -p /sbin/ldconfig
394 %post   imf-evas -p /sbin/ldconfig
395 %postun imf-evas -p /sbin/ldconfig
396 %post   ipc     -p /sbin/ldconfig
397 %postun ipc     -p /sbin/ldconfig
398 %post   job     -p /sbin/ldconfig
399 %postun job     -p /sbin/ldconfig
400 %post   sdl     -p /sbin/ldconfig
401 %postun sdl     -p /sbin/ldconfig
402 %post   txt     -p /sbin/ldconfig
403 %postun txt     -p /sbin/ldconfig
404 %post   x       -p /sbin/ldconfig
405 %postun x       -p /sbin/ldconfig
406
407 %files
408 %defattr(644,root,root,755)
409 %doc AUTHORS COPYING COPYING-PLAIN README
410 %attr(755,root,root) %{_libdir}/libecore.so.*.*.*
411 %attr(755,root,root) %ghost %{_libdir}/libecore.so.0
412
413 %files con
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_libdir}/libecore_con.so.*.*.*
416 %attr(755,root,root) %ghost %{_libdir}/libecore_con.so.0
417
418 %files config
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_bindir}/ecore_config
421 %attr(755,root,root) %{_libdir}/libecore_config.so.*.*.*
422 %attr(755,root,root) %ghost %{_libdir}/libecore_config.so.0
423
424 %files directfb
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/libecore_directfb.so.*.*.*
427 %attr(755,root,root) %ghost %{_libdir}/libecore_directfb.so.0
428
429 %files desktop
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/libecore_desktop.so.*.*.*
432 %attr(755,root,root) %ghost %{_libdir}/libecore_desktop.so.0
433
434 %files fb
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_libdir}/libecore_fb.so.*.*.*
437 %attr(755,root,root) %ghost %{_libdir}/libecore_fb.so.0
438
439 %files file
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/libecore_file.so.*.*.*
442 %attr(755,root,root) %ghost %{_libdir}/libecore_file.so.0
443
444 %files imf
445 %defattr(644,root,root,755)
446 %attr(755,root,root) %{_libdir}/libecore_imf.so.*.*.*
447 %attr(755,root,root) %ghost %{_libdir}/libecore_imf.so.0
448
449 %files imf-evas
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/libecore_imf_evas.so.*.*.*
452 %attr(755,root,root) %ghost %{_libdir}/libecore_imf_evas.so.0
453
454 %files ipc
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_libdir}/libecore_ipc.so.*.*.*
457 %attr(755,root,root) %ghost %{_libdir}/libecore_ipc.so.0
458
459 %files job
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/libecore_job.so.*.*.*
462 %attr(755,root,root) %ghost %{_libdir}/libecore_job.so.0
463
464 %files sdl
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_libdir}/libecore_sdl.so.*.*.*
467 %attr(755,root,root) %ghost %{_libdir}/libecore_sdl.so.0
468
469 %files txt
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libecore_txt.so.*.*.*
472 %attr(755,root,root) %ghost %{_libdir}/libecore_txt.so.0
473
474 %files x
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_libdir}/libecore_x.so.*.*.*
477 %attr(755,root,root) %ghost %{_libdir}/libecore_x.so.0
478
479 %files devel
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/libecore.so
482 %{_libdir}/libecore.la
483 %{_includedir}/Ecore.h
484 %{_includedir}/Ecore_Data.h
485 %{_includedir}/Ecore_Str.h
486 %{_pkgconfigdir}/ecore.pc
487 # modules
488 %attr(755,root,root) %{_libdir}/libecore_con.so
489 %attr(755,root,root) %{_libdir}/libecore_config.so
490 %attr(755,root,root) %{_libdir}/libecore_directfb.so
491 %attr(755,root,root) %{_libdir}/libecore_desktop.so
492 %attr(755,root,root) %{_libdir}/libecore_fb.so
493 %attr(755,root,root) %{_libdir}/libecore_file.so
494 %attr(755,root,root) %{_libdir}/libecore_imf.so
495 %attr(755,root,root) %{_libdir}/libecore_ipc.so
496 %attr(755,root,root) %{_libdir}/libecore_job.so
497 %attr(755,root,root) %{_libdir}/libecore_sdl.so
498 %attr(755,root,root) %{_libdir}/libecore_txt.so
499 %attr(755,root,root) %{_libdir}/libecore_x.so
500 %{_libdir}/libecore_con.la
501 %{_libdir}/libecore_config.la
502 %{_libdir}/libecore_directfb.la
503 %{_libdir}/libecore_desktop.la
504 %{_libdir}/libecore_fb.la
505 %{_libdir}/libecore_file.la
506 %{_libdir}/libecore_imf.la
507 %{_libdir}/libecore_ipc.la
508 %{_libdir}/libecore_job.la
509 %{_libdir}/libecore_sdl.la
510 %{_libdir}/libecore_txt.la
511 %{_libdir}/libecore_x.la
512 %{_includedir}/Ecore_Con.h
513 %{_includedir}/Ecore_Config.h
514 %{_includedir}/Ecore_Desktop.h
515 %{_includedir}/Ecore_DirectFB.h
516 %{_includedir}/Ecore_Fb.h
517 %{_includedir}/Ecore_File.h
518 %{_includedir}/Ecore_IMF.h
519 %{_includedir}/Ecore_Ipc.h
520 %{_includedir}/Ecore_Job.h
521 %{_includedir}/Ecore_Sdl.h
522 %{_includedir}/Ecore_Txt.h
523 %{_includedir}/Ecore_X.h
524 %{_includedir}/Ecore_X_Atoms.h
525 %{_includedir}/Ecore_X_Cursor.h
526 %{_pkgconfigdir}/ecore-con.pc
527 %{_pkgconfigdir}/ecore-config.pc
528 %{_pkgconfigdir}/ecore-directfb.pc
529 %{_pkgconfigdir}/ecore-desktop.pc
530 %{_pkgconfigdir}/ecore-fb.pc
531 %{_pkgconfigdir}/ecore-file.pc
532 %{_pkgconfigdir}/ecore-imf.pc
533 %{_pkgconfigdir}/ecore-ipc.pc
534 %{_pkgconfigdir}/ecore-job.pc
535 %{_pkgconfigdir}/ecore-sdl.pc
536 %{_pkgconfigdir}/ecore-txt.pc
537 %{_pkgconfigdir}/ecore-x.pc
538
539 %if %{with static_libs}
540 %files static
541 %defattr(644,root,root,755)
542 %{_libdir}/libecore.a
543 # modules
544 %{_libdir}/libecore_con.a
545 %{_libdir}/libecore_config.a
546 %{_libdir}/libecore_directfb.a
547 %{_libdir}/libecore_desktop.a
548 %{_libdir}/libecore_fb.a
549 %{_libdir}/libecore_file.a
550 %{_libdir}/libecore_imf.a
551 %{_libdir}/libecore_ipc.a
552 %{_libdir}/libecore_job.a
553 %{_libdir}/libecore_sdl.a
554 %{_libdir}/libecore_txt.a
555 %{_libdir}/libecore_x.a
556 %endif
557
558 %files evas
559 %defattr(644,root,root,755)
560 %attr(755,root,root) %{_libdir}/libecore_evas.so.*.*.*
561 %attr(755,root,root) %ghost %{_libdir}/libecore_evas.so.0
562
563 %files evas-devel
564 %defattr(644,root,root,755)
565 %attr(755,root,root) %{_libdir}/libecore_evas.so
566 %{_libdir}/libecore_evas.la
567 %{_includedir}/Ecore_Evas.h
568 %{_pkgconfigdir}/ecore-evas.pc
569 # evas modules
570 %attr(755,root,root) %{_libdir}/libecore_imf_evas.so
571 %{_libdir}/libecore_imf_evas.la
572 %{_includedir}/Ecore_IMF_Evas.h
573 %{_pkgconfigdir}/ecore-imf-evas.pc
574
575 %files evas-static
576 %defattr(644,root,root,755)
577 %{_libdir}/libecore_evas.a
578 # evas modules
579 %{_libdir}/libecore_imf_evas.a
This page took 0.080508 seconds and 3 git commands to generate.