2 Summary: The OpenGLES Canvas Core Library
5 Group: System/Libraries
7 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-core.git;a=summary
8 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires: boost-thread
13 BuildRequires: pkgconfig
15 BuildRequires: boost-devel
16 BuildRequires: boost-thread
19 The OpenGLES Canvas Core Library provides a 3D scene graph
21 ##############################
23 ##############################
25 Summary: Development components for the OpenGLES Canvas Core Library
26 Group: Development/Building
27 Requires: %{name} = %{version}-%{release}
28 Requires: %{name}-integration-devel = %{version}-%{release}
31 Development components for the OpenGLES Canvas Core Library - public headers and package config
33 ##############################
35 ##############################
36 %package integration-devel
37 Summary: Integration development package for the OpenGLES Canvas
38 Group: Development/Building
39 Requires: %{name} = %{version}-%{release}
41 %description integration-devel
42 Integration development package for the OpenGLES Canvas - headers for integrating with an adaptor/platform abstraction library.
44 ##############################
46 ##############################
49 %define dali_data_rw_dir /opt/usr/share/dali/
50 %define dali_data_ro_dir /usr/share/dali/
51 %define shader_bin_dir %{dali_data_rw_dir}/core/shaderbin
52 %define dev_include_path %{_includedir}
54 ##############################
56 ##############################
59 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
60 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -lpthread -Wl,-Bsymbolic-functions "
63 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
67 cd %{_builddir}/%{name}-%{version}/build/tizen
69 DALI_DATA_RW_DIR="%{dali_data_rw_dir}"
70 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
71 export DALI_DATA_RW_DIR
72 export DALI_DATA_RO_DIR
74 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
75 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
76 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
78 --program-prefix=%{?_program_prefix} \
80 --exec-prefix=%{_exec_prefix} \
82 --sbindir=%{_sbindir} \
83 --sysconfdir=%{_sysconfdir} \
84 --datadir=%{_datadir} \
85 --includedir=%{_includedir} \
87 --libexecdir=%{_libexecdir} \
88 --localstatedir=%{_localstatedir} \
89 --sharedstatedir=%{_sharedstatedir} \
95 ##############################
97 ##############################
101 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
104 mkdir -p %{buildroot}/usr/share/license
105 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
108 ##############################
110 ##############################
113 chown 5000:5000 %{shader_bin_dir}
114 rm -rf %{shader_bin_dir}/*
117 ##############################
119 ##############################
122 rm -rf %{shader_bin_dir}
125 ##############################
126 # Files in Binary Packages
127 ##############################
130 %if 0%{?enable_dali_smack_rules}
131 %manifest dali.manifest-smack
133 %manifest dali.manifest
135 %defattr(-,root,root,-)
136 %{_libdir}/lib%{name}-core.so*
137 %defattr(-,app,app,-)
138 %dir %{shader_bin_dir}
139 %{_datadir}/license/%{name}
142 %defattr(-,root,root,-)
143 %{_libdir}/pkgconfig/*.pc
144 %{dev_include_path}/%{name}/public-api/*
146 %files integration-devel
147 %defattr(-,root,root,-)
148 %{_includedir}/%{name}/integration-api/*