3 Name: com.samsung.dali-demo
4 Summary: The OpenGLES Canvas Core Demo
7 Group: System/Libraries
9 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-demo.git;a=summary
10 Source0: %{name}-%{version}.tar.gz
12 Requires(post): /sbin/ldconfig
13 Requires(postun): /sbin/ldconfig
16 BuildRequires: pkgconfig
17 BuildRequires: pkgconfig(capi-appfw-application)
18 BuildRequires: pkgconfig(capi-media-player)
19 BuildRequires: pkgconfig(dlog)
20 BuildRequires: gettext-tools
21 BuildRequires: pkgconfig(dali-core)
22 BuildRequires: pkgconfig(dali-adaptor)
23 BuildRequires: pkgconfig(dali-toolkit)
25 #need libtzplatform-config for directory if tizen version is 3.x
26 %if 0%{?tizen_version_major} >= 3
27 BuildRequires: pkgconfig(libtzplatform-config)
31 The OpenGLES Canvas Core Demo is a collection of examples and demonstrations
32 of the capability of the toolkit.
34 ##############################
36 ##############################
40 #Use TZ_PATH when tizen version is 3.x
42 %if "%{tizen_version_major}" == "2"
43 %define dali_app_ro_dir /usr/apps/com.samsung.dali-demo/
44 %define dali_xml_file_dir /usr/share/packages/
45 %define dali_icon_dir /usr/share/icons/
46 %define smack_rule_dir /etc/smack/accesses2.d/
48 %define dali_app_ro_dir %TZ_SYS_RO_APP/com.samsung.dali-demo/
49 %define dali_xml_file_dir %TZ_SYS_RO_PACKAGES
50 %define dali_icon_dir %TZ_SYS_RO_ICONS
51 %define smack_rule_dir %TZ_SYS_SMACK/accesses2.d/
54 %define dali_app_res_dir %{dali_app_ro_dir}/res/
55 %define dali_app_exe_dir %{dali_app_ro_dir}/bin/
56 %define locale_dir %{dali_app_res_dir}/locale
57 %define local_style_dir ../../resources/style/mobile
59 ##############################
61 ##############################
64 CXXFLAGS+=" -Wall -g -O2"
65 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed"
68 CXXFLAGS+=" -D_ARCH_ARM_"
71 cd %{_builddir}/%{name}-%{version}/build/tizen
73 cmake -DDALI_APP_DIR=%{dali_app_ro_dir} \
74 -DLOCALE_DIR=%{locale_dir} \
75 -DDALI_APP_RES_DIR=%{dali_app_res_dir} \
77 -DCMAKE_BUILD_TYPE=Debug \
79 -DLOCAL_STYLE_DIR=%{local_style_dir} \
80 -DINTERNATIONALIZATION:BOOL=OFF \
85 ##############################
87 ##############################
91 %make_install DALI_APP_DIR=%{dali_app_ro_dir}
92 %make_install DDALI_APP_RES_DIR=%{dali_app_res_dir}
94 mkdir -p %{buildroot}%{dali_xml_file_dir}
95 cp -f %{_builddir}/%{name}-%{version}/%{name}.xml %{buildroot}%{dali_xml_file_dir}
97 mkdir -p %{buildroot}%{dali_icon_dir}
98 mv %{buildroot}/%{dali_app_res_dir}/images/%{name}.png %{buildroot}%{dali_icon_dir}
99 mv %{buildroot}/%{dali_app_res_dir}/images/dali-examples.png %{buildroot}%{dali_icon_dir}
100 mv %{buildroot}/%{dali_app_res_dir}/images/dali-tests.png %{buildroot}%{dali_icon_dir}
102 %if 0%{?enable_dali_smack_rules} && !%{with wayland}
103 mkdir -p %{buildroot}%{smack_rule_dir}
104 cp -f %{_builddir}/%{name}-%{version}/%{name}.rule %{buildroot}%{smack_rule_dir}
108 ##############################
110 ##############################
115 ##############################
117 ##############################
122 ##############################
123 # Files in Binary Packages
124 ##############################
127 %if 0%{?enable_dali_smack_rules}
128 %manifest com.samsung.dali-demo.manifest-smack
130 %manifest com.samsung.dali-demo.manifest
132 %defattr(-,root,root,-)
133 %{dali_app_exe_dir}/dali-demo
134 %{dali_app_exe_dir}/dali-examples
135 %{dali_app_exe_dir}/dali-tests
136 %{dali_app_exe_dir}/*.example
137 %{dali_app_exe_dir}/dali-builder
138 %{dali_app_res_dir}/images/*
139 %{dali_app_res_dir}/game/*
140 %{dali_app_res_dir}/videos/*
141 %{dali_app_res_dir}/models/*
142 %{dali_app_res_dir}/scripts/*
143 %{dali_app_res_dir}/shaders/*
144 %{dali_app_res_dir}/style/*
145 %{dali_app_res_dir}/style/images/*
146 %{dali_xml_file_dir}/%{name}.xml
149 %if 0%{?enable_dali_smack_rules} && !%{with wayland}
150 %config %{smack_rule_dir}/%{name}.rule