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
16 The OpenGLES Canvas Core Library provides a 3D scene graph
18 ##############################
20 ##############################
22 Summary: Development components for the OpenGLES Canvas Core Library
23 Group: Development/Building
24 Requires: %{name} = %{version}-%{release}
25 Requires: %{name}-integration-devel = %{version}-%{release}
28 Development components for the OpenGLES Canvas Core Library - public headers and package config
30 ##############################
32 ##############################
33 %package integration-devel
34 Summary: Integration development package for the OpenGLES Canvas
35 Group: Development/Building
36 Requires: %{name} = %{version}-%{release}
38 %description integration-devel
39 Integration development package for the OpenGLES Canvas - headers for integrating with an adaptor/platform abstraction library.
41 ##############################
43 ##############################
46 %define dali_data_rw_dir /opt/usr/share/dali/
47 %define dali_data_ro_dir /usr/share/dali/
48 %define dev_include_path %{_includedir}
50 ##############################
52 ##############################
55 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
56 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -lpthread -Wl,-Bsymbolic-functions "
59 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
62 %if 0%{?enable_coverage}
63 CXXFLAGS+=" --coverage "
64 LDFLAGS+=" --coverage "
68 cd %{_builddir}/%{name}-%{version}/build/tizen
70 DALI_DATA_RW_DIR="%{dali_data_rw_dir}"
71 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
72 export DALI_DATA_RW_DIR
73 export DALI_DATA_RO_DIR
75 # Default to GLES 2.0 if not specified.
76 %{!?target_gles_version: %define target_gles_version 20}
78 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
79 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
80 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
82 --program-prefix=%{?_program_prefix} \
84 --exec-prefix=%{_exec_prefix} \
86 --sbindir=%{_sbindir} \
87 --sysconfdir=%{_sysconfdir} \
88 --datadir=%{_datadir} \
89 --includedir=%{_includedir} \
91 --libexecdir=%{_libexecdir} \
92 --localstatedir=%{_localstatedir} \
93 --sharedstatedir=%{_sharedstatedir} \
95 --enable-gles=%{target_gles_version} \
101 make %{?jobs:-j%jobs}
103 ##############################
105 ##############################
109 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
112 mkdir -p %{buildroot}/usr/share/license
113 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
116 ##############################
118 ##############################
123 ##############################
125 ##############################
130 ##############################
131 # Files in Binary Packages
132 ##############################
135 %if 0%{?enable_dali_smack_rules}
136 %manifest dali.manifest-smack
138 %manifest dali.manifest
140 %defattr(-,root,root,-)
141 %{_libdir}/lib%{name}-core.so*
142 %defattr(-,app,app,-)
143 %{_datadir}/license/%{name}
146 %defattr(-,root,root,-)
147 %{_libdir}/pkgconfig/*.pc
148 %{dev_include_path}/%{name}/public-api/*
149 %{dev_include_path}/%{name}/devel-api/*
150 %{dev_include_path}/%{name}/doc/*
152 %files integration-devel
153 %defattr(-,root,root,-)
154 %{_includedir}/%{name}/integration-api/*