]> git.pld-linux.org Git - packages/ecore.git/blame - ecore.spec
- new one
[packages/ecore.git] / ecore.spec
CommitLineData
95b32668 1#
03d369ba 2# TODO:
25c309e2 3# - why directfb does not build?
03d369ba
BZ
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 238#Requires: %{name}-dbus = %{version}-%{release}
25c309e2 239Requires: %{name}-desktop = %{version}-%{release}
03d369ba 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 \
25c309e2 295 --enable-ecore-desktop \
dd0b420b 296 --enable-ecore-evas \
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 \
25c309e2 308 --enable-curl
dd0b420b 309
320931eb 310%{__make}
311
312%install
313rm -rf $RPM_BUILD_ROOT
314%{__make} install \
315 DESTDIR=$RPM_BUILD_ROOT
316
317%clean
318rm -rf $RPM_BUILD_ROOT
319
76bceaba 320%post -p /sbin/ldconfig
321%postun -p /sbin/ldconfig
4127e42d
JB
322%post con -p /sbin/ldconfig
323%postun con -p /sbin/ldconfig
324%post config -p /sbin/ldconfig
325%postun config -p /sbin/ldconfig
4127e42d
JB
326%post directfb -p /sbin/ldconfig
327%postun directfb -p /sbin/ldconfig
328%post desktop -p /sbin/ldconfig
329%postun desktop -p /sbin/ldconfig
330%post evas -p /sbin/ldconfig
331%postun evas -p /sbin/ldconfig
332%post fb -p /sbin/ldconfig
333%postun fb -p /sbin/ldconfig
334%post file -p /sbin/ldconfig
335%postun file -p /sbin/ldconfig
03d369ba
BZ
336%post imf -p /sbin/ldconfig
337%postun imf -p /sbin/ldconfig
4127e42d
JB
338%post ipc -p /sbin/ldconfig
339%postun ipc -p /sbin/ldconfig
340%post job -p /sbin/ldconfig
341%postun job -p /sbin/ldconfig
342%post txt -p /sbin/ldconfig
343%postun txt -p /sbin/ldconfig
344%post x -p /sbin/ldconfig
345%postun x -p /sbin/ldconfig
320931eb 346
347%files
348%defattr(644,root,root,755)
a51cace0 349%doc AUTHORS COPYING COPYING-PLAIN README
03d369ba 350%attr(755,root,root) %{_libdir}/libecore.so.*
320931eb 351
76bceaba 352%files con
ef89d0f2 353%defattr(644,root,root,755)
03d369ba 354%attr(755,root,root) %{_libdir}/libecore_con.so.*
76bceaba 355
356%files config
357%defattr(644,root,root,755)
358%attr(755,root,root) %{_bindir}/ecore_config
03d369ba 359%attr(755,root,root) %{_libdir}/libecore_config.so.*
76bceaba 360
03d369ba
BZ
361#%files directfb
362#%defattr(644,root,root,755)
363#%attr(755,root,root) %{_libdir}/libecore_directfb.so.*
76bceaba 364
25c309e2
BZ
365%files desktop
366%defattr(644,root,root,755)
367%attr(755,root,root) %{_libdir}/libecore_desktop.so.*
76bceaba 368
369%files evas
370%defattr(644,root,root,755)
03d369ba 371%attr(755,root,root) %{_libdir}/libecore_evas.so.*
76bceaba 372
373%files fb
374%defattr(644,root,root,755)
03d369ba 375%attr(755,root,root) %{_libdir}/libecore_fb.so.*
76bceaba 376
377%files file
378%defattr(644,root,root,755)
03d369ba
BZ
379%attr(755,root,root) %{_libdir}/libecore_file.so.*
380
381%files imf
382%defattr(644,root,root,755)
383%attr(755,root,root) %{_libdir}/libecore_imf.so.*
384%attr(755,root,root) %{_libdir}/libecore_imf_evas.so.*
76bceaba 385
386%files ipc
387%defattr(644,root,root,755)
03d369ba 388%attr(755,root,root) %{_libdir}/libecore_ipc.so.*
76bceaba 389
390%files job
391%defattr(644,root,root,755)
03d369ba 392%attr(755,root,root) %{_libdir}/libecore_job.so.*
76bceaba 393
394%files txt
395%defattr(644,root,root,755)
03d369ba 396%attr(755,root,root) %{_libdir}/libecore_txt.so.*
76bceaba 397
398%files x
399%defattr(644,root,root,755)
03d369ba 400%attr(755,root,root) %{_libdir}/libecore_x.so.*
ef89d0f2 401
320931eb 402%files devel
403%defattr(644,root,root,755)
03d369ba 404#%attr(755,root,root) %{_bindir}/ecore-config
d8516976
JB
405%attr(755,root,root) %{_libdir}/libecore.so
406%{_libdir}/libecore.la
407%{_includedir}/Ecore.h
320931eb 408%{_pkgconfigdir}/ecore.pc
d8516976
JB
409# modules
410%attr(755,root,root) %{_libdir}/libecore_*.so
411%{_libdir}/libecore_*.la
412%{_includedir}/Ecore_*.h
413%{_pkgconfigdir}/ecore-*.pc
320931eb 414
95b32668 415%if %{with static_libs}
320931eb 416%files static
417%defattr(644,root,root,755)
d8516976
JB
418%{_libdir}/libecore.a
419# modules
420%{_libdir}/libecore_*.a
95b32668 421%endif
This page took 0.15049 seconds and 4 git commands to generate.