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
14 BuildRequires: pkgconfig
17 %if 0%{?tizen_version_major} >= 3
18 BuildRequires: pkgconfig(libtzplatform-config)
24 ##############################
26 ##############################
28 Summary: Development components for DALi 3D Engine
29 Group: Development/Building
30 Requires: %{name} = %{version}-%{release}
31 Requires: %{name}-integration-devel = %{version}-%{release}
34 Development components for DALi 3D Engine - public headers and package config
36 ##############################
38 ##############################
39 %package integration-devel
40 Summary: Integration development package for DALi 3D Engine
41 Group: Development/Building
42 Requires: %{name} = %{version}-%{release}
44 %description integration-devel
45 Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library.
47 ##############################
49 ##############################
53 %define dev_include_path %{_includedir}
55 ##############################
57 ##############################
60 CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
61 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -Wl,-Bsymbolic-functions "
64 CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
67 %if 0%{?enable_coverage}
68 CXXFLAGS+=" --coverage "
69 LDFLAGS+=" --coverage "
73 cd %{_builddir}/%{name}-%{version}/build/tizen
75 CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
76 CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
77 LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
81 -DCMAKE_BUILD_TYPE=Debug \
86 -DCMAKE_INSTALL_PREFIX=%{_prefix}
90 ##############################
92 ##############################
97 pushd %{_builddir}/%{name}-%{version}/build/tizen
100 # Create links to ensure linking with cxx11 library is preserved
101 pushd %{buildroot}%{_libdir}
102 ln -sf libdali-core.so libdali-core-cxx11.so
103 ln -sf libdali-core.so libdali-core-cxx11.so.0
104 ln -sf libdali-core.so libdali-core-cxx11.so.0.0.0
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}/libdali-core-cxx11.so*
133 %{_libdir}/libdali-core.so*
137 %defattr(-,root,root,-)
138 %{_libdir}/pkgconfig/dali-core.pc
139 %{dev_include_path}/dali/public-api/*
140 %{dev_include_path}/dali/devel-api/*
141 %{dev_include_path}/dali/doc/*
143 %files integration-devel
144 %defattr(-,root,root,-)
145 %{_includedir}/dali/integration-api/*