ready to use 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.20.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:  glib2-devel
93 #BuildRequires:  pkgconfig(bullet)
94 BuildRequires:  pkgconfig(openssl)
95 BuildRequires:  gnutls-devel
96 BuildRequires:  curl-devel
97 BuildRequires:  pkgconfig(vconf)
98 BuildRequires:  pkgconfig(xkbcommon)
99 BuildRequires:  systemd-devel
100 BuildRequires:  pkgconfig(ttrace)
101
102 #eldbus
103 BuildRequires:  dbus-devel
104
105 #edje
106 BuildRequires:  pkgconfig(lua)
107 BuildRequires:  pkgconfig(sndfile)
108 BuildRequires:  pkgconfig(libpulse)
109
110 #emotion
111 #BuildRequires:  pkgconfig(gstreamer-1.0)
112 #BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
113
114 #evas
115 BuildRequires:  libexif-devel
116 BuildRequires:  giflib-devel
117 BuildRequires:  libtiff-devel
118 BuildRequires:  pkgconfig(libpng)
119 BuildRequires:  libjpeg-turbo-devel
120 BuildRequires:  pkgconfig(pixman-1)
121 BuildRequires:  pkgconfig(freetype2)
122 BuildRequires:  pkgconfig(fribidi)
123 BuildRequires:  pkgconfig(fontconfig)
124 BuildRequires:  pkgconfig(harfbuzz)
125 BuildRequires:  pkgconfig(libtbm)
126
127 #eeze
128 BuildRequires:  libudev-devel
129 BuildRequires:  libmount-devel
130 BuildRequires:  pkgconfig(dlog)
131
132 #ecore_buffer
133 %if %{with x}
134 BuildRequires:  pkgconfig(libdri2)
135 BuildRequires:  pkgconfig(xshmfence)
136 BuildRequires:  pkgconfig(x11)
137 BuildRequires:  pkgconfig(xcb)
138 BuildRequires:  pkgconfig(xcb-sync)
139 BuildRequires:  pkgconfig(xcb-dri3)
140 %endif
141 BuildRequires:  pkgconfig(gbm)
142 BuildRequires:  pkgconfig(libtbm)
143 BuildRequires:  pkgconfig(libtdm)
144 BuildRequires:  pkgconfig(libtdm-client)
145 BuildRequires:  pkgconfig(libdrm)
146 BuildRequires:  pkgconfig(wayland-client)
147 BuildRequires:  pkgconfig(wayland-server)
148
149 %description
150 Elementary is a widget set. It is a new-style of widget set much more canvas
151 object based than anything else. Why not ETK? Why not EWL? Well they both
152 tend to veer away from the core of Evas, Ecore and Edje a lot to build their
153 own worlds. Also I wanted something focused on embedded devices -
154 specifically small touchscreens. Unlike GTK+ and Qt, 75% of the "widget set"
155 is already embodied in a common core - Ecore, Edje, Evas etc. So this
156 fine-grained library splitting means all of this is shared, just a new
157 widget "personality" is on top. And that is... Elementary, my dear watson
158 Elementary
159
160 %package -n elementary-tizen
161 Summary:        EFL toolkit for small touchscreens for Tizen devices
162 Requires:       elementary
163
164 %description -n elementary-tizen
165 Elementary is a widget set. It is a new-style of widget set much more canvas
166 object based than anything else. Why not ETK? Why not EWL? Well they both
167 tend to veer away from the core of Evas, Ecore and Edje a lot to build their
168 own worlds. Also I wanted something focused on embedded devices -
169 specifically small touchscreens. Unlike GTK+ and Qt, 75% of the "widget set"
170 is already embodied in a common core - Ecore, Edje, Evas etc. So this
171 fine-grained library splitting means all of this is shared, just a new
172 widget "personality" is on top. And that is... Elementary, my dear watson.
173 Elementary. This is an alternative package for Tizen devices that uses different
174 set of source code.
175
176 %package -n elementary-examples
177 Summary:   EFL elementary examples
178
179 %description -n elementary-examples
180 EFL elementary examples
181
182 %package -n elementary-tools
183 Summary:   EFL elementary configuration and test apps
184
185 %description -n elementary-tools
186 EFL elementary configuration and test apps package
187
188 %package -n elementary-devel
189 Summary:        Development files for elementary
190 Group:          Development/Libraries
191 Requires:       %{name} = %{version}
192 Recommends:     elementary
193
194 %description -n elementary-devel
195 Development components for the elementary package
196
197 %package -n elementary-theme
198 Summary:        Default theme for elementary
199
200 %description -n elementary-theme
201 Default theme which provides various styles for elementary.
202
203 %package -n efl-locale
204 Summary:        Translations and Locale for package efl
205 Group: Translations
206 AutoReqProv: 0
207
208 %description -n efl-locale
209 This package provides translations for package efl.
210
211
212 %prep
213 %setup -q
214 cp %{SOURCE1001} .
215
216
217 %build
218
219 %if "%{tizen_profile_name}" == "tv"
220         export CFLAGS+=" -DTIZEN_PROFILE_TV"
221 %endif
222
223 %if ! %{with x}
224 CFLAGS+=" -DMESA_EGL_NO_X11_HEADERS "
225 %endif
226
227 CFLAGS+=" -DLIBDIR=\\\"%{_libdir}\\\""
228
229 %if "%{asan}" == "1"
230 %restore_fcommon
231 %endif
232
233 export XDG_RUNTIME_DIR="/tmp/"
234
235 %autogen \
236     --disable-static \
237     --disable-doc \
238     --with-glib=always \
239     --disable-xim \
240     --disable-scim \
241     --disable-neon \
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     --with-elementary-base-dir="share/.elementary" \
279     --with-elementary=elm \
280     --with-eolian-gen=/usr/bin/eolian_gen \
281     --with-elua=/usr/bin/elua \
282     --with-edje-cc=/usr/bin/edje_cc \
283     --with-eet-eet=/usr/bin/eet \
284     --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
285 #    --enable-systemd \
286 #    --enable-drm \
287 #    --enable-gl-drm \
288
289 %__make %{?_smp_mflags} --trace \
290 2>&1 | sed \
291 -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
292 -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
293
294 %install
295 %make_install
296 #rm -rf %{buildroot}%{_libdir}/ecore/system/upower
297 #rm %{buildroot}/usr/share/ecore_x/checkme
298
299 mkdir -p %{buildroot}%{_tmpfilesdir}
300 install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/efl.conf
301
302 %find_lang efl
303
304 %post -n elementary -p /sbin/ldconfig
305 %postun -n elementary -p /sbin/ldconfig
306
307 %post -n elementary-tizen
308 rm -f %{_libdir}/libelementary.so.1
309 #ln -sf %{_libdir}/libelementary.so.1.99.100 %{_libdir}/libelementary.so.1
310 ldconfig -l %{_libdir}/libelementary.so.1.99.100
311
312 %preun -n elementary-tizen
313 rm -f %{_libdir}/libelementary.so.1
314 #ln -sf %{_libdir}/libelementary.so.1.20.* %{_libdir}/libelementary.so.1
315 ldconfig -l %{_libdir}/libelementary.so.1.20.*
316
317 %postun -n elementary-tizen -p /sbin/ldconfig
318
319
320 %files
321 %manifest efl.manifest
322 %defattr(-,root,root,-)
323 %license COPYING
324 %{_bindir}/elementary_quicklaunch
325 %{_bindir}/elementary_run
326 %{_libdir}/edje/modules/elm/v-1.20/module.so
327 %{_libdir}/libelementary.so.1
328 %{_libdir}/libelementary.so.1.20.*
329 %{_datadir}/elementary/edje_externals/*
330 %{_datadir}/icons/elementary.png
331 %{_libdir}/elementary/modules/
332 /usr/lib/debug/%{_libdir}/elementary/modules/
333 %exclude %{_datadir}/elementary/config/
334 %{_tmpfilesdir}/efl.conf
335
336 %files -n elementary-tizen
337 %manifest efl.manifest
338 %defattr(-,root,root,-)
339 %{_libdir}/libelementary.so.1.99.*
340
341 #%files -n elementary-examples
342 #%manifest efl.manifest
343 #%defattr(-,root,root,-)
344 #%{_libdir}/elementary/examples/*
345
346 %files -n elementary-tools
347 %manifest efl.manifest
348 %defattr(-,root,root,-)
349 %{_datadir}/applications/*
350 %{_datadir}/elementary/images/*
351 %{_datadir}/elementary/objects/*
352 %{_bindir}/elementary_config
353 %{_bindir}/elementary_test*
354 %{_bindir}/elementary_codegen
355 %{_bindir}/elm_prefs_cc
356
357 %files -n elementary-devel
358 %manifest efl.manifest
359 %defattr(-,root,root,-)
360 %{_includedir}/elementary-1/*.h*
361 %{_datadir}/eolian/include/elementary-1/*.eo
362 %{_libdir}/libelementary.so
363 %{_libdir}/pkgconfig/elementary.pc
364 %{_libdir}/cmake/Elementary/ElementaryConfig.cmake
365 %{_libdir}/cmake/Elementary/ElementaryConfigVersion.cmake
366 /usr/share/eolian/include/elementary-*1/*.eot
367 %exclude %{_includedir}/elementary-cxx-1/*.hh
368
369 %files -n elementary-theme
370 %manifest efl.manifest
371 %{_datadir}/elementary/themes/*
372 %exclude /usr/share/icons/Enlightenment-X
373 %exclude /usr/share/elementary/test*
374
375 %files -n efl-locale -f efl.lang
376 %license COPYING
377 %defattr(-,root,root,-)
378