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 "%{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 "
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}
118 ##############################
120 ##############################
124 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
127 mkdir -p %{buildroot}/usr/share/license
128 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
131 ##############################
133 ##############################
138 ##############################
140 ##############################
145 ##############################
146 # Files in Binary Packages
147 ##############################
150 %if 0%{?enable_dali_smack_rules}
151 %manifest dali.manifest-smack
153 %manifest dali.manifest
155 %defattr(-,root,root,-)
156 %{_libdir}/lib%{name}-core.so*
157 %defattr(-,app,app,-)
158 %{_datadir}/license/%{name}
161 %defattr(-,root,root,-)
162 %{_libdir}/pkgconfig/*.pc
163 %{dev_include_path}/%{name}/public-api/*
164 %{dev_include_path}/%{name}/devel-api/*
165 %{dev_include_path}/%{name}/doc/*
167 %files integration-devel
168 %defattr(-,root,root,-)
169 %{_includedir}/%{name}/integration-api/*