Added pixel padding to image upload through Atlas manager
[platform/core/uifw/dali-toolkit.git] / packaging / dali-toolkit-mobile.spec
1 Name:       dali-toolkit
2 Summary:    The OpenGLES Canvas Core Library Toolkit
3 Version:    1.0.33
4 Release:    1
5 Group:      System/Libraries
6 License:    Apache-2.0
7 URL:        https://review.tizen.org/git/?p=platform/core/uifw/dali-toolkit.git;a=summary
8 Source0:    %{name}-%{version}.tar.gz
9
10 %define dali_profile MOBILE
11
12 Requires(post): /sbin/ldconfig
13 Requires(postun): /sbin/ldconfig
14 Requires:       dali
15 # Do NOT put an adaptor here - it is an application choice which adaptor to use
16 BuildRequires:  pkgconfig
17 BuildRequires:  pkgconfig(dlog)
18 BuildRequires:  boost-devel
19 BuildRequires:  pkgconfig(dali)
20 BuildRequires:  pkgconfig(dali-core)
21
22 %description
23 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
24 user interface functionality.
25
26 ##############################
27 # devel
28 ##############################
29 %package devel
30 Summary:    Application development package for the OpenGLES Canvas toolkit
31 Group:      Development/Building
32 Requires:   %{name} = %{version}-%{release}
33 Requires:   boost-devel
34
35 %description devel
36 Application development package for the OpenGLES Canvas toolkit - headers and package config
37
38 ##############################
39 # Preparation
40 ##############################
41 %prep
42 %setup -q
43 %define dali_data_rw_dir            /opt/usr/share/dali/
44 %define dali_data_ro_dir            /usr/share/dali/
45 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
46 %define dali_toolkit_sound_files    %{dali_data_ro_dir}/toolkit/sounds/
47 %define dali_toolkit_style_files    %{dali_data_ro_dir}/toolkit/styles/
48 %define dev_include_path %{_includedir}
49
50 ##############################
51 # Build
52 ##############################
53 %build
54 PREFIX="/usr"
55 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
56 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
57
58 libtoolize --force
59 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
60 autoreconf --install
61 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
62 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
63 %configure --enable-profile=%{dali_profile}
64 make %{?jobs:-j%jobs}
65
66 ##############################
67 # Installation
68 ##############################
69 %install
70 rm -rf %{buildroot}
71 cd build/tizen
72 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
73
74 # LICENSE
75 mkdir -p %{buildroot}/usr/share/license
76 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
77
78 ##############################
79 # Post Install
80 ##############################
81 %post
82 /sbin/ldconfig
83 exit 0
84
85 ##############################
86 # Post Uninstall
87 ##############################
88 %postun
89 /sbin/ldconfig
90 exit 0
91
92 ##############################
93 # Files in Binary Packages
94 ##############################
95 %files
96 %manifest dali-toolkit.manifest-smack
97 %defattr(-,root,root,-)
98 %{_libdir}/lib%{name}.so*
99 %{dali_toolkit_image_files}/*
100 %{dali_toolkit_sound_files}/*
101 %{dali_toolkit_style_files}/*
102 %{_datadir}/license/%{name}
103
104 %files devel
105 %defattr(-,root,root,-)
106 %{dev_include_path}/%{name}/*
107 %{_libdir}/pkgconfig/*.pc
108