]> git.pld-linux.org Git - packages/ecore.git/blob - ecore.spec
- more flexible to update
[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.038
12 Release:        1
13 License:        BSD
14 Group:          X11/Libraries
15 Source0:        http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
16 # Source0-md5:  a391c19e01c08b6591cc30f85c597ed2
17 Patch0:         %{name}-tslib.patch
18 Patch1:         %{name}-link.patch
19 URL:            http://enlightenment.org/p.php?p=about/libs/ecore
20 BuildRequires:  DirectFB-devel >= 0.9.16
21 BuildRequires:  autoconf
22 BuildRequires:  automake
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 dbus
92 Summary:        Ecore DBus Library
93 Summary(pl.UTF-8):      Biblioteka Ecore DBus
94 Group:          Libraries
95 Requires:       %{name}-con = %{version}-%{release}
96 Conflicts:      ecore-libs
97
98 %description dbus
99 Ecore DBus Library.
100
101 %description dbus -l pl.UTF-8
102 Biblioteka Ecore DBus.
103
104 %package desktop
105 Summary:        Ecore freedesktop.org .desktop, icon, menu parsing Library
106 Summary(pl.UTF-8):      Biblioteka przetwarzania plików .desktop, ikon i menu
107 Group:          X11/Libraries
108 Requires:       %{name}-file = %{version}-%{release}
109 Conflicts:      ecore-libs
110
111 %description desktop
112 Ecore freedesktop.org .desktop, icon, menu parsing Library.
113
114 %description desktop -l pl.UTF-8
115 Biblioteka przetwarzania plików .desktop, ikon i menu.
116
117 %package directfb
118 Summary:        Ecore frame buffer system functions
119 Summary(pl.UTF-8):      Funkcje systemowe framebuffera Ecore
120 Group:          Libraries
121 Requires:       %{name} = %{version}-%{release}
122 Requires:       DirectFB >= 0.9.16
123 Conflicts:      ecore-libs
124
125 %description directfb
126 Ecore frame buffer system functions.
127
128 %description directfb -l pl.UTF-8
129 Funkcje systemowe framebuffera Ecore.
130
131 %package evas
132 Summary:        Ecore Evas Wrapper Library
133 Summary(pl.UTF-8):      Biblioteka Ecore Evas Wrapper
134 Group:          Libraries
135 Requires:       %{name}-directfb = %{version}-%{release}
136 Requires:       %{name}-fb = %{version}-%{release}
137 Requires:       %{name}-x = %{version}-%{release}
138 Requires:       evas >= %{version}
139 Conflicts:      ecore-libs
140
141 %description evas
142 Ecore Evas Wrapper Library.
143
144 %description evas -l pl.UTF-8
145 Biblioteka Ecore Evas Wrapper.
146
147 %package fb
148 Summary:        Ecore frame buffer system functions
149 Summary(pl.UTF-8):      Funkcje systemowe framebuffera Ecore
150 Group:          Libraries
151 Requires:       %{name} = %{version}-%{release}
152 Conflicts:      ecore-libs
153
154 %description fb
155 Ecore frame buffer system functions.
156
157 %description fb -l pl.UTF-8
158 Funkcje systemowe framebuffera Ecore.
159
160 %package file
161 Summary:        Ecore File Library
162 Summary(pl.UTF-8):      Biblioteka Ecore File
163 Group:          Libraries
164 Requires:       %{name} = %{version}-%{release}
165 Conflicts:      ecore-libs
166
167 %description file
168 Ecore File Library.
169
170 %description file -l pl.UTF-8
171 Biblioteka Ecore File.
172
173 %package ipc
174 Summary:        Ecore inter-process communication functions
175 Summary(pl.UTF-8):      Funkcje komunikacji międzyprocesowej Ecore
176 Group:          Libraries
177 Requires:       %{name}-con = %{version}-%{release}
178 Conflicts:      ecore-libs
179
180 %description ipc
181 Ecore inter-process communication functions.
182
183 %description ipc -l pl.UTF-8
184 Funkcje komunikacji międzyprocesowej Ecore.
185
186 %package job
187 Summary:        Ecore job dealing functions
188 Summary(pl.UTF-8):      Funkcje obsługi zadań Ecore
189 Group:          Libraries
190 Requires:       %{name} = %{version}-%{release}
191 Conflicts:      ecore-libs
192
193 %description job
194 Ecore job dealing functions.
195
196 %description job -l pl.UTF-8
197 Funkcje obsługi zadań Ecore.
198
199 %package txt
200 Summary:        Ecore text encoding conversion functions
201 Summary(pl.UTF-8):      Funkcje konwersji kodowania tekstu Ecore
202 Group:          Libraries
203 Requires:       %{name} = %{version}-%{release}
204 Conflicts:      ecore-libs
205
206 %description txt
207 Ecore text encoding conversion functions.
208
209 %description txt -l pl.UTF-8
210 Funkcje konwersji kodowania tekstu Ecore.
211
212 %package x
213 Summary:        Ecore functions for dealing with the X Window System
214 Summary(pl.UTF-8):      Funkcje Ecore do obsługi X Window System
215 Group:          X11/Libraries
216 Requires:       %{name}-txt = %{version}-%{release}
217 Conflicts:      ecore-libs
218
219 %description x
220 Ecore functions for dealing with the X Window System.
221
222 %description x -l pl.UTF-8
223 Funkcje Ecore do obsługi X Window System.
224
225 %package devel
226 Summary:        Ecore header files
227 Summary(pl.UTF-8):      Pliki nagłówkowe Ecore
228 Group:          Development/Libraries
229 Requires:       %{name} = %{version}-%{release}
230 Requires:       %{name}-con = %{version}-%{release}
231 # + openssl-devel curl-devel
232 Requires:       %{name}-config = %{version}-%{release}
233 # + eet-devel >= 0.9.10.038
234 Requires:       %{name}-dbus = %{version}-%{release}
235 Requires:       %{name}-desktop = %{version}-%{release}
236 Requires:       %{name}-directfb = %{version}-%{release}
237 # + DirectFB-devel >= 0.9.16
238 Requires:       %{name}-evas = %{version}-%{release}
239 # + evas-devel >= %{version}
240 Requires:       %{name}-fb = %{version}-%{release}
241 # + tslib-devel
242 Requires:       %{name}-file = %{version}-%{release}
243 # + curl-devel
244 Requires:       %{name}-ipc = %{version}-%{release}
245 Requires:       %{name}-job = %{version}-%{release}
246 Requires:       %{name}-txt = %{version}-%{release}
247 Requires:       %{name}-x = %{version}-%{release}
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
253
254 %description devel
255 Ecore development files.
256
257 %description devel -l pl.UTF-8
258 Pliki programistyczne Ecore.
259
260 %package static
261 Summary:        Static Ecore libraries
262 Summary(pl.UTF-8):      Statyczne biblioteki Ecore
263 Group:          Development/Libraries
264 Requires:       %{name}-devel = %{version}-%{release}
265
266 %description static
267 Static Ecore libraries.
268
269 %description static -l pl.UTF-8
270 Statyczne biblioteki Ecore.
271
272 %prep
273 %setup -q
274 %patch0 -p1
275 %patch1 -p1
276
277 %build
278 %{__libtoolize}
279 %{__aclocal} -I m4
280 %{__autoconf}
281 %{__autoheader}
282 %{__automake}
283 %configure \
284         %{!?with_static_libs:--disable-static} \
285         --enable-ecore-txt      \
286         --enable-ecore-x        \
287         %{?with_xcb:--enable-ecore-x-xcb}       \
288         --enable-ecore-job      \
289         --enable-ecore-fb       \
290         --enable-ecore-evas     \
291         --enable-ecore-evas-gl  \
292         --enable-ecore-evas-xrender \
293         --enable-ecore-evas-dfb \
294         --enable-ecore-evas-fb  \
295         --enable-ecore-evas-buffer \
296         --enable-ecore-con      \
297         --enable-openssl        \
298         --enable-ecore-ipc      \
299         --enable-ecore-dbus     \
300         --enable-ecore-config   \
301         --enable-ecore-file     \
302         --enable-inotify        \
303         --enable-poll           \
304         --enable-curl           \
305         --enable-pthreads
306
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
317 %post   -p /sbin/ldconfig
318 %postun -p /sbin/ldconfig
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
343
344 %files
345 %defattr(644,root,root,755)
346 %doc AUTHORS COPYING COPYING-PLAIN README
347 %attr(755,root,root) %{_libdir}/libecore.so.*.*.*
348
349 %files con
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/libecore_con.so.*.*.*
352
353 %files config
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_bindir}/ecore_config
356 %attr(755,root,root) %{_libdir}/libecore_config.so.*.*.*
357
358 %files dbus
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/libecore_dbus.so.*.*.*
361
362 %files directfb
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libecore_directfb.so.*.*.*
365
366 %files desktop
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libecore_desktop.so.*.*.*
369
370 %files evas
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libecore_evas.so.*.*.*
373
374 %files fb
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/libecore_fb.so.*.*.*
377
378 %files file
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libecore_file.so.*.*.*
381
382 %files ipc
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/libecore_ipc.so.*.*.*
385
386 %files job
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libecore_job.so.*.*.*
389
390 %files txt
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/libecore_txt.so.*.*.*
393
394 %files x
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/libecore_x.so.*.*.*
397
398 %files devel
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_bindir}/ecore-config
401 %attr(755,root,root) %{_libdir}/libecore.so
402 %{_libdir}/libecore.la
403 %{_includedir}/Ecore.h
404 %{_pkgconfigdir}/ecore.pc
405 # modules
406 %attr(755,root,root) %{_libdir}/libecore_*.so
407 %{_libdir}/libecore_*.la
408 %{_includedir}/Ecore_*.h
409 %{_pkgconfigdir}/ecore-*.pc
410
411 %if %{with static_libs}
412 %files static
413 %defattr(644,root,root,755)
414 %{_libdir}/libecore.a
415 # modules
416 %{_libdir}/libecore_*.a
417 %endif
This page took 0.193015 seconds and 3 git commands to generate.