Merge "Size negotiation patch 2: Re-enable size negotiation on builder actors." into...
[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.36
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:  boost-devel
17 BuildRequires:  pkgconfig(dali)
18 BuildRequires:  pkgconfig(dali-core)
19 BuildRequires:  fribidi-devel
20
21 %description
22 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
23 user interface functionality.
24
25 ##############################
26 # devel
27 ##############################
28 %package devel
29 Summary:    Application development package for the OpenGLES Canvas toolkit
30 Group:      Development/Building
31 Requires:   %{name} = %{version}-%{release}
32 Requires:   boost-devel
33
34 %description devel
35 Application development package for the OpenGLES Canvas toolkit - headers and package config
36
37 ##############################
38 # Preparation
39 ##############################
40 %prep
41 %setup -q
42 %define dali_data_rw_dir            /opt/usr/share/dali/
43 %define dali_data_ro_dir            /usr/share/dali/
44 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
45 %define dali_toolkit_sound_files    %{dali_data_ro_dir}/toolkit/sounds/
46 %define dali_toolkit_style_files    %{dali_data_ro_dir}/toolkit/styles/
47 %define dev_include_path %{_includedir}
48
49 ##############################
50 # Build
51 ##############################
52 %build
53 PREFIX="/usr"
54 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
55 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
56
57 libtoolize --force
58 cd %{_builddir}/dali-toolkit-%{version}/build/tizen
59 autoreconf --install
60 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
61 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
62 %configure
63 make %{?jobs:-j%jobs}
64
65 ##############################
66 # Installation
67 ##############################
68 %install
69 rm -rf %{buildroot}
70 cd build/tizen
71 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
72
73 # LICENSE
74 mkdir -p %{buildroot}/usr/share/license
75 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
76
77 ##############################
78 # Post Install
79 ##############################
80 %post
81 /sbin/ldconfig
82 exit 0
83
84 ##############################
85 # Post Uninstall
86 ##############################
87 %postun
88 /sbin/ldconfig
89 exit 0
90
91 ##############################
92 # Files in Binary Packages
93 ##############################
94 %files
95 %if 0%{?enable_dali_smack_rules}
96 %manifest dali-toolkit.manifest-smack
97 %else
98 %manifest dali-toolkit.manifest
99 %endif
100 %defattr(-,root,root,-)
101 %{_libdir}/lib%{name}.so*
102 %{dali_toolkit_image_files}/*
103 %{dali_toolkit_sound_files}/*
104 %{dali_toolkit_style_files}/*
105 %{_datadir}/license/%{name}
106
107 %files devel
108 %defattr(-,root,root,-)
109 %{dev_include_path}/%{name}/*
110 %{_libdir}/pkgconfig/*.pc
111