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 %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
34 %define profile %{tizen_profile_name}
37 %if "%{profile}" == "mobile"
38 %define dali_toolkit_profile MOBILE
39 %define dali_style_folder 720x1280
40 # 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
43 %if "%{profile}" == "tv"
44 %define dali_toolkit_profile TV
45 %define dali_style_folder 1920x1080
49 %define dali_style_folder %{dali_style}
53 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
54 user interface functionality.
56 ##############################
58 ##############################
60 Summary: Application development package for the OpenGLES Canvas toolkit
61 Group: Development/Building
62 Requires: %{name} = %{version}-%{release}
65 Application development package for the OpenGLES Canvas toolkit - headers and package config
67 ##############################
69 ##############################
73 #Use TZ_PATH when tizen version is 3.x
75 %if "%{tizen_version_major}" == "2"
76 %define dali_data_rw_dir /opt/usr/share/dali/
77 %define dali_data_ro_dir /usr/share/dali/
79 %define dali_data_rw_dir %TZ_SYS_SHARE/dali/
80 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
83 %define dali_toolkit_image_files %{dali_data_ro_dir}/toolkit/images/
84 %define dali_toolkit_sound_files %{dali_data_ro_dir}/toolkit/sounds/
85 %define dali_toolkit_style_files %{dali_data_ro_dir}/toolkit/styles/
86 %define dev_include_path %{_includedir}
90 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
93 language=${language%.po}
94 msgfmt -o ${language}.mo ${language}.po
98 ##############################
100 ##############################
103 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
104 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
106 %if 0%{?enable_coverage}
107 CXXFLAGS+=" --coverage "
108 LDFLAGS+=" --coverage "
112 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
114 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
115 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
117 %configure --enable-profile=%{dali_toolkit_profile} \
118 --with-style=%{dali_style_folder} \
119 %if 0%{?enable_debug}
124 make %{?jobs:-j%jobs}
126 ##############################
128 ##############################
132 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
135 mkdir -p %{buildroot}/usr/share/license
136 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
140 cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po
143 language=${language%.mo}
144 mkdir -p %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/
145 cp ${language}.mo %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/dali-toolkit.mo
149 ##############################
151 ##############################
156 ##############################
158 ##############################
163 ##############################
164 # Files in Binary Packages
165 ##############################
167 %if 0%{?enable_dali_smack_rules}
168 %manifest dali-toolkit.manifest-smack
170 %manifest dali-toolkit.manifest
172 %defattr(-,root,root,-)
173 %{_libdir}/lib%{name}.so*
174 %{dali_toolkit_image_files}/*
175 %{dali_toolkit_sound_files}/*
176 %{dali_toolkit_style_files}/*
177 %{_datadir}/license/%{name}
178 %{_datadir}/locale/*/LC_MESSAGES/*
181 %defattr(-,root,root,-)
182 %{dev_include_path}/%{name}/*
183 %{_libdir}/pkgconfig/*.pc