X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=packaging%2Fdali-toolkit.spec;h=31e140dc4b3e6abb767f6776b9a2b984068aacd3;hp=ee0e474d03e0c23c6fec70d7553df53561a38228;hb=a8abad3ca46394d5574070749dbd2dfd0ba95beb;hpb=eb2d5aee4430963ae25c32990687928dd72a28be diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index ee0e474..5f14f07 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -1,22 +1,41 @@ Name: dali-toolkit Summary: The OpenGLES Canvas Core Library Toolkit -Version: 1.0.29 +Version: 1.1.33 Release: 1 Group: System/Libraries -License: Apache-2.0 +License: Apache-2.0 and BSD-2-Clause and MIT URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-toolkit.git;a=summary Source0: %{name}-%{version}.tar.gz Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -Requires: dali -# Do NOT put an adaptor here - it is an application choice which adaptor to use + BuildRequires: pkgconfig BuildRequires: pkgconfig(dlog) -BuildRequires: boost-devel -BuildRequires: pkgconfig(dali) BuildRequires: pkgconfig(dali-core) -BuildRequires: fribidi-devel +BuildRequires: gettext + +# dali-toolkit only need to know the interfaces(APIs) of dali-adaptor(the devel package). +# It doesn't need to know which adaptor will be used by applications. +# Applications or dali-addon will decide which one they will use. +BuildRequires: dali-adaptor-devel + +############################# +# profile setup +############################# + +%define dali_toolkit_profile MOBILE +%define dali_style_folder 720x1280 +# dali_style to be provided by build system as with dali_toolkit_profile or by passing --define 'dali_style 470x800' to the rpm build command + +%if "%{?dali_style}" + %define dali_style_folder %{dali_style} +%endif + +# Further resource locations profiles can be provided here otherwise MOBILE will be used +%if "%{tizen_profile_name}" == "mobile" + %define dali_toolkit_profile MOBILE +%endif %description The OpenGLES Canvas Core Library Toolkit - a set of controls that provide @@ -29,7 +48,6 @@ user interface functionality. Summary: Application development package for the OpenGLES Canvas toolkit Group: Development/Building Requires: %{name} = %{version}-%{release} -Requires: boost-devel %description devel Application development package for the OpenGLES Canvas toolkit - headers and package config @@ -46,20 +64,30 @@ Application development package for the OpenGLES Canvas toolkit - headers and pa %define dali_toolkit_style_files %{dali_data_ro_dir}/toolkit/styles/ %define dev_include_path %{_includedir} +# PO +{ +cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po +for language in *.po +do + language=${language%.po} + msgfmt -o ${language}.mo ${language}.po +done +} &> /dev/null + ############################## # Build ############################## %build PREFIX="/usr" CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections " -LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections " +LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions " libtoolize --force cd %{_builddir}/dali-toolkit-%{version}/build/tizen autoreconf --install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR -%configure +%configure --enable-profile=%{dali_toolkit_profile} --with-style=%{dali_style_folder} --enable-i18n=yes make %{?jobs:-j%jobs} ############################## @@ -74,6 +102,17 @@ cd build/tizen mkdir -p %{buildroot}/usr/share/license cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name} +# PO +{ +cd %{_builddir}/dali-toolkit-%{version}/dali-toolkit/po +for language in *.mo +do + language=${language%.mo} + mkdir -p %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/ + cp ${language}.mo %{buildroot}/%{_datadir}/locale/${language}/LC_MESSAGES/dali-toolkit.mo +done +} &> /dev/null + ############################## # Post Install ############################## @@ -103,6 +142,7 @@ exit 0 %{dali_toolkit_sound_files}/* %{dali_toolkit_style_files}/* %{_datadir}/license/%{name} +%{_datadir}/locale/*/LC_MESSAGES/* %files devel %defattr(-,root,root,-)