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