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
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 functions for dealing with the X Windows System
148 Group: Development/Libraries
149 Requires: %{name} = %{version}
152 Ecore functions for dealing with the X Windows System
155 %setup -q -n %{name}-%{version}
158 CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
159 LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
160 export CFLAGS LDFLAGS
161 %{configure} --prefix=%{_prefix} \
162 %{?ac_with_lib_ecore_directfb} \
163 %{?ac_with_lib_ecore_fb} \
164 %{?ac_with_lib_ecore_imf} \
165 %{?ac_with_lib_ecore_sdl}
167 %{__make} %{?_smp_mflags} %{?mflags}
170 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
179 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
182 %defattr(-, root, root)
183 %doc AUTHORS COPYING* README*
184 %{_libdir}/libecore.so.*
187 %defattr(-, root, root)
192 %{_libdir}/pkgconfig/*
193 #%{_datadir}/aclocal/*
197 %defattr(-, root, root)
198 %{_bindir}/ecore_config
201 %defattr(-, root, root)
202 %{_libdir}/libecore_con.so.*
205 %defattr(-, root, root)
206 %{_libdir}/libecore_config.so.*
208 %if %{with lib_ecore_directfb}
210 %defattr(-, root, root)
211 %{_libdir}/libecore_directfb.so.*
215 %defattr(-, root, root)
216 %{_libdir}/libecore_evas.so.*
218 %if %{with lib_ecore_fb}
220 %defattr(-, root, root)
221 %{_libdir}/libecore_fb.so.*
225 %defattr(-, root, root)
226 %{_libdir}/libecore_file.so.*
228 %if %{with lib_ecore_imf}
230 %defattr(-, root, root)
231 %{_libdir}/libecore_imf*.so.*
235 %defattr(-, root, root)
236 %{_libdir}/libecore_ipc.so.*
239 %defattr(-, root, root)
240 %{_libdir}/libecore_x.so.*