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