2 Summary: The OpenGLES Canvas Core Library Toolkit
5 Group: System/Libraries
6 License: Apache-2.0 and BSD-2-Clause and MIT
7 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-toolkit.git;a=summary
8 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
13 BuildRequires: pkgconfig
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(dali-core)
16 BuildRequires: gettext
18 # dali-toolkit only need to know the interfaces(APIs) of dali-adaptor(the devel package).
19 # It doesn't need to know which adaptor will be used by applications.
20 # Applications or dali-addon will decide which one they will use.
21 BuildRequires: dali-adaptor-devel
23 #need libtzplatform-config for directory if tizen version is 3.x
25 %if "%{tizen_version_major}" == "3"
26 BuildRequires: pkgconfig(libtzplatform-config)
29 #############################
31 #############################
33 %define dali_toolkit_profile MOBILE
34 %define dali_style_folder 720x1280
35 # dali_style to be provided by build system as with dali_toolkit_profile or by passing --define 'dali_style 470x800' to the rpm build command
38 %define dali_style_folder %{dali_style}
41 # Further resource locations profiles can be provided here otherwise MOBILE will be used
42 %if "%{tizen_profile_name}" == "mobile"
43 %define dali_toolkit_profile MOBILE
47 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
48 user interface functionality.
50 ##############################
52 ##############################
54 Summary: Application development package for the OpenGLES Canvas toolkit
55 Group: Development/Building
56 Requires: %{name} = %{version}-%{release}
59 Application development package for the OpenGLES Canvas toolkit - headers and package config
61 ##############################
63 ##############################
67 #Use TZ_PATH when tizen version is 3.x
69 %if "%{tizen_version_major}" == "2"
70 %define dali_data_rw_dir /opt/usr/share/dali/
71 %define dali_data_ro_dir /usr/share/dali/
73 %define dali_data_rw_dir %TZ_SYS_SHARE/dali/
74 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
77 %define dali_toolkit_image_files %{dali_data_ro_dir}/toolkit/images/
78 %define dali_toolkit_sound_files %{dali_data_ro_dir}/toolkit/sounds/
79 %define dali_toolkit_style_files %{dali_data_ro_dir}/toolkit/styles/
80 %define dev_include_path %{_includedir}
84 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
87 language=${language%.po}
88 msgfmt -o ${language}.mo ${language}.po
92 ##############################
94 ##############################
97 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
98 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
100 %if 0%{?enable_coverage}
101 CXXFLAGS+=" --coverage "
102 LDFLAGS+=" --coverage "
106 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
108 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
109 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
111 %configure --enable-profile=%{dali_toolkit_profile} \
112 --with-style=%{dali_style_folder} \
113 %if 0%{?enable_debug}
118 make %{?jobs:-j%jobs}
120 ##############################
122 ##############################
126 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
129 mkdir -p %{buildroot}/usr/share/license
130 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
134 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
137 language=${language%.mo}
138 mkdir -p %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/
139 cp ${language}.mo %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/dali-toolkit.mo
143 ##############################
145 ##############################
150 ##############################
152 ##############################
157 ##############################
158 # Files in Binary Packages
159 ##############################
161 %if 0%{?enable_dali_smack_rules}
162 %manifest dali-toolkit.manifest-smack
164 %manifest dali-toolkit.manifest
166 %defattr(-,root,root,-)
167 %{_libdir}/lib%{name}.so*
168 %{dali_toolkit_image_files}/*
169 %{dali_toolkit_sound_files}/*
170 %{dali_toolkit_style_files}/*
171 %{_datadir}/license/%{name}
172 %{_datadir}/locale/*/LC_MESSAGES/*
175 %defattr(-,root,root,-)
176 %{dev_include_path}/%{name}/*
177 %{_libdir}/pkgconfig/*.pc