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