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