1 # Conditional build stuff; from rpm 4.4 /usr/lib/rpm/macros.
2 # bcond_without defaults to WITH, and vice versa. Yes, it's
3 # ass-backward. Blame PLD.
4 # from KainX's changes to evas...
6 %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
9 %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
11 %if %{!?bcond_with:1}0
12 %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
14 %if %{!?bcond_without:1}0
15 %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
19 %bcond_with lib_ecore_directfb
20 %bcond_with lib_ecore_sdl
23 ##%bcond_without module_engine_software_x11
24 %bcond_without lib_ecore_fb
25 %bcond_without lib_ecore_imf
27 # This just keeps a missing doxygen from killing the build.
28 %define _missing_doc_files_terminate_build 0
30 %define breq_lib_ecore_directfb %{?with_lib_ecore_directfb:DirectFB}
31 %define breq_lib_ecore_sdl %{?with_lib_ecore_sdl:SDL-devel}
33 %define ac_with_lib_ecore_directfb --%{?with_lib_ecore_directfb:en}%{!?with_lib_ecore_directfb:dis}able-ecore-directfb
34 %define ac_with_lib_ecore_fb --%{?with_lib_ecore_fb:en}%{!?with_lib_ecore_fb:dis}able-ecore-fb
35 %define ac_with_lib_ecore_imf --%{?with_lib_ecore_imf:en}%{!?with_lib_ecore_imf:dis}able-ecore-imf
36 %define ac_with_lib_ecore_sdl --%{?with_lib_ecore_sdl:en}%{!?with_lib_ecore_sdl:dis}able-ecore-sdl
38 %{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
40 Summary: Enlightened Core X interface library
45 Group: User Interface/X
46 Source: %{name}-%{version}.tar.gz
47 URL: http://www.enlightenment.org
48 Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
49 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
50 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
51 #BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel, c-ares-devel
52 BuildRequires: libjpeg-devel, openssl-devel %{?breq_lib_ecore_directfb}
53 BuildRequires: curl-devel, evas-devel, eet-devel %{?breq_lib_ecore_sdl}
54 BuildRoot: %{_tmppath}/%{name}-%{version}-root
57 Ecore is the event/X abstraction layer that makes doing selections,
58 Xdnd, general X stuff, event loops, timeouts and idle handlers fast,
59 optimized, and convenient. It's a separate library so anyone can make
60 use of the work put into Ecore to make this job easy for applications.
63 Summary: Ecore headers and development libraries.
64 Group: Development/Libraries
65 Requires: %{name} = %{version}
66 Requires: curl-devel, openssl-devel, evas-devel, eet-devel
67 Requires: ecore-con, ecore-evas, ecore-file, ecore-ipc
68 Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb}
71 Ecore development files
74 Summary: Ecore Connection Library
75 Group: Development/Libraries
76 Requires: %{name} = %{version}
79 Ecore Connection Library
81 %if %{with lib_ecore_directfb}
83 Summary: Ecore DirectFB system functions
84 Group: Development/Libraries
85 Requires: %{name} = %{version}
87 Ecore DirectFB system functions
91 Summary: Ecore Evas Wrapper Library
92 Group: Development/Libraries
93 Requires: %{name} = %{version}
96 Ecore Evas Wrapper Library
98 %if %{with lib_ecore_fb}
100 Summary: Ecore frame buffer system functions
101 Group: Development/Libraries
102 Requires: %{name} = %{version}
104 Ecore frame buffer system functions
108 Summary: Ecore File Library
109 Group: Development/Libraries
110 Requires: %{name} = %{version}
115 %if %{with lib_ecore_imf}
117 Summary: Ecore IMF functions
118 Group: Development/Libraries
119 Requires: %{name} = %{version}
125 Summary: Ecore input functions
126 Group: Development/Libraries
127 Requires: %{name} = %{version}
130 Ecore input functions
133 Summary: Ecore inter-process communication functions
134 Group: Development/Libraries
135 Requires: %{name} = %{version}
138 Ecore inter-process communication functions
141 Summary: Ecore functions for dealing with the X Windows System
142 Group: Development/Libraries
143 Requires: %{name} = %{version}
146 Ecore functions for dealing with the X Windows System
152 CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
153 LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
154 export CFLAGS LDFLAGS
155 %{configure} --prefix=%{_prefix} \
156 %{?ac_with_lib_ecore_directfb} \
157 %{?ac_with_lib_ecore_fb} \
158 %{?ac_with_lib_ecore_imf} \
159 %{?ac_with_lib_ecore_sdl}
161 %{__make} %{?_smp_mflags} %{?mflags}
164 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
174 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
176 %files -f %{name}.lang
177 %defattr(-, root, root)
178 %doc AUTHORS COPYING* README*
179 %{_libdir}/libecore*.so.*
182 %defattr(-, root, root)
185 %{_libdir}/ecore/immodules/*.so
186 %{_libdir}/ecore/immodules/*.la
189 %{_libdir}/pkgconfig/*
190 #%{_datadir}/aclocal/*
191 %{_includedir}/ecore-1/*.h
194 %defattr(-, root, root)
195 %{_libdir}/libecore_con*.so.*
197 %if %{with lib_ecore_directfb}
199 %defattr(-, root, root)
200 %{_libdir}/libecore_directfb*.so.*
204 %defattr(-, root, root)
205 %{_libdir}/libecore_evas*.so.*
207 %if %{with lib_ecore_fb}
209 %defattr(-, root, root)
210 %{_libdir}/libecore_fb*.so.*
214 %defattr(-, root, root)
215 %{_libdir}/libecore_file*.so.*
217 %if %{with lib_ecore_imf}
219 %defattr(-, root, root)
220 %{_libdir}/libecore_imf*.so.*
224 %defattr(-, root, root)
225 %{_libdir}/libecore_input*.so.*
228 %defattr(-, root, root)
229 %{_libdir}/libecore_ipc*.so.*
232 %defattr(-, root, root)
233 %{_libdir}/libecore_x*.so.*