]> git.pld-linux.org Git - packages/ecore.git/blob - ecore.spec
1451a57a55795f41eed745275f4163df7cd1fe49
[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 0.9.10.038
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.043
12 Release:        1
13 License:        BSD
14 Group:          X11/Libraries
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
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
331 %patch0 -p1
332
333 %build
334 %{__libtoolize}
335 %{__aclocal} -I m4
336 %{__autoconf}
337 %{__autoheader}
338 %{__automake}
339 %configure \
340         %{!?with_static_libs:--disable-static} \
341         --enable-ecore-con      \
342         --enable-ecore-config   \
343         --enable-ecore-desktop  \
344         --enable-ecore-directfb \
345         --enable-ecore-fb       \
346         --enable-ecore-file     \
347         --enable-ecore-ipc      \
348         --enable-ecore-job      \
349         --enable-ecore-sdl      \
350         --enable-ecore-txt      \
351         --enable-ecore-x        \
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 \
359         --enable-curl           \
360         --enable-inotify        \
361         --enable-openssl        \
362         --enable-poll
363
364 # --enable-ecore-evas-dfb needs evas-directfb (currently disabled)
365
366 %{__make}
367
368 %install
369 rm -rf $RPM_BUILD_ROOT
370
371 %{__make} install \
372         DESTDIR=$RPM_BUILD_ROOT
373
374 %clean
375 rm -rf $RPM_BUILD_ROOT
376
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
407
408 %files
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
413
414 %files con
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
418
419 %files config
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
424
425 %files directfb
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
429
430 %files desktop
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
434
435 %files fb
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
439
440 %files file
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
444
445 %files imf
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
449
450 %files imf-evas
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
454
455 %files ipc
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
459
460 %files job
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
464
465 %files sdl
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
469
470 %files txt
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
474
475 %files x
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
479
480 %files devel
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
488 # modules
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
539
540 %if %{with static_libs}
541 %files static
542 %defattr(644,root,root,755)
543 %{_libdir}/libecore.a
544 # modules
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
557 %endif
558
559 %files evas
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
563
564 %files evas-devel
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
570 # evas modules
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
575
576 %files evas-static
577 %defattr(644,root,root,755)
578 %{_libdir}/libecore_evas.a
579 # evas modules
580 %{_libdir}/libecore_imf_evas.a
This page took 0.080619 seconds and 2 git commands to generate.