Added new API to set fixed height for the scroll bar
[platform/core/uifw/dali-toolkit.git] / packaging / dali-toolkit.spec
1 Name:       dali-toolkit
2 Summary:    The OpenGLES Canvas Core Library Toolkit
3 Version:    0.9.16
4 Release:    1
5 Group:      System/Libraries
6 License:    Flora
7 URL:        https://review.tizen.org/git/?p=platform/core/uifw/dali-toolkit.git;a=summary
8 Source0:    %{name}-%{version}.tar.gz
9
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires:       boost
13 Requires:       dali-adaptor-dali-feedback-plugin
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:  dali-devel
20 BuildRequires:  dali-adaptor-devel
21 BuildRequires:  fribidi-devel
22 BuildRequires:  pkgconfig(utilX)
23 ExclusiveArch:  armv7l
24
25 %description
26 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
27 user interface functionality.
28
29 ##############################
30 # devel
31 ##############################
32 %package devel
33 Summary:    Application development package for the OpenGLES Canvas toolkit
34 Group:      Development/Building
35 Requires:   %{name} = %{version}-%{release}
36 Requires:   boost-devel
37
38 %description devel
39 Application development package for the OpenGLES Canvas toolkit - headers and package config
40
41 ##############################
42 # Dali Base library
43 ##############################
44 %package dali-toolkit-base
45 Summary:    The basic OpenGLES Canvas Core Library Toolkit
46 Group:      Development/Building
47
48 %description dali-toolkit-base
49 A subset of the controls provided by the main package, intended for lightweight applications.
50 all the controls provided by the main package.
51
52 ##############################
53 # Preparation
54 ##############################
55 %prep
56 %setup -q
57 %define dali_data_rw_dir            /opt/usr/share/dali/
58 %define dali_data_ro_dir            /usr/share/dali/
59 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
60 %define dev_include_path %{_includedir}
61
62 ##############################
63 # Build
64 ##############################
65 %build
66 PREFIX="/usr"
67 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
68 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections "
69
70 %if 0%{?sec_build_binary_debug_enable}
71 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
72 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
73 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
74 %endif
75
76 libtoolize --force
77 cd %{_builddir}/dali-toolkit-%{version}/build/slp && autoreconf --install
78 cd %{_builddir}/dali-toolkit-%{version}/build/slp && CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ./configure --prefix=$PREFIX
79
80 make %{?jobs:-j%jobs}
81
82 ##############################
83 # Installation
84 ##############################
85 %install
86 rm -rf %{buildroot}
87 cd build/slp
88 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
89
90 # LICENSE
91 mkdir -p %{buildroot}/usr/share/license
92 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
93
94 ##############################
95 # Post Install
96 ##############################
97 %post
98 /sbin/ldconfig
99 exit 0
100
101 %post dali-toolkit-base
102 /sbin/ldconfig
103 exit 0
104
105 ##############################
106 # Post Uninstall
107 ##############################
108 %postun
109 /sbin/ldconfig
110 exit 0
111
112 %postun dali-toolkit-base
113 /sbin/ldconfig
114 exit 0
115
116 ##############################
117 # Files in Binary Packages
118 ##############################
119 %files
120 %manifest dali-toolkit.manifest
121 %defattr(-,root,root,-)
122 %{_libdir}/lib%{name}.so*
123 %{dali_toolkit_image_files}/*
124 %{_datadir}/license/%{name}
125
126 %files devel
127 %defattr(-,root,root,-)
128 %{dev_include_path}/%{name}/*
129 %{_libdir}/pkgconfig/*.pc
130
131 %files dali-toolkit-base
132 %defattr(-,root,root,-)
133 %{_libdir}/libdali-toolkit-base.so*