Revert "disable lottie-player"
[platform/upstream/efl.git] / packaging / elm-only.spec.example
1 %bcond_without wayland
2 %bcond_with x
3
4 Name:           elementary
5 Version:        1.21.0
6 Release:        0
7 License:        LGPL-2.1+
8 Summary:        Enlightenment Foundation Libraries - set of libraries used (not only) by E17
9 Url:            http://enlightenment.org/
10 Group:          Graphics & UI Framework/API
11 Source:         %{name}-%{version}.tar.bz2
12 Source100:      efl.conf
13 Source1001:     efl.manifest
14
15 BuildRequires:  pkgconfig(check)
16 BuildRequires:  pkgconfig(libinput)
17 BuildRequires:  zlib-devel
18 BuildRequires:  gettext-tools
19 BuildRequires:  hyphen-devel
20 #BuildRequires:  coregl-devel
21 #BuildRequires:  gettext-devel
22 #BuildRequires:  doxygen
23 #BuildRequires:  python-devel
24
25 ###
26 BuildRequires:  pkgconfig(eina)
27 BuildRequires:  pkgconfig(emile)
28 BuildRequires:  pkgconfig(eo)
29 BuildRequires:  pkgconfig(efl)
30 BuildRequires:  pkgconfig(evas)
31 BuildRequires:  pkgconfig(ecore-core)
32 BuildRequires:  pkgconfig(ecore-evas)
33 BuildRequires:  pkgconfig(ecore-file)
34 BuildRequires:  pkgconfig(ecore-input)
35 BuildRequires:  pkgconfig(edje)
36 BuildRequires:  pkgconfig(ethumb)
37 BuildRequires:  pkgconfig(ethumb_client)
38 BuildRequires:  pkgconfig(emotion)
39 BuildRequires:  pkgconfig(ecore-imf)
40 BuildRequires:  pkgconfig(ecore-con)
41 BuildRequires:  pkgconfig(eldbus)
42 BuildRequires:  pkgconfig(efreet)
43 BuildRequires:  pkgconfig(efreet-mime)
44 BuildRequires:  pkgconfig(efreet-trash)
45 BuildRequires:  pkgconfig(eio)
46 BuildRequires:  pkgconfig(elocation)
47 BuildRequires:  pkgconfig(ecore-wl2)
48 BuildRequires:  eet-tools
49 BuildRequires:  edje-tools
50 BuildRequires:  eolian
51 ###
52
53 %if %{with wayland}
54 BuildRequires:  pkgconfig(gles20)
55 BuildRequires:  pkgconfig(wayland-client)
56 BuildRequires:  pkgconfig(wayland-cursor)
57 BuildRequires:  pkgconfig(wayland-egl)
58 BuildRequires:  pkgconfig(text-client)
59 BuildRequires:  pkgconfig(xdg-shell-client)
60 BuildRequires:  pkgconfig(wayland-tbm-client)
61 BuildRequires:  pkgconfig(wayland-tbm-server)
62 BuildRequires:  pkgconfig(tizen-extension-client)
63 BuildRequires:  pkgconfig(tizen-remote-surface-client)
64 BuildRequires:  pkgconfig(wayland-egl-tizen)
65 BuildRequires:  wayland-protocols
66 BuildRequires:  pkgconfig(wayland-egl-tizen)
67 Requires:       libwayland-extension-client
68 Requires:       libwayland-egl-tizen
69 %endif
70
71 %if %{with x}
72 BuildRequires:  pkgconfig(glesv2)
73 BuildRequires:  pkgconfig(libdri2)
74 BuildRequires:  pkgconfig(x11)
75 BuildRequires:  pkgconfig(xcursor)
76 BuildRequires:  pkgconfig(xinerama)
77 BuildRequires:  pkgconfig(xpm)
78 BuildRequires:  pkgconfig(xrandr)
79 BuildRequires:  pkgconfig(xext)
80 BuildRequires:  pkgconfig(xcomposite)
81 BuildRequires:  pkgconfig(xdamage)
82 BuildRequires:  pkgconfig(xfixes)
83 BuildRequires:  pkgconfig(xrender)
84 BuildRequires:  pkgconfig(xscrnsaver)
85 BuildRequires:  libXtst-devel
86 BuildRequires:  pkgconfig(xi)
87 BuildRequires:  pkgconfig(ice)
88 BuildRequires:  pkgconfig(sm)
89 BuildRequires:  pkgconfig(ibus-1.0)
90 %endif
91
92 #BuildRequires:  pkgconfig(lottie-player)
93 BuildRequires:  glib2-devel
94 #BuildRequires:  pkgconfig(bullet)
95 BuildRequires:  pkgconfig(openssl)
96 BuildRequires:  gnutls-devel
97 BuildRequires:  curl-devel
98 BuildRequires:  pkgconfig(vconf)
99 BuildRequires:  pkgconfig(xkbcommon)
100 BuildRequires:  systemd-devel
101 BuildRequires:  pkgconfig(ttrace)
102
103 #eldbus
104 BuildRequires:  dbus-devel
105
106 #edje
107 BuildRequires:  pkgconfig(lua)
108 BuildRequires:  pkgconfig(sndfile)
109 BuildRequires:  pkgconfig(libpulse)
110
111 #emotion
112 #BuildRequires:  pkgconfig(gstreamer-1.0)
113 #BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
114
115 #evas
116 BuildRequires:  libexif-devel
117 BuildRequires:  giflib-devel
118 BuildRequires:  libtiff-devel
119 BuildRequires:  pkgconfig(libpng)
120 BuildRequires:  libjpeg-turbo-devel
121 BuildRequires:  pkgconfig(pixman-1)
122 BuildRequires:  pkgconfig(freetype2)
123 BuildRequires:  pkgconfig(fribidi)
124 BuildRequires:  pkgconfig(fontconfig)
125 BuildRequires:  pkgconfig(harfbuzz)
126 BuildRequires:  pkgconfig(libtbm)
127
128 #eeze
129 BuildRequires:  libudev-devel
130 BuildRequires:  libmount-devel
131 BuildRequires:  pkgconfig(dlog)
132
133 #ecore_buffer
134 %if %{with x}
135 BuildRequires:  pkgconfig(libdri2)
136 BuildRequires:  pkgconfig(xshmfence)
137 BuildRequires:  pkgconfig(x11)
138 BuildRequires:  pkgconfig(xcb)
139 BuildRequires:  pkgconfig(xcb-sync)
140 BuildRequires:  pkgconfig(xcb-dri3)
141 %endif
142 BuildRequires:  pkgconfig(gbm)
143 BuildRequires:  pkgconfig(libtbm)
144 BuildRequires:  pkgconfig(libtdm)
145 BuildRequires:  pkgconfig(libtdm-client)
146 BuildRequires:  pkgconfig(libdrm)
147 BuildRequires:  pkgconfig(wayland-client)
148 BuildRequires:  pkgconfig(wayland-server)
149
150 %description
151 Elementary is a widget set. It is a new-style of widget set much more canvas
152 object based than anything else. Why not ETK? Why not EWL? Well they both
153 tend to veer away from the core of Evas, Ecore and Edje a lot to build their
154 own worlds. Also I wanted something focused on embedded devices -
155 specifically small touchscreens. Unlike GTK+ and Qt, 75% of the "widget set"
156 is already embodied in a common core - Ecore, Edje, Evas etc. So this
157 fine-grained library splitting means all of this is shared, just a new
158 widget "personality" is on top. And that is... Elementary, my dear watson
159 Elementary
160
161 %package -n elementary-tizen
162 Summary:        EFL toolkit for small touchscreens for Tizen devices
163 Requires:       elementary
164
165 %description -n elementary-tizen
166 Elementary is a widget set. It is a new-style of widget set much more canvas
167 object based than anything else. Why not ETK? Why not EWL? Well they both
168 tend to veer away from the core of Evas, Ecore and Edje a lot to build their
169 own worlds. Also I wanted something focused on embedded devices -
170 specifically small touchscreens. Unlike GTK+ and Qt, 75% of the "widget set"
171 is already embodied in a common core - Ecore, Edje, Evas etc. So this
172 fine-grained library splitting means all of this is shared, just a new
173 widget "personality" is on top. And that is... Elementary, my dear watson.
174 Elementary. This is an alternative package for Tizen devices that uses different
175 set of source code.
176
177 %package -n elementary-examples
178 Summary:   EFL elementary examples
179
180 %description -n elementary-examples
181 EFL elementary examples
182
183 %package -n elementary-tools
184 Summary:   EFL elementary configuration and test apps
185
186 %description -n elementary-tools
187 EFL elementary configuration and test apps package
188
189 %package -n elementary-devel
190 Summary:        Development files for elementary
191 Group:          Development/Libraries
192 Requires:       %{name} = %{version}
193 Recommends:     elementary
194
195 %description -n elementary-devel
196 Development components for the elementary package
197
198 %package -n elementary-theme
199 Summary:        Default theme for elementary
200
201 %description -n elementary-theme
202 Default theme which provides various styles for elementary.
203
204 %package -n efl-locale
205 Summary:        Translations and Locale for package efl
206 Group: Translations
207 AutoReqProv: 0
208
209 %description -n efl-locale
210 This package provides translations for package efl.
211
212
213 %prep
214 %setup -q
215 cp %{SOURCE1001} .
216
217
218 %build
219
220 %if "%{tizen_profile_name}" == "tv"
221         export CFLAGS+=" -DTIZEN_PROFILE_TV"
222 %endif
223
224 %if ! %{with x}
225 CFLAGS+=" -DMESA_EGL_NO_X11_HEADERS "
226 %endif
227
228 CFLAGS+=" -DLIBDIR=\\\"%{_libdir}\\\""
229
230 %if "%{asan}" == "1"
231 %restore_fcommon
232 %endif
233
234 export XDG_RUNTIME_DIR="/tmp/"
235
236 %autogen \
237     --disable-static \
238     --disable-doc \
239     --with-glib=always \
240     --disable-xim \
241     --disable-scim \
242     --disable-wayland-text-input \
243     --disable-gesture \
244     --with-tests=none \
245     --enable-fb \
246     --disable-tslib \
247 %if %{with wayland}
248     --enable-ecore-wayland \
249     --enable-wayland \
250     --enable-egl \
251     --with-opengl=es \
252     --disable-rpath \
253     --disable-ibus \
254     --enable-tbm \
255 %endif
256 %if %{with x}
257     --with-opengl=es \
258     --disable-gesture \
259 %else
260     --with-x11=none \
261     --disable-rpath \
262 %endif
263     --disable-physics \
264     --disable-cxx-bindings \
265     --enable-lua-old \
266     --enable-ecore-buffer \
267     --disable-gstreamer1 \
268     --enable-harfbuzz \
269     --enable-hyphen \
270     --with-dictionaries-hyphen-dir=/usr/share/hyphen/ \
271     --disable-cserve \
272     --disable-poppler \
273     --disable-spectre \
274     --disable-librsvg \
275     --disable-libraw \
276     --disable-systemd \
277     --disable-cserve \
278     --enable-tizenaudio \
279     --with-elementary-base-dir="share/.elementary" \
280     --with-elementary=elm \
281     --with-eolian-gen=/usr/bin/eolian_gen \
282     --with-elua=/usr/bin/elua \
283     --with-edje-cc=/usr/bin/edje_cc \
284     --with-eet-eet=/usr/bin/eet \
285     --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb \
286     ac_cv_func_getuid=no
287 #    --enable-systemd \
288 #    --enable-drm \
289 #    --enable-gl-drm \
290
291 %__make %{?_smp_mflags} 2>&1 | \
292 sed \
293 -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
294 -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
295
296 %install
297 %make_install
298 #rm -rf %{buildroot}%{_libdir}/ecore/system/upower
299 #rm %{buildroot}/usr/share/ecore_x/checkme
300
301 mkdir -p %{buildroot}%{_tmpfilesdir}
302 install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/efl.conf
303
304 %find_lang efl
305
306 %post -n elementary -p /sbin/ldconfig
307 %postun -n elementary -p /sbin/ldconfig
308
309 %post -n elementary-tizen
310 rm -f %{_libdir}/libelementary.so.1
311 #ln -sf %{_libdir}/libelementary.so.1.99.100 %{_libdir}/libelementary.so.1
312 ldconfig -l %{_libdir}/libelementary.so.1.99.100
313
314 %preun -n elementary-tizen
315 rm -f %{_libdir}/libelementary.so.1
316 #ln -sf %{_libdir}/libelementary.so.1.21.* %{_libdir}/libelementary.so.1
317 ldconfig -l %{_libdir}/libelementary.so.1.21.*
318
319 %postun -n elementary-tizen -p /sbin/ldconfig
320
321
322 %files
323 %manifest efl.manifest
324 %defattr(-,root,root,-)
325 %license COPYING
326 %{_bindir}/elementary_quicklaunch
327 %{_bindir}/elementary_run
328 %{_libdir}/edje/modules/elm/v-1.21/module.so
329 %{_libdir}/libelementary.so.1
330 %{_libdir}/libelementary.so.1.21.*
331 %{_datadir}/elementary/edje_externals/*
332 %{_datadir}/icons/hicolor/128x128/apps/elementary.png
333 %{_libdir}/elementary/modules/
334 /usr/lib/debug/%{_libdir}/elementary/modules/
335 %exclude %{_datadir}/elementary/config/
336 %{_tmpfilesdir}/efl.conf
337
338 %files -n elementary-tizen
339 %manifest efl.manifest
340 %defattr(-,root,root,-)
341 %{_libdir}/libelementary.so.1.99.*
342
343 #%files -n elementary-examples
344 #%manifest efl.manifest
345 #%defattr(-,root,root,-)
346 #%{_libdir}/elementary/examples/*
347
348 %files -n elementary-tools
349 %manifest efl.manifest
350 %defattr(-,root,root,-)
351 %{_datadir}/applications/*
352 %{_datadir}/elementary/images/*
353 %{_datadir}/elementary/objects/*
354 %{_bindir}/elementary_config
355 %{_bindir}/elementary_test*
356 %{_bindir}/elementary_codegen
357 %{_bindir}/elm_prefs_cc
358
359 %files -n elementary-devel
360 %manifest efl.manifest
361 %defattr(-,root,root,-)
362 %{_includedir}/elementary-1/*.h*
363 %{_datadir}/eolian/include/elementary-1/*.eo
364 %{_libdir}/libelementary.so
365 %{_libdir}/pkgconfig/elementary.pc
366 %{_libdir}/cmake/Elementary/ElementaryConfig.cmake
367 %{_libdir}/cmake/Elementary/ElementaryConfigVersion.cmake
368 /usr/share/eolian/include/elementary-*1/*.eot
369 %exclude %{_includedir}/elementary-cxx-1/*.hh
370
371 %files -n elementary-theme
372 %manifest efl.manifest
373 %{_datadir}/elementary/themes/*
374 %exclude /usr/share/icons/Enlightenment-X
375 %exclude /usr/share/elementary/test*
376
377 %files -n efl-locale -f efl.lang
378 %license COPYING
379 %defattr(-,root,root,-)
380