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 dev_include_path %{_includedir}
53 ##############################
55 ##############################
58 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
59 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -lpthread -Wl,-Bsymbolic-functions "
62 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
66 cd %{_builddir}/%{name}-%{version}/build/tizen
68 DALI_DATA_RW_DIR="%{dali_data_rw_dir}"
69 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
70 export DALI_DATA_RW_DIR
71 export DALI_DATA_RO_DIR
73 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
74 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
75 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
77 --program-prefix=%{?_program_prefix} \
79 --exec-prefix=%{_exec_prefix} \
81 --sbindir=%{_sbindir} \
82 --sysconfdir=%{_sysconfdir} \
83 --datadir=%{_datadir} \
84 --includedir=%{_includedir} \
86 --libexecdir=%{_libexecdir} \
87 --localstatedir=%{_localstatedir} \
88 --sharedstatedir=%{_sharedstatedir} \
94 ##############################
96 ##############################
100 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
103 mkdir -p %{buildroot}/usr/share/license
104 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
107 ##############################
109 ##############################
114 ##############################
116 ##############################
121 ##############################
122 # Files in Binary Packages
123 ##############################
126 %if 0%{?enable_dali_smack_rules}
127 %manifest dali.manifest-smack
129 %manifest dali.manifest
131 %defattr(-,root,root,-)
132 %{_libdir}/lib%{name}-core.so*
133 %defattr(-,app,app,-)
134 %{_datadir}/license/%{name}
137 %defattr(-,root,root,-)
138 %{_libdir}/pkgconfig/*.pc
139 %{dev_include_path}/%{name}/public-api/*
141 %files integration-devel
142 %defattr(-,root,root,-)
143 %{_includedir}/%{name}/integration-api/*