]> git.pld-linux.org Git - packages/ecore.git/blame - ecore.spec
- up to 0.9.9.043
[packages/ecore.git] / ecore.spec
CommitLineData
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 12Summary: Enlightened Core X interface library
967c161c 13Summary(pl.UTF-8): Biblioteka interfejsu X Enlightened Core
320931eb 14Name: ecore
03d369ba 15Version: 0.9.9.043
d8516976 16Release: 1
320931eb 17License: BSD
18Group: X11/Libraries
03d369ba
BZ
19Source0: http://download.enlightenment.org/snapshots/2008-05-19/%{name}-%{version}.tar.bz2
20# Source0-md5: 3d328b276556045c3d169ea4980d1aaf
d8516976
JB
21Patch0: %{name}-tslib.patch
22Patch1: %{name}-link.patch
dd506027 23URL: http://enlightenment.org/p.php?p=about/libs/ecore
d8516976 24BuildRequires: DirectFB-devel >= 0.9.16
320931eb 25BuildRequires: autoconf
26BuildRequires: automake
fcac574f 27BuildRequires: curl-devel
3eba0190 28BuildRequires: eet-devel >= %{eet_ver}
d8516976 29BuildRequires: evas-devel >= %{version}
320931eb 30BuildRequires: libtool
31BuildRequires: openssl-devel
c3b5ffaf 32BuildRequires: pkgconfig
d8516976
JB
33BuildRequires: tslib-devel
34%if %{with xcb}
35BuildRequires: libxcb-devel
36BuildRequires: xcb-util-devel
37%else
8bd9691e 38BuildRequires: xorg-lib-libXScrnSaver-devel
39BuildRequires: xorg-lib-libXcursor-devel
40BuildRequires: xorg-lib-libXdamage-devel
d8516976
JB
41BuildRequires: xorg-lib-libXext-devel
42BuildRequires: xorg-lib-libXfixes-devel
8bd9691e 43BuildRequires: xorg-lib-libXinerama-devel
44BuildRequires: xorg-lib-libXp-devel
45BuildRequires: xorg-lib-libXrandr-devel
d8516976
JB
46BuildRequires: xorg-lib-libXrender-devel
47%endif
48Requires: evas >= %{version}
76bceaba 49Obsoletes: ecore-libs
320931eb 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
4acfc032 52%undefine __cxx
53
320931eb 54%description
55Ecore is the event/X abstraction layer that makes doing selections,
56Xdnd, general X stuff, event loops, timeouts and idle handlers fast,
57optimized, and convenient. It's a separate library so anyone can make
58use of the work put into Ecore to make this job easy for applications.
59
e84a11fe
JR
60%description -l pl.UTF-8
61Ecore to warstwa abstrakcji zdarzeń/X, która powoduje, że dokonywanie
62zaznaczeń, Xdnd, ogólne operacje X, pętle zdarzeń, obsługa timeoutów i
63bezczynności są szybkie, zoptymalizowane i wygodne. Jest to wydzielona
64biblioteka, więc każdy może skorzystać z pracy włożonej w Ecore do
65ułatwienia swojej pracy przy aplikacjach.
f95d65ff 66
76bceaba 67%package con
68Summary: Ecore Connection Library
967c161c 69Summary(pl.UTF-8): Biblioteka połączeń Ecore
76bceaba 70Group: Libraries
71Requires: %{name} = %{version}-%{release}
72Conflicts: ecore-libs
73
74%description con
75Ecore Connection Library.
76
e84a11fe
JR
77%description con -l pl.UTF-8
78Biblioteka połączeń Ecore.
4127e42d 79
76bceaba 80%package config
81Summary: Ecore Enlightened Property Library
967c161c 82Summary(pl.UTF-8): Biblioteka właściwości Ecore
76bceaba 83Group: Libraries
d8516976
JB
84Requires: %{name}-ipc = %{version}-%{release}
85Requires: evas-devel >= %{version}
3eba0190 86Requires: eet-devel >= %{eet_ver}
76bceaba 87Conflicts: ecore-libs
88
89%description config
90Ecore Enlightened Property Library.
91
e84a11fe
JR
92%description config -l pl.UTF-8
93Biblioteka właściwości Ecore.
4127e42d 94
76bceaba 95%package desktop
96Summary: Ecore freedesktop.org .desktop, icon, menu parsing Library
967c161c 97Summary(pl.UTF-8): Biblioteka przetwarzania plików .desktop, ikon i menu
ef89d0f2 98Group: X11/Libraries
d8516976 99Requires: %{name}-file = %{version}-%{release}
76bceaba 100Conflicts: ecore-libs
101
102%description desktop
103Ecore freedesktop.org .desktop, icon, menu parsing Library.
104
e84a11fe
JR
105%description desktop -l pl.UTF-8
106Biblioteka przetwarzania plików .desktop, ikon i menu.
4127e42d 107
76bceaba 108%package directfb
109Summary: Ecore frame buffer system functions
967c161c 110Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
76bceaba 111Group: Libraries
112Requires: %{name} = %{version}-%{release}
d8516976 113Requires: DirectFB >= 0.9.16
76bceaba 114Conflicts: ecore-libs
115
116%description directfb
117Ecore frame buffer system functions.
118
e84a11fe 119%description directfb -l pl.UTF-8
4127e42d
JB
120Funkcje systemowe framebuffera Ecore.
121
76bceaba 122%package evas
123Summary: Ecore Evas Wrapper Library
967c161c 124Summary(pl.UTF-8): Biblioteka Ecore Evas Wrapper
76bceaba 125Group: Libraries
03d369ba 126#Requires: %{name}-directfb = %{version}-%{release}
d8516976
JB
127Requires: %{name}-fb = %{version}-%{release}
128Requires: %{name}-x = %{version}-%{release}
129Requires: evas >= %{version}
76bceaba 130Conflicts: ecore-libs
131
132%description evas
133Ecore Evas Wrapper Library.
134
e84a11fe 135%description evas -l pl.UTF-8
4127e42d
JB
136Biblioteka Ecore Evas Wrapper.
137
76bceaba 138%package fb
139Summary: Ecore frame buffer system functions
967c161c 140Summary(pl.UTF-8): Funkcje systemowe framebuffera Ecore
76bceaba 141Group: Libraries
142Requires: %{name} = %{version}-%{release}
143Conflicts: ecore-libs
ef89d0f2 144
76bceaba 145%description fb
146Ecore frame buffer system functions.
ef89d0f2 147
e84a11fe 148%description fb -l pl.UTF-8
4127e42d
JB
149Funkcje systemowe framebuffera Ecore.
150
76bceaba 151%package file
152Summary: Ecore File Library
967c161c 153Summary(pl.UTF-8): Biblioteka Ecore File
76bceaba 154Group: Libraries
155Requires: %{name} = %{version}-%{release}
156Conflicts: ecore-libs
157
158%description file
159Ecore File Library.
160
e84a11fe 161%description file -l pl.UTF-8
4127e42d
JB
162Biblioteka Ecore File.
163
03d369ba
BZ
164%package imf
165Summary: Ecore imf functions
166#Summary(pl.UTF-8): Funkcje imf Ecore
167Group: Libraries
168Requires: %{name}-con = %{version}-%{release}
169Conflicts: ecore-libs
170
171%description imf
172Ecore imf functions.
173
174#%description imf -l pl.UTF-8
175#Funkcje imf Ecore.
176
76bceaba 177%package ipc
178Summary: Ecore inter-process communication functions
967c161c 179Summary(pl.UTF-8): Funkcje komunikacji międzyprocesowej Ecore
76bceaba 180Group: Libraries
d8516976 181Requires: %{name}-con = %{version}-%{release}
76bceaba 182Conflicts: ecore-libs
183
184%description ipc
185Ecore inter-process communication functions.
186
e84a11fe
JR
187%description ipc -l pl.UTF-8
188Funkcje komunikacji międzyprocesowej Ecore.
4127e42d 189
76bceaba 190%package job
191Summary: Ecore job dealing functions
967c161c 192Summary(pl.UTF-8): Funkcje obsługi zadań Ecore
76bceaba 193Group: Libraries
194Requires: %{name} = %{version}-%{release}
195Conflicts: ecore-libs
196
197%description job
198Ecore job dealing functions.
199
e84a11fe
JR
200%description job -l pl.UTF-8
201Funkcje obsługi zadań Ecore.
4127e42d 202
76bceaba 203%package txt
204Summary: Ecore text encoding conversion functions
967c161c 205Summary(pl.UTF-8): Funkcje konwersji kodowania tekstu Ecore
76bceaba 206Group: Libraries
207Requires: %{name} = %{version}-%{release}
208Conflicts: ecore-libs
209
210%description txt
211Ecore text encoding conversion functions.
212
e84a11fe 213%description txt -l pl.UTF-8
4127e42d
JB
214Funkcje konwersji kodowania tekstu Ecore.
215
76bceaba 216%package x
4127e42d 217Summary: Ecore functions for dealing with the X Window System
967c161c 218Summary(pl.UTF-8): Funkcje Ecore do obsługi X Window System
76bceaba 219Group: X11/Libraries
d8516976 220Requires: %{name}-txt = %{version}-%{release}
76bceaba 221Conflicts: ecore-libs
222
223%description x
4127e42d
JB
224Ecore functions for dealing with the X Window System.
225
e84a11fe
JR
226%description x -l pl.UTF-8
227Funkcje Ecore do obsługi X Window System.
ef89d0f2 228
320931eb 229%package devel
f95d65ff 230Summary: Ecore header files
967c161c 231Summary(pl.UTF-8): Pliki nagłówkowe Ecore
320931eb 232Group: Development/Libraries
76bceaba 233Requires: %{name} = %{version}-%{release}
234Requires: %{name}-con = %{version}-%{release}
d8516976 235# + openssl-devel curl-devel
76bceaba 236Requires: %{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 242Requires: %{name}-evas = %{version}-%{release}
d8516976 243# + evas-devel >= %{version}
76bceaba 244Requires: %{name}-fb = %{version}-%{release}
d8516976 245# + tslib-devel
76bceaba 246Requires: %{name}-file = %{version}-%{release}
d8516976 247# + curl-devel
03d369ba 248Requires: %{name}-imf = %{version}-%{release}
76bceaba 249Requires: %{name}-ipc = %{version}-%{release}
250Requires: %{name}-job = %{version}-%{release}
251Requires: %{name}-txt = %{version}-%{release}
252Requires: %{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
260Ecore development files.
261
e84a11fe 262%description devel -l pl.UTF-8
f95d65ff
JB
263Pliki programistyczne Ecore.
264
320931eb 265%package static
f95d65ff 266Summary: Static Ecore libraries
967c161c 267Summary(pl.UTF-8): Statyczne biblioteki Ecore
320931eb 268Group: Development/Libraries
f95d65ff 269Requires: %{name}-devel = %{version}-%{release}
320931eb 270
271%description static
f95d65ff
JB
272Static Ecore libraries.
273
e84a11fe 274%description static -l pl.UTF-8
f95d65ff 275Statyczne 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
314rm -rf $RPM_BUILD_ROOT
315%{__make} install \
316 DESTDIR=$RPM_BUILD_ROOT
317
318%clean
319rm -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
This page took 0.094011 seconds and 4 git commands to generate.