Name: dali2 Summary: DALi 3D Engine Version: 2.0.53 Release: 1 Group: System/Libraries License: Apache-2.0 and BSD-3-Clause and MIT URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-core.git;a=summary Source0: %{name}-%{version}.tar.gz Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: cmake BuildRequires: pkgconfig BuildRequires: gawk %if 0%{?tizen_version_major} >= 3 BuildRequires: pkgconfig(libtzplatform-config) %endif %description DALi 3D Engine ############################## # devel ############################## %package devel Summary: Development components for DALi 3D Engine Group: Development/Building Requires: %{name} = %{version}-%{release} Requires: %{name}-integration-devel = %{version}-%{release} %description devel Development components for DALi 3D Engine - public headers and package config ############################## # integration-devel ############################## %package integration-devel Summary: Integration development package for DALi 3D Engine Group: Development/Building Requires: %{name} = %{version}-%{release} %description integration-devel Integration development package for DALi 3D Engine - headers for integrating with an adaptor/platform abstraction library. ############################## # Preparation ############################## %prep %setup -q %define dev_include_path %{_includedir} ############################## # Build ############################## %build PREFIX="/usr" CXXFLAGS+=" -Wall -g -Os -DNDEBUG -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections " LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -lgcc_s -lgcc -Wl,-Bsymbolic-functions " %ifarch %{arm} CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon" %endif %if 0%{?enable_coverage} CXXFLAGS+=" --coverage " LDFLAGS+=" --coverage " %endif libtoolize --force cd %{_builddir}/%{name}-%{version}/build/tizen CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS; LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS; cmake \ %if 0%{?enable_debug} -DCMAKE_BUILD_TYPE=Debug \ %endif %if 0%{?enable_trace} -DENABLE_TRACE=ON \ %endif -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} make %{?jobs:-j%jobs} ############################## # Installation ############################## %install rm -rf %{buildroot} cd build/tizen pushd %{_builddir}/%{name}-%{version}/build/tizen %make_install ############################## # Post Install ############################## %post /sbin/ldconfig exit 0 ############################## # Post Uninstall ############################## %postun /sbin/ldconfig exit 0 ############################## # Files in Binary Packages ############################## %files %if 0%{?enable_dali_smack_rules} %manifest dali.manifest-smack %else %manifest dali.manifest %endif %defattr(-,root,root,-) %{_libdir}/libdali2-core.so* %license LICENSE %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/dali2-core.pc %{dev_include_path}/dali/public-api/* %{dev_include_path}/dali/devel-api/* %{dev_include_path}/dali/doc/* %files integration-devel %defattr(-,root,root,-) %{_includedir}/dali/integration-api/* %{_includedir}/dali/graphics-api/*