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)
24 BuildRequires: pkgconfig(libtzplatform-config)
27 The OpenGLES Canvas Core Demo is a collection of examples and demonstrations
28 of the capability of the toolkit.
30 ##############################
32 ##############################
36 %define dali_app_ro_dir %TZ_SYS_RO_APP/com.samsung.dali-demo/
37 %define dali_xml_file_dir %TZ_SYS_RO_PACKAGES
38 %define dali_icon_dir %TZ_SYS_RO_ICONS
39 %define smack_rule_dir %TZ_SYS_SMACK/accesses2.d/
41 %define dali_app_res_dir %{dali_app_ro_dir}/res/
42 %define dali_app_exe_dir %{dali_app_ro_dir}/bin/
43 %define locale_dir %{dali_app_res_dir}/locale
44 %define local_style_dir ../../resources/style/mobile
46 ##############################
48 ##############################
51 CXXFLAGS+=" -Wall -g -O2"
52 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed"
55 CXXFLAGS+=" -D_ARCH_ARM_"
58 cd %{_builddir}/%{name}-%{version}/build/tizen
60 cmake -DDALI_APP_DIR=%{dali_app_ro_dir}/bin \
61 -DLOCALE_DIR=%{locale_dir} \
62 -DDALI_APP_RES_DIR=%{dali_app_res_dir} \
64 -DCMAKE_BUILD_TYPE=Debug \
66 -DLOCAL_STYLE_DIR=%{local_style_dir} \
67 -DINTERNATIONALIZATION:BOOL=OFF \
72 ##############################
74 ##############################
78 %make_install DALI_APP_DIR=%{dali_app_ro_dir}/bin
79 %make_install DDALI_APP_RES_DIR=%{dali_app_res_dir}
81 mkdir -p %{buildroot}%{dali_xml_file_dir}
82 cp -f %{_builddir}/%{name}-%{version}/%{name}.xml %{buildroot}%{dali_xml_file_dir}
84 mkdir -p %{buildroot}%{dali_icon_dir}
85 mv %{buildroot}/%{dali_app_res_dir}/images/%{name}.png %{buildroot}%{dali_icon_dir}
86 mv %{buildroot}/%{dali_app_res_dir}/images/dali-examples.png %{buildroot}%{dali_icon_dir}
87 mv %{buildroot}/%{dali_app_res_dir}/images/dali-tests.png %{buildroot}%{dali_icon_dir}
89 %if 0%{?enable_dali_smack_rules} && !%{with wayland}
90 mkdir -p %{buildroot}%{smack_rule_dir}
91 cp -f %{_builddir}/%{name}-%{version}/%{name}.rule %{buildroot}%{smack_rule_dir}
95 ##############################
97 ##############################
102 ##############################
104 ##############################
109 ##############################
110 # Files in Binary Packages
111 ##############################
114 %if 0%{?enable_dali_smack_rules}
115 %manifest com.samsung.dali-demo.manifest-smack
117 %manifest com.samsung.dali-demo.manifest
119 %defattr(-,root,root,-)
120 %{dali_app_exe_dir}/dali-demo
121 %{dali_app_exe_dir}/dali-examples
122 %{dali_app_exe_dir}/dali-tests
123 %{dali_app_exe_dir}/*.example
124 %{dali_app_exe_dir}/dali-builder
125 %{dali_app_res_dir}/images/*
126 %{dali_app_res_dir}/game/*
127 %{dali_app_res_dir}/videos/*
128 %{dali_app_res_dir}/models/*
129 %{dali_app_res_dir}/scripts/*
130 %{dali_app_res_dir}/shaders/*
131 %{dali_app_res_dir}/style/*
132 %{dali_app_res_dir}/style/images/*
133 %{dali_xml_file_dir}/%{name}.xml
136 %if 0%{?enable_dali_smack_rules} && !%{with wayland}
137 %config %{smack_rule_dir}/%{name}.rule