2 Summary: The OpenGLES Canvas Core Library
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-core.git;a=summary
8 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires: pkgconfig
15 %if 0%{?tizen_version_major} >= 3
16 BuildRequires: pkgconfig(libtzplatform-config)
21 The OpenGLES Canvas Core Library provides a 3D scene graph
23 ##############################
25 ##############################
27 Summary: Development components for the OpenGLES Canvas Core Library
28 Group: Development/Building
29 Requires: %{name} = %{version}-%{release}
30 Requires: %{name}-integration-devel = %{version}-%{release}
33 Development components for the OpenGLES Canvas Core Library - public headers and package config
35 ##############################
37 ##############################
38 %package integration-devel
39 Summary: Integration development package for the OpenGLES Canvas
40 Group: Development/Building
41 Requires: %{name} = %{version}-%{release}
43 %description integration-devel
44 Integration development package for the OpenGLES Canvas - headers for integrating with an adaptor/platform abstraction library.
46 ##############################
48 ##############################
52 #Use TZ_PATH when tizen version is 3.x
54 %if "%{tizen_version_major}" == "2"
55 %define dali_data_rw_dir /opt/usr/share/dali/
56 %define dali_data_ro_dir /usr/share/dali/
58 %define dali_data_rw_dir %TZ_SYS_SHARE/dali/
59 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
62 %define dev_include_path %{_includedir}
64 ##############################
66 ##############################
69 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -D_GLIBCXX_USE_CXX11_ABI=0 "
70 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -lpthread -Wl,-Bsymbolic-functions "
73 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
76 %if 0%{?enable_coverage}
77 CXXFLAGS+=" --coverage "
78 LDFLAGS+=" --coverage "
82 cd %{_builddir}/%{name}-%{version}/build/tizen
84 DALI_DATA_RW_DIR="%{dali_data_rw_dir}"
85 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
86 export DALI_DATA_RW_DIR
87 export DALI_DATA_RO_DIR
89 # Default to GLES 2.0 if not specified.
90 %{!?target_gles_version: %define target_gles_version 20}
92 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
93 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
94 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
96 --program-prefix=%{?_program_prefix} \
98 --exec-prefix=%{_exec_prefix} \
100 --sbindir=%{_sbindir} \
101 --sysconfdir=%{_sysconfdir} \
102 --datadir=%{_datadir} \
103 --includedir=%{_includedir} \
104 --libdir=%{_libdir} \
105 --libexecdir=%{_libexecdir} \
106 --localstatedir=%{_localstatedir} \
107 --sharedstatedir=%{_sharedstatedir} \
108 --mandir=%{_mandir} \
109 --enable-gles=%{target_gles_version} \
110 %if 0%{?enable_debug}
113 --infodir=%{_infodir}
115 make %{?jobs:-j%jobs}
117 ##############################
119 ##############################
123 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
127 ##############################
129 ##############################
134 ##############################
136 ##############################
141 ##############################
142 # Files in Binary Packages
143 ##############################
146 %if 0%{?enable_dali_smack_rules}
147 %manifest dali.manifest-smack
149 %manifest dali.manifest
151 %defattr(-,root,root,-)
152 %{_libdir}/lib%{name}-core.so*
153 %defattr(-,app,app,-)
157 %defattr(-,root,root,-)
158 %{_libdir}/pkgconfig/*.pc
159 %{dev_include_path}/%{name}/public-api/*
160 %{dev_include_path}/%{name}/devel-api/*
161 %{dev_include_path}/%{name}/doc/*
163 %files integration-devel
164 %defattr(-,root,root,-)
165 %{_includedir}/%{name}/integration-api/*