2 Summary: DALi 3D Engine
5 Group: System/Libraries
6 License: Apache-2.0 and BSD-3-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)
22 ##############################
24 ##############################
26 Summary: Development components for DALi 3D Engine
27 Group: Development/Building
28 Requires: %{name} = %{version}-%{release}
29 Requires: %{name}-integration-devel = %{version}-%{release}
32 Development components for DALi 3D Engine - public headers and package config
34 ##############################
36 ##############################
37 %package integration-devel
38 Summary: Integration development package for DALi 3D Engine
39 Group: Development/Building
40 Requires: %{name} = %{version}-%{release}
42 %description integration-devel
43 Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library.
45 ##############################
47 ##############################
51 #Use TZ_PATH when tizen version is 3.x
53 %if "%{tizen_version_major}" == "2"
54 %define dali_data_rw_dir /opt/usr/share/dali/
55 %define dali_data_ro_dir /usr/share/dali/
57 %define dali_data_rw_dir %TZ_SYS_SHARE/dali/
58 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
61 %define dev_include_path %{_includedir}
63 ##############################
65 ##############################
68 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
69 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -Wl,-Bsymbolic-functions "
72 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
75 %if 0%{?enable_coverage}
76 CXXFLAGS+=" --coverage "
77 LDFLAGS+=" --coverage "
81 cd %{_builddir}/%{name}-%{version}/build/tizen
83 DALI_DATA_RW_DIR="%{dali_data_rw_dir}"
84 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
85 export DALI_DATA_RW_DIR
86 export DALI_DATA_RO_DIR
88 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
89 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
90 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
93 --program-prefix=%{?_program_prefix} \
95 --exec-prefix=%{_exec_prefix} \
97 --sbindir=%{_sbindir} \
98 --sysconfdir=%{_sysconfdir} \
99 --datadir=%{_datadir} \
100 --includedir=%{_includedir} \
101 --libdir=%{_libdir} \
102 --libexecdir=%{_libexecdir} \
103 --localstatedir=%{_localstatedir} \
104 --sharedstatedir=%{_sharedstatedir} \
105 --mandir=%{_mandir} \
106 %if 0%{?enable_debug}
109 %if 0%{?enable_trace}
112 --infodir=%{_infodir} \
113 --enable-rename-so=no
115 make %{?jobs:-j%jobs}
117 pushd %{_builddir}/%{name}-%{version}/build/tizen
118 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
121 pushd %{buildroot}%{_libdir}
122 for FILE in libdali-core-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
123 mv pkgconfig/dali-core.pc %{_builddir}/%{name}-%{version}/build/tizen/dali-core.pc
126 ##############################
128 ##############################
133 pushd %{_builddir}/%{name}-%{version}/build/tizen
134 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
136 for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
137 mv dali-core.pc %{buildroot}%{_libdir}/pkgconfig/dali-core.pc
140 #############################
142 #############################
143 pushd %{buildroot}%{_libdir}
144 rm -rf libdali-core.so
145 rm -rf libdali-core-cxx11.so
146 ln -s libdali-core-cxx11.so.0.0.* libdali-core.so
150 ##############################
152 ##############################
157 ##############################
159 ##############################
164 ##############################
165 # Files in Binary Packages
166 ##############################
169 %if 0%{?enable_dali_smack_rules}
170 %manifest dali.manifest-smack
172 %manifest dali.manifest
174 %defattr(-,root,root,-)
175 %{_libdir}/libdali-core-cxx11.so.*
176 %{_libdir}/libdali-core.so
180 %defattr(-,root,root,-)
181 %{_libdir}/pkgconfig/dali-core.pc
182 %{dev_include_path}/dali/public-api/*
183 %{dev_include_path}/dali/devel-api/*
184 %{dev_include_path}/dali/doc/*
186 %files integration-devel
187 %defattr(-,root,root,-)
188 %{_includedir}/dali/integration-api/*