2 Summary: The OpenGLES Canvas Core Library
5 Group: System/Libraries
8 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires: boost-thread
13 BuildRequires: pkgconfig
14 BuildRequires: opengl-es-devel
16 BuildRequires: boost-devel
17 BuildRequires: boost-thread
18 BuildRequires: sec-product-features
21 The OpenGLES Canvas Core Library
23 ##############################
25 ##############################
26 # This should be used only for building dali-adaptor and dali-toolkit independently of
27 # dali-capi - i.e. to break cyclic dependencies.
29 Summary: Development components for the OpenGLES Canvas Core Library
30 Group: Development/Libs
31 Requires: %{name} = %{version}-%{release}
32 Requires: %{name}-integration-devel = %{version}-%{release}
34 Requires: opengl-es-devel
38 Development components for the OpenGLES Canvas Core Library
40 ##############################
42 ##############################
43 %package integration-devel
44 Summary: Integration development package for the OpenGLES Canvas
45 Group: Development/Libs
46 Requires: %{name} = %{version}-%{release}
48 %description integration-devel
49 Integration development package for the OpenGLES Canvas
51 ##############################
53 ##############################
56 %define dali_data_rw_dir /opt/usr/share/dali/
57 %define dali_data_ro_dir /usr/share/dali/
58 %define shader_bin_dir %{dali_data_rw_dir}/core/shaderbin
59 %define dev_include_path %{_includedir}
61 ##############################
63 ##############################
66 CXXFLAGS+=" -Wall -g -O2 -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
67 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -lpthread"
69 %if 0%{?sec_build_binary_debug_enable}
70 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
71 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
72 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
76 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
80 cd %{_builddir}/%{name}-%{version}/build/slp && autoreconf --install
81 cd %{_builddir}/%{name}-%{version}/build/slp && CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ./configure --prefix="$PREFIX"
85 ##############################
87 ##############################
91 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
94 mkdir -p %{buildroot}/usr/share/license
95 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
97 %if 0%{?sec_product_feature_graphics_adreno}
98 mkdir -p %{buildroot}%{shader_bin_dir}
99 mv %{_builddir}/%{name}-%{version}/dali/shaderbins/adreno330/*.dali-bin %{buildroot}%{shader_bin_dir}
102 ##############################
104 ##############################
107 chown 5000:5000 %{shader_bin_dir}
108 %if 0%{?sec_product_feature_graphics_adreno}
110 rm -rf %{shader_bin_dir}/*
114 ##############################
116 ##############################
119 rm -rf %{shader_bin_dir}
122 ##############################
123 # Files in Binary Packages
124 ##############################
127 %manifest dali.manifest
128 %defattr(-,root,root,-)
129 %{_libdir}/lib%{name}-core.so*
130 %defattr(-,app,app,-)
131 %if 0%{?sec_product_feature_graphics_adreno}
134 %dir %{shader_bin_dir}
135 %{_datadir}/license/%{name}
138 %defattr(-,root,root,-)
139 %{_libdir}/pkgconfig/*.pc
140 %{dev_include_path}/%{name}/public-api/*
142 %files integration-devel
143 %defattr(-,root,root,-)
144 %{_includedir}/%{name}/integration-api/*