]>
Commit | Line | Data |
---|---|---|
95b32668 | 1 | # |
03d369ba BZ |
2 | # TODO: |
3 | # - why desktop and directfb does not build? | |
4 | # - fill imf summary and desc. | |
5 | # | |
95b32668 KK |
6 | # Conditional build: |
7 | %bcond_without static_libs # don't build static library | |
d8516976 | 8 | %bcond_with xcb # XCB instead of Xlib |
95b32668 | 9 | # |
3eba0190 BZ |
10 | %define eet_ver 0.9.10.038 |
11 | ||
320931eb | 12 | Summary: Enlightened Core X interface library |
967c161c | 13 | Summary(pl.UTF-8): Biblioteka interfejsu X Enlightened Core |
320931eb | 14 | Name: ecore |
03d369ba | 15 | Version: 0.9.9.043 |
d8516976 | 16 | Release: 1 |
320931eb | 17 | License: BSD |
18 | Group: X11/Libraries | |
03d369ba BZ |
19 | Source0: http://download.enlightenment.org/snapshots/2008-05-19/%{name}-%{version}.tar.bz2 |
20 | # Source0-md5: 3d328b276556045c3d169ea4980d1aaf | |
d8516976 JB |
21 | Patch0: %{name}-tslib.patch |
22 | Patch1: %{name}-link.patch | |
dd506027 | 23 | URL: http://enlightenment.org/p.php?p=about/libs/ecore |
d8516976 | 24 | BuildRequires: DirectFB-devel >= 0.9.16 |
320931eb | 25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
fcac574f | 27 | BuildRequires: curl-devel |
3eba0190 | 28 | BuildRequires: eet-devel >= %{eet_ver} |
d8516976 | 29 | BuildRequires: evas-devel >= %{version} |
320931eb | 30 | BuildRequires: libtool |
31 | BuildRequires: openssl-devel | |
c3b5ffaf | 32 | BuildRequires: pkgconfig |
d8516976 JB |
33 | BuildRequires: tslib-devel |
34 | %if %{with xcb} | |
35 | BuildRequires: libxcb-devel | |
36 | BuildRequires: xcb-util-devel | |
37 | %else | |
8bd9691e | 38 | BuildRequires: xorg-lib-libXScrnSaver-devel |
39 | BuildRequires: xorg-lib-libXcursor-devel | |
40 | BuildRequires: xorg-lib-libXdamage-devel | |
d8516976 JB |
41 | BuildRequires: xorg-lib-libXext-devel |
42 | BuildRequires: xorg-lib-libXfixes-devel | |
8bd9691e | 43 | BuildRequires: xorg-lib-libXinerama-devel |
44 | BuildRequires: xorg-lib-libXp-devel | |
45 | BuildRequires: xorg-lib-libXrandr-devel | |
d8516976 JB |
46 | BuildRequires: xorg-lib-libXrender-devel |
47 | %endif | |
48 | Requires: evas >= %{version} | |
76bceaba | 49 | Obsoletes: ecore-libs |
320931eb | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
4acfc032 | 52 | %undefine __cxx |
53 | ||
320931eb | 54 | %description |
55 | Ecore is the event/X abstraction layer that makes doing selections, | |
56 | Xdnd, general X stuff, event loops, timeouts and idle handlers fast, | |
57 | optimized, and convenient. It's a separate library so anyone can make | |
58 | use of the work put into Ecore to make this job easy for applications. | |
59 | ||
e84a11fe JR |
60 | %description -l pl.UTF-8 |
61 | Ecore to warstwa abstrakcji zdarzeń/X, która powoduje, że dokonywanie | |
62 | zaznaczeń, Xdnd, ogólne operacje X, pętle zdarzeń, obsługa timeoutów i | |
63 | bezczynności są szybkie, zoptymalizowane i wygodne. Jest to wydzielona | |
64 | biblioteka, więc każdy może skorzystać z pracy włożonej w Ecore do | |
65 | ułatwienia swojej pracy przy aplikacjach. | |
f95d65ff | 66 | |
76bceaba | 67 | %package con |
68 | Summary: Ecore Connection Library | |
967c161c | 69 | Summary(pl.UTF-8): Biblioteka połączeń Ecore |
76bceaba | 70 | Group: Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
72 | Conflicts: ecore-libs | |
73 | ||
74 | %description con | |
75 | Ecore Connection Library. | |
76 | ||
e84a11fe JR |
77 | %description con -l pl.UTF-8 |
78 | Biblioteka połączeń Ecore. | |
4127e42d | 79 | |
76bceaba | 80 | %package config |
81 | Summary: Ecore Enlightened Property Library | |
967c161c | 82 | Summary(pl.UTF-8): Biblioteka właściwości Ecore |
76bceaba | 83 | Group: Libraries |
d8516976 JB |
84 | Requires: %{name}-ipc = %{version}-%{release} |
85 | Requires: evas-devel >= %{version} | |
3eba0190 | 86 | Requires: eet-devel >= %{eet_ver} |
76bceaba | 87 | Conflicts: ecore-libs |
88 | ||
89 | %description config | |
90 | Ecore Enlightened Property Library. | |
91 | ||
e84a11fe JR |
92 | %description config -l pl.UTF-8 |
93 | Biblioteka właściwości Ecore. | |
4127e42d | 94 | |
76bceaba | 95 | %package desktop |
96 | Summary: Ecore freedesktop.org .desktop, icon, menu parsing Library | |
967c161c | 97 | Summary(pl.UTF-8): Biblioteka przetwarzania plików .desktop, ikon i menu |
ef89d0f2 | 98 | Group: X11/Libraries |
d8516976 | 99 | Requires: %{name}-file = %{version}-%{release} |
76bceaba | 100 | Conflicts: ecore-libs |
101 | ||
102 | %description desktop | |
103 | Ecore freedesktop.org .desktop, icon, menu parsing Library. | |
104 | ||
e84a11fe JR |
105 | %description desktop -l pl.UTF-8 |
106 | Biblioteka przetwarzania plików .desktop, ikon i menu. | |
4127e42d | 107 | |
76bceaba | 108 | %package directfb |
109 | Summary: Ecore frame buffer system functions | |
967c161c | 110 | Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore |
76bceaba | 111 | Group: Libraries |
112 | Requires: %{name} = %{version}-%{release} | |
d8516976 | 113 | Requires: DirectFB >= 0.9.16 |
76bceaba | 114 | Conflicts: ecore-libs |
115 | ||
116 | %description directfb | |
117 | Ecore frame buffer system functions. | |
118 | ||
e84a11fe | 119 | %description directfb -l pl.UTF-8 |
4127e42d JB |
120 | Funkcje systemowe framebuffera Ecore. |
121 | ||
76bceaba | 122 | %package evas |
123 | Summary: Ecore Evas Wrapper Library | |
967c161c | 124 | Summary(pl.UTF-8): Biblioteka Ecore Evas Wrapper |
76bceaba | 125 | Group: Libraries |
03d369ba | 126 | #Requires: %{name}-directfb = %{version}-%{release} |
d8516976 JB |
127 | Requires: %{name}-fb = %{version}-%{release} |
128 | Requires: %{name}-x = %{version}-%{release} | |
129 | Requires: evas >= %{version} | |
76bceaba | 130 | Conflicts: ecore-libs |
131 | ||
132 | %description evas | |
133 | Ecore Evas Wrapper Library. | |
134 | ||
e84a11fe | 135 | %description evas -l pl.UTF-8 |
4127e42d JB |
136 | Biblioteka Ecore Evas Wrapper. |
137 | ||
76bceaba | 138 | %package fb |
139 | Summary: Ecore frame buffer system functions | |
967c161c | 140 | Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore |
76bceaba | 141 | Group: Libraries |
142 | Requires: %{name} = %{version}-%{release} | |
143 | Conflicts: ecore-libs | |
ef89d0f2 | 144 | |
76bceaba | 145 | %description fb |
146 | Ecore frame buffer system functions. | |
ef89d0f2 | 147 | |
e84a11fe | 148 | %description fb -l pl.UTF-8 |
4127e42d JB |
149 | Funkcje systemowe framebuffera Ecore. |
150 | ||
76bceaba | 151 | %package file |
152 | Summary: Ecore File Library | |
967c161c | 153 | Summary(pl.UTF-8): Biblioteka Ecore File |
76bceaba | 154 | Group: Libraries |
155 | Requires: %{name} = %{version}-%{release} | |
156 | Conflicts: ecore-libs | |
157 | ||
158 | %description file | |
159 | Ecore File Library. | |
160 | ||
e84a11fe | 161 | %description file -l pl.UTF-8 |
4127e42d JB |
162 | Biblioteka Ecore File. |
163 | ||
03d369ba BZ |
164 | %package imf |
165 | Summary: Ecore imf functions | |
166 | #Summary(pl.UTF-8): Funkcje imf Ecore | |
167 | Group: Libraries | |
168 | Requires: %{name}-con = %{version}-%{release} | |
169 | Conflicts: ecore-libs | |
170 | ||
171 | %description imf | |
172 | Ecore imf functions. | |
173 | ||
174 | #%description imf -l pl.UTF-8 | |
175 | #Funkcje imf Ecore. | |
176 | ||
76bceaba | 177 | %package ipc |
178 | Summary: Ecore inter-process communication functions | |
967c161c | 179 | Summary(pl.UTF-8): Funkcje komunikacji międzyprocesowej Ecore |
76bceaba | 180 | Group: Libraries |
d8516976 | 181 | Requires: %{name}-con = %{version}-%{release} |
76bceaba | 182 | Conflicts: ecore-libs |
183 | ||
184 | %description ipc | |
185 | Ecore inter-process communication functions. | |
186 | ||
e84a11fe JR |
187 | %description ipc -l pl.UTF-8 |
188 | Funkcje komunikacji międzyprocesowej Ecore. | |
4127e42d | 189 | |
76bceaba | 190 | %package job |
191 | Summary: Ecore job dealing functions | |
967c161c | 192 | Summary(pl.UTF-8): Funkcje obsługi zadań Ecore |
76bceaba | 193 | Group: Libraries |
194 | Requires: %{name} = %{version}-%{release} | |
195 | Conflicts: ecore-libs | |
196 | ||
197 | %description job | |
198 | Ecore job dealing functions. | |
199 | ||
e84a11fe JR |
200 | %description job -l pl.UTF-8 |
201 | Funkcje obsługi zadań Ecore. | |
4127e42d | 202 | |
76bceaba | 203 | %package txt |
204 | Summary: Ecore text encoding conversion functions | |
967c161c | 205 | Summary(pl.UTF-8): Funkcje konwersji kodowania tekstu Ecore |
76bceaba | 206 | Group: Libraries |
207 | Requires: %{name} = %{version}-%{release} | |
208 | Conflicts: ecore-libs | |
209 | ||
210 | %description txt | |
211 | Ecore text encoding conversion functions. | |
212 | ||
e84a11fe | 213 | %description txt -l pl.UTF-8 |
4127e42d JB |
214 | Funkcje konwersji kodowania tekstu Ecore. |
215 | ||
76bceaba | 216 | %package x |
4127e42d | 217 | Summary: Ecore functions for dealing with the X Window System |
967c161c | 218 | Summary(pl.UTF-8): Funkcje Ecore do obsługi X Window System |
76bceaba | 219 | Group: X11/Libraries |
d8516976 | 220 | Requires: %{name}-txt = %{version}-%{release} |
76bceaba | 221 | Conflicts: ecore-libs |
222 | ||
223 | %description x | |
4127e42d JB |
224 | Ecore functions for dealing with the X Window System. |
225 | ||
e84a11fe JR |
226 | %description x -l pl.UTF-8 |
227 | Funkcje Ecore do obsługi X Window System. | |
ef89d0f2 | 228 | |
320931eb | 229 | %package devel |
f95d65ff | 230 | Summary: Ecore header files |
967c161c | 231 | Summary(pl.UTF-8): Pliki nagłówkowe Ecore |
320931eb | 232 | Group: Development/Libraries |
76bceaba | 233 | Requires: %{name} = %{version}-%{release} |
234 | Requires: %{name}-con = %{version}-%{release} | |
d8516976 | 235 | # + openssl-devel curl-devel |
76bceaba | 236 | Requires: %{name}-config = %{version}-%{release} |
d8516976 | 237 | # + eet-devel >= 0.9.10.038 |
03d369ba BZ |
238 | #Requires: %{name}-dbus = %{version}-%{release} |
239 | #Requires: %{name}-desktop = %{version}-%{release} | |
240 | #Requires: %{name}-directfb = %{version}-%{release} | |
d8516976 | 241 | # + DirectFB-devel >= 0.9.16 |
76bceaba | 242 | Requires: %{name}-evas = %{version}-%{release} |
d8516976 | 243 | # + evas-devel >= %{version} |
76bceaba | 244 | Requires: %{name}-fb = %{version}-%{release} |
d8516976 | 245 | # + tslib-devel |
76bceaba | 246 | Requires: %{name}-file = %{version}-%{release} |
d8516976 | 247 | # + curl-devel |
03d369ba | 248 | Requires: %{name}-imf = %{version}-%{release} |
76bceaba | 249 | Requires: %{name}-ipc = %{version}-%{release} |
250 | Requires: %{name}-job = %{version}-%{release} | |
251 | Requires: %{name}-txt = %{version}-%{release} | |
252 | Requires: %{name}-x = %{version}-%{release} | |
d8516976 JB |
253 | %if %{with xcb} |
254 | # + libxcb-devel xcb-util-devel | |
255 | %else | |
256 | # + 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 | |
257 | %endif | |
320931eb | 258 | |
259 | %description devel | |
260 | Ecore development files. | |
261 | ||
e84a11fe | 262 | %description devel -l pl.UTF-8 |
f95d65ff JB |
263 | Pliki programistyczne Ecore. |
264 | ||
320931eb | 265 | %package static |
f95d65ff | 266 | Summary: Static Ecore libraries |
967c161c | 267 | Summary(pl.UTF-8): Statyczne biblioteki Ecore |
320931eb | 268 | Group: Development/Libraries |
f95d65ff | 269 | Requires: %{name}-devel = %{version}-%{release} |
320931eb | 270 | |
271 | %description static | |
f95d65ff JB |
272 | Static Ecore libraries. |
273 | ||
e84a11fe | 274 | %description static -l pl.UTF-8 |
f95d65ff | 275 | Statyczne biblioteki Ecore. |
320931eb | 276 | |
277 | %prep | |
c3b5ffaf | 278 | %setup -q |
03d369ba BZ |
279 | #%patch0 -p1 |
280 | #%patch1 -p1 | |
320931eb | 281 | |
282 | %build | |
de1254be | 283 | %{__libtoolize} |
284 | %{__aclocal} -I m4 | |
285 | %{__autoconf} | |
286 | %{__autoheader} | |
287 | %{__automake} | |
dd0b420b | 288 | %configure \ |
95b32668 | 289 | %{!?with_static_libs:--disable-static} \ |
dd0b420b | 290 | --enable-ecore-txt \ |
291 | --enable-ecore-x \ | |
d8516976 | 292 | %{?with_xcb:--enable-ecore-x-xcb} \ |
dd0b420b | 293 | --enable-ecore-job \ |
294 | --enable-ecore-fb \ | |
295 | --enable-ecore-evas \ | |
296 | --enable-ecore-evas-gl \ | |
fcac574f | 297 | --enable-ecore-evas-xrender \ |
90ee177a | 298 | --enable-ecore-evas-dfb \ |
dd0b420b | 299 | --enable-ecore-evas-fb \ |
300 | --enable-ecore-evas-buffer \ | |
301 | --enable-ecore-con \ | |
302 | --enable-openssl \ | |
303 | --enable-ecore-ipc \ | |
304 | --enable-ecore-config \ | |
305 | --enable-ecore-file \ | |
fcac574f | 306 | --enable-inotify \ |
307 | --enable-poll \ | |
308 | --enable-curl \ | |
dd0b420b | 309 | --enable-pthreads |
310 | ||
320931eb | 311 | %{__make} |
312 | ||
313 | %install | |
314 | rm -rf $RPM_BUILD_ROOT | |
315 | %{__make} install \ | |
316 | DESTDIR=$RPM_BUILD_ROOT | |
317 | ||
318 | %clean | |
319 | rm -rf $RPM_BUILD_ROOT | |
320 | ||
76bceaba | 321 | %post -p /sbin/ldconfig |
322 | %postun -p /sbin/ldconfig | |
4127e42d JB |
323 | %post con -p /sbin/ldconfig |
324 | %postun con -p /sbin/ldconfig | |
325 | %post config -p /sbin/ldconfig | |
326 | %postun config -p /sbin/ldconfig | |
4127e42d JB |
327 | %post directfb -p /sbin/ldconfig |
328 | %postun directfb -p /sbin/ldconfig | |
329 | %post desktop -p /sbin/ldconfig | |
330 | %postun desktop -p /sbin/ldconfig | |
331 | %post evas -p /sbin/ldconfig | |
332 | %postun evas -p /sbin/ldconfig | |
333 | %post fb -p /sbin/ldconfig | |
334 | %postun fb -p /sbin/ldconfig | |
335 | %post file -p /sbin/ldconfig | |
336 | %postun file -p /sbin/ldconfig | |
03d369ba BZ |
337 | %post imf -p /sbin/ldconfig |
338 | %postun imf -p /sbin/ldconfig | |
4127e42d JB |
339 | %post ipc -p /sbin/ldconfig |
340 | %postun ipc -p /sbin/ldconfig | |
341 | %post job -p /sbin/ldconfig | |
342 | %postun job -p /sbin/ldconfig | |
343 | %post txt -p /sbin/ldconfig | |
344 | %postun txt -p /sbin/ldconfig | |
345 | %post x -p /sbin/ldconfig | |
346 | %postun x -p /sbin/ldconfig | |
320931eb | 347 | |
348 | %files | |
349 | %defattr(644,root,root,755) | |
a51cace0 | 350 | %doc AUTHORS COPYING COPYING-PLAIN README |
03d369ba | 351 | %attr(755,root,root) %{_libdir}/libecore.so.* |
320931eb | 352 | |
76bceaba | 353 | %files con |
ef89d0f2 | 354 | %defattr(644,root,root,755) |
03d369ba | 355 | %attr(755,root,root) %{_libdir}/libecore_con.so.* |
76bceaba | 356 | |
357 | %files config | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_bindir}/ecore_config | |
03d369ba | 360 | %attr(755,root,root) %{_libdir}/libecore_config.so.* |
76bceaba | 361 | |
03d369ba BZ |
362 | #%files directfb |
363 | #%defattr(644,root,root,755) | |
364 | #%attr(755,root,root) %{_libdir}/libecore_directfb.so.* | |
76bceaba | 365 | |
03d369ba BZ |
366 | #%files desktop |
367 | #%defattr(644,root,root,755) | |
368 | #%attr(755,root,root) %{_libdir}/libecore_desktop.so.* | |
76bceaba | 369 | |
370 | %files evas | |
371 | %defattr(644,root,root,755) | |
03d369ba | 372 | %attr(755,root,root) %{_libdir}/libecore_evas.so.* |
76bceaba | 373 | |
374 | %files fb | |
375 | %defattr(644,root,root,755) | |
03d369ba | 376 | %attr(755,root,root) %{_libdir}/libecore_fb.so.* |
76bceaba | 377 | |
378 | %files file | |
379 | %defattr(644,root,root,755) | |
03d369ba BZ |
380 | %attr(755,root,root) %{_libdir}/libecore_file.so.* |
381 | ||
382 | %files imf | |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_libdir}/libecore_imf.so.* | |
385 | %attr(755,root,root) %{_libdir}/libecore_imf_evas.so.* | |
76bceaba | 386 | |
387 | %files ipc | |
388 | %defattr(644,root,root,755) | |
03d369ba | 389 | %attr(755,root,root) %{_libdir}/libecore_ipc.so.* |
76bceaba | 390 | |
391 | %files job | |
392 | %defattr(644,root,root,755) | |
03d369ba | 393 | %attr(755,root,root) %{_libdir}/libecore_job.so.* |
76bceaba | 394 | |
395 | %files txt | |
396 | %defattr(644,root,root,755) | |
03d369ba | 397 | %attr(755,root,root) %{_libdir}/libecore_txt.so.* |
76bceaba | 398 | |
399 | %files x | |
400 | %defattr(644,root,root,755) | |
03d369ba | 401 | %attr(755,root,root) %{_libdir}/libecore_x.so.* |
ef89d0f2 | 402 | |
320931eb | 403 | %files devel |
404 | %defattr(644,root,root,755) | |
03d369ba | 405 | #%attr(755,root,root) %{_bindir}/ecore-config |
d8516976 JB |
406 | %attr(755,root,root) %{_libdir}/libecore.so |
407 | %{_libdir}/libecore.la | |
408 | %{_includedir}/Ecore.h | |
320931eb | 409 | %{_pkgconfigdir}/ecore.pc |
d8516976 JB |
410 | # modules |
411 | %attr(755,root,root) %{_libdir}/libecore_*.so | |
412 | %{_libdir}/libecore_*.la | |
413 | %{_includedir}/Ecore_*.h | |
414 | %{_pkgconfigdir}/ecore-*.pc | |
320931eb | 415 | |
95b32668 | 416 | %if %{with static_libs} |
320931eb | 417 | %files static |
418 | %defattr(644,root,root,755) | |
d8516976 JB |
419 | %{_libdir}/libecore.a |
420 | # modules | |
421 | %{_libdir}/libecore_*.a | |
95b32668 | 422 | %endif |