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
13 BuildRequires: pkgconfig
16 %if 0%{?tizen_version_major} >= 3
17 BuildRequires: pkgconfig(libtzplatform-config)
23 ##############################
25 ##############################
27 Summary: Development components for DALi 3D Engine
28 Group: Development/Building
29 Requires: %{name} = %{version}-%{release}
30 Requires: %{name}-integration-devel = %{version}-%{release}
33 Development components for DALi 3D Engine - public headers and package config
35 ##############################
37 ##############################
38 %package integration-devel
39 Summary: Integration development package for DALi 3D Engine
40 Group: Development/Building
41 Requires: %{name} = %{version}-%{release}
43 %description integration-devel
44 Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library.
46 ##############################
48 ##############################
52 %define dev_include_path %{_includedir}
54 ##############################
56 ##############################
59 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
60 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -Wl,-Bsymbolic-functions "
63 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
66 %if 0%{?enable_coverage}
67 CXXFLAGS+=" --coverage "
68 LDFLAGS+=" --coverage "
72 cd %{_builddir}/%{name}-%{version}/build/tizen
74 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
75 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
76 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
80 -DCMAKE_BUILD_TYPE=Debug \
85 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
86 -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
87 -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}
91 ##############################
93 ##############################
98 pushd %{_builddir}/%{name}-%{version}/build/tizen
101 ##############################
103 ##############################
108 ##############################
110 ##############################
115 ##############################
116 # Files in Binary Packages
117 ##############################
120 %if 0%{?enable_dali_smack_rules}
121 %manifest dali.manifest-smack
123 %manifest dali.manifest
125 %defattr(-,root,root,-)
126 %{_libdir}/libdali2-core.so*
130 %defattr(-,root,root,-)
131 %{_libdir}/pkgconfig/dali2-core.pc
132 %{dev_include_path}/dali/public-api/*
133 %{dev_include_path}/dali/devel-api/*
134 %{dev_include_path}/dali/doc/*
136 %files integration-devel
137 %defattr(-,root,root,-)
138 %{_includedir}/dali/integration-api/*