Implement a workaround for wayland_egl, allowing to raise
[platform/upstream/ecore.git] / ecore.spec
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... 
5 %if %{!?with:1}0
6 %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
7 %endif
8 %if %{!?without:1}0
9 %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
10 %endif
11 %if %{!?bcond_with:1}0
12 %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
13 %endif
14 %if %{!?bcond_without:1}0
15 %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
16 %endif
17
18 ## disabled features
19 %bcond_with lib_ecore_directfb
20 %bcond_with lib_ecore_sdl
21
22 ## enabled features
23 ##%bcond_without module_engine_software_x11
24 %bcond_without lib_ecore_fb
25 %bcond_without lib_ecore_imf
26
27 # This just keeps a missing doxygen from killing the build.
28 %define _missing_doc_files_terminate_build 0
29
30 %define breq_lib_ecore_directfb     %{?with_lib_ecore_directfb:DirectFB}
31 %define breq_lib_ecore_sdl          %{?with_lib_ecore_sdl:SDL-devel}
32
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
37
38 %{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
39
40 Summary: Enlightened Core X interface library
41 Name: ecore
42 Version: 1.7.8
43 Release: %{_rel}
44 License: BSD
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
55
56 %description
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.
61
62 %package devel
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}
69
70 %description devel
71 Ecore development files
72
73 %package con
74 Summary: Ecore Connection Library
75 Group: Development/Libraries
76 Requires: %{name} = %{version}
77
78 %description con
79 Ecore Connection Library
80
81 %if %{with lib_ecore_directfb}
82 %package directfb
83 Summary: Ecore DirectFB system functions
84 Group: Development/Libraries
85 Requires: %{name} = %{version}
86 %description directfb
87 Ecore DirectFB system functions
88 %endif
89
90 %package evas
91 Summary: Ecore Evas Wrapper Library
92 Group: Development/Libraries
93 Requires: %{name} = %{version}
94
95 %description evas
96 Ecore Evas Wrapper Library
97
98 %if %{with lib_ecore_fb}
99 %package fb
100 Summary: Ecore frame buffer system functions
101 Group: Development/Libraries
102 Requires: %{name} = %{version}
103 %description fb
104 Ecore frame buffer system functions
105 %endif
106
107 %package file
108 Summary: Ecore File Library
109 Group: Development/Libraries
110 Requires: %{name} = %{version}
111
112 %description file
113 Ecore File Library
114
115 %if %{with lib_ecore_imf}
116 %package imf
117 Summary: Ecore IMF functions
118 Group: Development/Libraries
119 Requires: %{name} = %{version}
120 %description imf
121 Ecore IMF functions
122 %endif
123
124 %package input
125 Summary: Ecore input functions
126 Group: Development/Libraries
127 Requires: %{name} = %{version}
128
129 %description input
130 Ecore input functions
131
132 %package ipc
133 Summary: Ecore inter-process communication functions
134 Group: Development/Libraries
135 Requires: %{name} = %{version}
136
137 %description ipc
138 Ecore inter-process communication functions
139
140 %package x
141 Summary: Ecore functions for dealing with the X Windows System
142 Group: Development/Libraries
143 Requires: %{name} = %{version}
144
145 %description x
146 Ecore functions for dealing with the X Windows System
147
148 %prep
149 %setup -q
150
151 %build
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}
160
161 %{__make} %{?_smp_mflags} %{?mflags}
162
163 %install
164 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
165 %{find_lang} %{name}
166
167 %post
168 /sbin/ldconfig || :
169
170 %postun
171 /sbin/ldconfig || :
172
173 %clean
174 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
175
176 %files -f %{name}.lang
177 %defattr(-, root, root)
178 %doc AUTHORS COPYING* README*
179 %{_libdir}/libecore*.so.*
180
181 %files devel
182 %defattr(-, root, root)
183 %doc doc/html
184 %{_libdir}/*.so
185 %{_libdir}/ecore/immodules/*.so
186 %{_libdir}/ecore/immodules/*.la
187 %{_libdir}/*.la
188 %{_libdir}/*.a
189 %{_libdir}/pkgconfig/*
190 #%{_datadir}/aclocal/*
191 %{_includedir}/ecore-1/*.h
192
193 %files con
194 %defattr(-, root, root)
195 %{_libdir}/libecore_con*.so.*
196
197 %if %{with lib_ecore_directfb}
198 %files directfb
199 %defattr(-, root, root)
200 %{_libdir}/libecore_directfb*.so.*
201 %endif
202
203 %files evas
204 %defattr(-, root, root)
205 %{_libdir}/libecore_evas*.so.*
206
207 %if %{with lib_ecore_fb}
208 %files fb
209 %defattr(-, root, root)
210 %{_libdir}/libecore_fb*.so.*
211 %endif
212
213 %files file
214 %defattr(-, root, root)
215 %{_libdir}/libecore_file*.so.*
216
217 %if %{with lib_ecore_imf}
218 %files imf
219 %defattr(-, root, root)
220 %{_libdir}/libecore_imf*.so.*
221 %endif
222
223 %files input
224 %defattr(-, root, root)
225 %{_libdir}/libecore_input*.so.*
226
227 %files ipc
228 %defattr(-, root, root)
229 %{_libdir}/libecore_ipc*.so.*
230
231 %files x
232 %defattr(-, root, root)
233 %{_libdir}/libecore_x*.so.*