Stop caching extra items while activating layout in ItemView
[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.21
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 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires:       dali-adaptor-dali-feedback-plugin
13 Requires:       dali
14 # Do NOT put an adaptor here - it is an application choice which adaptor to use
15 BuildRequires:  pkgconfig
16 BuildRequires:  pkgconfig(dlog)
17 BuildRequires:  boost-devel
18 BuildRequires:  pkgconfig(dali)
19 BuildRequires:  pkgconfig(dali-core)
20 BuildRequires:  fribidi-devel
21 BuildRequires:  pkgconfig(utilX)
22
23 %description
24 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
25 user interface functionality.
26
27 ##############################
28 # devel
29 ##############################
30 %package devel
31 Summary:    Application development package for the OpenGLES Canvas toolkit
32 Group:      Development/Building
33 Requires:   %{name} = %{version}-%{release}
34 Requires:   boost-devel
35
36 %description devel
37 Application development package for the OpenGLES Canvas toolkit - headers and package config
38
39 ##############################
40 # Dali Base library
41 ##############################
42 %package dali-toolkit-base
43 Summary:    The basic OpenGLES Canvas Core Library Toolkit
44 Group:      Development/Building
45
46 %description dali-toolkit-base
47 A subset of the controls provided by the main package, intended for lightweight applications.
48 all the controls provided by the main package.
49
50 ##############################
51 # Preparation
52 ##############################
53 %prep
54 %setup -q
55 %define dali_data_rw_dir            /opt/usr/share/dali/
56 %define dali_data_ro_dir            /usr/share/dali/
57 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
58 %define dali_toolkit_sound_files    %{dali_data_ro_dir}/toolkit/sounds/
59 %define dali_toolkit_style_files    %{dali_data_ro_dir}/toolkit/styles/
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
78 autoreconf --install
79 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
80 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
81 %configure
82 make %{?jobs:-j%jobs}
83
84 ##############################
85 # Installation
86 ##############################
87 %install
88 rm -rf %{buildroot}
89 cd build/slp
90 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
91
92 # LICENSE
93 mkdir -p %{buildroot}/usr/share/license
94 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
95
96 ##############################
97 # Post Install
98 ##############################
99 %post
100 /sbin/ldconfig
101 exit 0
102
103 %post dali-toolkit-base
104 /sbin/ldconfig
105 exit 0
106
107 ##############################
108 # Post Uninstall
109 ##############################
110 %postun
111 /sbin/ldconfig
112 exit 0
113
114 %postun dali-toolkit-base
115 /sbin/ldconfig
116 exit 0
117
118 ##############################
119 # Files in Binary Packages
120 ##############################
121 %files
122 %manifest dali-toolkit.manifest
123 %defattr(-,root,root,-)
124 %{_libdir}/lib%{name}.so*
125 %{dali_toolkit_image_files}/*
126 %{dali_toolkit_sound_files}/*
127 %{dali_toolkit_style_files}/*
128 %{_datadir}/license/%{name}
129
130 %files devel
131 %defattr(-,root,root,-)
132 %{dev_include_path}/%{name}/*
133 %{_libdir}/pkgconfig/*.pc
134
135 %files dali-toolkit-base
136 %defattr(-,root,root,-)
137 %{_libdir}/libdali-toolkit-base.so*