Fixed signals for toggle button
[platform/core/uifw/dali-toolkit.git] / packaging / dali-toolkit.spec
1 Name:       dali-toolkit
2 Summary:    The OpenGLES Canvas Core Library Toolkit
3 Version:    1.0.47
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
13 # Do NOT put an adaptor here - it is an application choice which adaptor to use
14 BuildRequires:  pkgconfig
15 BuildRequires:  pkgconfig(dlog)
16 BuildRequires:  pkgconfig(dali)
17 BuildRequires:  pkgconfig(dali-core)
18
19 %description
20 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
21 user interface functionality.
22
23 ##############################
24 # devel
25 ##############################
26 %package devel
27 Summary:    Application development package for the OpenGLES Canvas toolkit
28 Group:      Development/Building
29 Requires:   %{name} = %{version}-%{release}
30
31 %description devel
32 Application development package for the OpenGLES Canvas toolkit - headers and package config
33
34 ##############################
35 # Preparation
36 ##############################
37 %prep
38 %setup -q
39 %define dali_data_rw_dir            /opt/usr/share/dali/
40 %define dali_data_ro_dir            /usr/share/dali/
41 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
42 %define dali_toolkit_sound_files    %{dali_data_ro_dir}/toolkit/sounds/
43 %define dali_toolkit_style_files    %{dali_data_ro_dir}/toolkit/styles/
44 %define dev_include_path %{_includedir}
45
46 ##############################
47 # Build
48 ##############################
49 %build
50 PREFIX="/usr"
51 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
52 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
53
54 libtoolize --force
55 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
56 autoreconf --install
57 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
58 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
59 %configure
60 make %{?jobs:-j%jobs}
61
62 ##############################
63 # Installation
64 ##############################
65 %install
66 rm -rf %{buildroot}
67 cd build/tizen
68 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
69
70 # LICENSE
71 mkdir -p %{buildroot}/usr/share/license
72 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
73
74 ##############################
75 # Post Install
76 ##############################
77 %post
78 /sbin/ldconfig
79 exit 0
80
81 ##############################
82 # Post Uninstall
83 ##############################
84 %postun
85 /sbin/ldconfig
86 exit 0
87
88 ##############################
89 # Files in Binary Packages
90 ##############################
91 %files
92 %if 0%{?enable_dali_smack_rules}
93 %manifest dali-toolkit.manifest-smack
94 %else
95 %manifest dali-toolkit.manifest
96 %endif
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