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
15 Provides: libdali-core-cxx11.so
16 Provides: libdali-core-cxx11.so.0
17 Provides: libdali-core-cxx11.so.0.0.0
19 %if 0%{?tizen_version_major} >= 3
20 BuildRequires: pkgconfig(libtzplatform-config)
26 ##############################
28 ##############################
30 Summary: Development components for DALi 3D Engine
31 Group: Development/Building
32 Requires: %{name} = %{version}-%{release}
33 Requires: %{name}-integration-devel = %{version}-%{release}
36 Development components for DALi 3D Engine - public headers and package config
38 ##############################
40 ##############################
41 %package integration-devel
42 Summary: Integration development package for DALi 3D Engine
43 Group: Development/Building
44 Requires: %{name} = %{version}-%{release}
46 %description integration-devel
47 Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library.
49 ##############################
51 ##############################
55 %define dev_include_path %{_includedir}
57 ##############################
59 ##############################
62 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
63 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -Wl,-Bsymbolic-functions "
66 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
69 %if 0%{?enable_coverage}
70 CXXFLAGS+=" --coverage "
71 LDFLAGS+=" --coverage "
75 cd %{_builddir}/%{name}-%{version}/build/tizen
77 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
78 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
79 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
83 -DCMAKE_BUILD_TYPE=Debug \
88 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
89 -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
90 -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}
94 ##############################
96 ##############################
101 pushd %{_builddir}/%{name}-%{version}/build/tizen
104 # Create links to ensure linking with cxx11 library is preserved
105 pushd %{buildroot}%{_libdir}
106 ln -sf libdali-core.so libdali-core-cxx11.so
107 ln -sf libdali-core.so libdali-core-cxx11.so.0
108 ln -sf libdali-core.so libdali-core-cxx11.so.0.0.0
111 ##############################
113 ##############################
118 ##############################
120 ##############################
125 ##############################
126 # Files in Binary Packages
127 ##############################
130 %if 0%{?enable_dali_smack_rules}
131 %manifest dali.manifest-smack
133 %manifest dali.manifest
135 %defattr(-,root,root,-)
136 %{_libdir}/libdali-core-cxx11.so*
137 %{_libdir}/libdali-core.so*
141 %defattr(-,root,root,-)
142 %{_libdir}/pkgconfig/dali-core.pc
143 %{dev_include_path}/dali/public-api/*
144 %{dev_include_path}/dali/devel-api/*
145 %{dev_include_path}/dali/doc/*
147 %files integration-devel
148 %defattr(-,root,root,-)
149 %{_includedir}/dali/integration-api/*