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: pkgconfig(dali-adaptor)
17 BuildRequires: gettext
19 # dali-toolkit only need to know the interfaces(APIs) of dali-adaptor(the devel package).
20 # It doesn't need to know which adaptor will be used by applications.
21 # Applications or dali-addon will decide which one they will use.
22 BuildRequires: dali-adaptor-devel
24 #need libtzplatform-config for directory if tizen version is 3.x
26 %if "%{tizen_version_major}" == "3"
27 BuildRequires: pkgconfig(libtzplatform-config)
30 #############################
32 #############################
34 %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
35 %define profile %{tizen_profile_name}
38 %if "%{profile}" == "tv"
39 %define dali_toolkit_profile TV
40 %define dali_style_folder 1920x1080
42 %if "%{profile}" == "wearable"
43 %define dali_toolkit_profile WEARABLE
44 %define dali_style_folder 360x360
46 %define dali_toolkit_profile MOBILE
47 %define dali_style_folder 720x1280
48 # 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
53 %define dali_style_folder %{dali_style}
57 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
58 user interface functionality.
60 ##############################
62 ##############################
64 Summary: Application development package for the OpenGLES Canvas toolkit
65 Group: Development/Building
66 Requires: %{name} = %{version}-%{release}
69 Application development package for the OpenGLES Canvas toolkit - headers and package config
71 ##############################
73 ##############################
77 #Use TZ_PATH when tizen version is 3.x
79 %if "%{tizen_version_major}" == "2"
80 %define dali_data_rw_dir /opt/usr/share/dali/
81 %define dali_data_ro_dir /usr/share/dali/
83 %define dali_data_rw_dir %TZ_SYS_SHARE/dali/
84 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
87 %define dali_toolkit_image_files %{dali_data_ro_dir}/toolkit/images/
88 %define dali_toolkit_sound_files %{dali_data_ro_dir}/toolkit/sounds/
89 %define dali_toolkit_style_files %{dali_data_ro_dir}/toolkit/styles/
90 %define dev_include_path %{_includedir}
94 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
97 language=${language%.po}
98 msgfmt -o ${language}.mo ${language}.po
102 ##############################
104 ##############################
107 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
108 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
110 %if 0%{?enable_coverage}
111 CXXFLAGS+=" --coverage "
112 LDFLAGS+=" --coverage "
116 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
118 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
119 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
121 %configure --enable-profile=%{dali_toolkit_profile} \
122 --with-style=%{dali_style_folder} \
123 %if 0%{?enable_debug}
128 make %{?jobs:-j%jobs}
130 ##############################
132 ##############################
136 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
141 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
144 language=${language%.mo}
145 mkdir -p %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/
146 cp ${language}.mo %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/dali-toolkit.mo
150 ##############################
152 ##############################
157 ##############################
159 ##############################
164 ##############################
165 # Files in Binary Packages
166 ##############################
168 %if 0%{?enable_dali_smack_rules}
169 %manifest dali-toolkit.manifest-smack
171 %manifest dali-toolkit.manifest
173 %defattr(-,root,root,-)
174 %{_libdir}/lib%{name}.so*
175 %{dali_toolkit_image_files}/*
176 %{dali_toolkit_sound_files}/*
177 %{dali_toolkit_style_files}/*
179 #%{_datadir}/license/%{name}
180 %{_datadir}/locale/*/LC_MESSAGES/*
183 %defattr(-,root,root,-)
184 %{dev_include_path}/%{name}/*
185 %{_libdir}/pkgconfig/*.pc