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 Summary: Enlightened Core X interface library
41 Release: 0.%(date '+%Y%m%d')
43 Group: User Interface/X
44 Source: %{name}-%{version}.tar.gz
45 URL: http://www.enlightenment.org
46 Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
47 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
48 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
49 #BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel
50 BuildRequires: libjpeg-devel, openssl-devel %{?breq_lib_ecore_directfb}
51 BuildRequires: curl-devel, evas-devel, eet-devel %{?breq_lib_ecore_sdl}
52 BuildRoot: %{_tmppath}/%{name}-%{version}-root
55 Ecore is the event/X abstraction layer that makes doing selections,
56 Xdnd, general X stuff, event loops, timeouts and idle handlers fast,
57 optimized, and convenient. It's a separate library so anyone can make
58 use of the work put into Ecore to make this job easy for applications.
61 Summary: Ecore headers and development libraries.
62 Group: Development/Libraries
63 Requires: %{name} = %{version}
64 Requires: curl-devel, openssl-devel, evas-devel, eet-devel
65 Requires: ecore-bin, ecore-con, ecore-config, ecore-evas, ecore-file, ecore-ipc, ecore-job, ecore-txt
66 Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb}
69 Ecore development files
72 Summary: Tools that support Ecore
73 Group: Development/Libraries
74 Requires: %{name} = %{version}
77 Tools that support Ecore
80 Summary: Ecore Connection Library
81 Group: Development/Libraries
82 Requires: %{name} = %{version}
85 Ecore Connection Library
88 Summary: Ecore Enlightened Property Library
89 Group: Development/Libraries
90 Requires: %{name} = %{version}
93 Ecore Enlightened Property Library
95 %if %{with lib_ecore_directfb}
97 Summary: Ecore DirectFB system functions
98 Group: Development/Libraries
99 Requires: %{name} = %{version}
100 %description directfb
101 Ecore DirectFB system functions
105 Summary: Ecore Evas Wrapper Library
106 Group: Development/Libraries
107 Requires: %{name} = %{version}
110 Ecore Evas Wrapper Library
112 %if %{with lib_ecore_fb}
114 Summary: Ecore frame buffer system functions
115 Group: Development/Libraries
116 Requires: %{name} = %{version}
118 Ecore frame buffer system functions
122 Summary: Ecore File Library
123 Group: Development/Libraries
124 Requires: %{name} = %{version}
129 %if %{with lib_ecore_imf}
131 Summary: Ecore IMF functions
132 Group: Development/Libraries
133 Requires: %{name} = %{version}
139 Summary: Ecore inter-process communication functions
140 Group: Development/Libraries
141 Requires: %{name} = %{version}
144 Ecore inter-process communication functions
147 Summary: Ecore job dealing functions
148 Group: Development/Libraries
149 Requires: %{name} = %{version}
152 Ecore job dealing functions
155 Summary: Ecore text encoding conversion functions
156 Group: Development/Libraries
157 Requires: %{name} = %{version}
160 Ecore text encoding conversion functions
163 Summary: Ecore functions for dealing with the X Windows System
164 Group: Development/Libraries
165 Requires: %{name} = %{version}
168 Ecore functions for dealing with the X Windows System
171 %setup -q -n %{name}-%{version}
174 CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
175 LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
176 export CFLAGS LDFLAGS
177 %{configure} --prefix=%{_prefix} \
178 %{?ac_with_lib_ecore_directfb} \
179 %{?ac_with_lib_ecore_fb} \
180 %{?ac_with_lib_ecore_imf} \
181 %{?ac_with_lib_ecore_sdl}
183 %{__make} %{?_smp_mflags} %{?mflags}
186 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
195 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
198 %defattr(-, root, root)
199 %doc AUTHORS COPYING* README*
200 %{_libdir}/libecore.so.*
203 %defattr(-, root, root)
208 %{_libdir}/pkgconfig/*
209 #%{_datadir}/aclocal/*
213 %defattr(-, root, root)
214 %{_bindir}/ecore_config
217 %defattr(-, root, root)
218 %{_libdir}/libecore_con.so.*
221 %defattr(-, root, root)
222 %{_libdir}/libecore_config.so.*
224 %if %{with lib_ecore_directfb}
226 %defattr(-, root, root)
227 %{_libdir}/libecore_directfb.so.*
231 %defattr(-, root, root)
232 %{_libdir}/libecore_evas.so.*
234 %if %{with lib_ecore_fb}
236 %defattr(-, root, root)
237 %{_libdir}/libecore_fb.so.*
241 %defattr(-, root, root)
242 %{_libdir}/libecore_file.so.*
244 %if %{with lib_ecore_imf}
246 %defattr(-, root, root)
247 %{_libdir}/libecore_imf*.so.*
251 %defattr(-, root, root)
252 %{_libdir}/libecore_ipc.so.*
255 %defattr(-, root, root)
256 %{_libdir}/libecore_job.so.*
259 %defattr(-, root, root)
260 %{_libdir}/libecore_txt.so.*
263 %defattr(-, root, root)
264 %{_libdir}/libecore_x.so.*