1 Name: e17-mod-tizen-comp
2 Summary: The E17 Extra Compositor Module made by Tizen
5 Group: System/GUI/Other
7 Source0: %{name}-%{version}.tar.gz
8 BuildRequires: pkgconfig(enlightenment)
9 BuildRequires: pkgconfig(utilX)
10 BuildRequires: pkgconfig(elementary)
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(x11)
13 BuildRequires: pkgconfig(xrandr)
14 BuildRequires: pkgconfig(pixman-1)
15 BuildRequires: pkgconfig(vconf)
16 BuildRequires: pkgconfig(ttrace)
17 BuildRequires: pkgconfig(libhwc)
22 The E17 Compositor Module made by Tizen
29 export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
30 export CFLAGS+=" -Wall -g -fPIC -rdynamic -Werror-implicit-function-declaration ${GC_SECTIONS_FLAGS} "
31 export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
33 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
35 %if "%{?tizen_profile_name}" == "mobile"
36 export CFLAGS+=" -D_ENV_MOBILE_"
38 %if "%{?tizen_profile_name}" == "wearable"
39 export CFLAGS+=" -D_ENV_WEARABLE_"
44 export CFLAGS+=" -D_ENV_ARM"
47 export CFLAGS+=" -D_F_USE_GRAB_KEY_SET_"
49 %configure --enable-hwc \
57 # for license notification
58 mkdir -p %{buildroot}/usr/share/license
59 cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name}
61 make install DESTDIR=%{buildroot}
63 find %{buildroot}/usr/lib/enlightenment/modules/ -name *.la | xargs rm
64 find %{buildroot}/usr/lib/enlightenment/modules/ -name *.a | xargs rm
67 %manifest e17-mod-tizen-comp.manifest
68 %defattr(-,root,root,-)
70 %{_libdir}/enlightenment/modules/e17-mod-tizen-comp
71 %{_datadir}/enlightenment/data/*
72 /usr/share/license/%{name}
74 %if "%{?tizen_profile_name}" == "mobile"
75 %exclude %{_libdir}/enlightenment/modules/e17-mod-tizen-comp/effect/micro.so
77 %if "%{?tizen_profile_name}" == "wearable"
78 %exclude %{_libdir}/enlightenment/modules/e17-mod-tizen-comp/effect/common.so
81 %exclude %{_libdir}/enlightenment/modules/e17-mod-tizen-comp/effect/mobile.so