Put scroll-connector.h in the capi folder
[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.6
4 Release:    1
5 Group:      System/Libraries
6 License:    Flora
7 URL:        TO_BE_FILLED
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 BuildRequires:  sec-product-features
24
25 %description
26 The OpenGLES Canvas Core Library Toolkit
27
28 ##############################
29 # devel
30 ##############################
31 %package devel
32 Summary:    Application development package for the OpenGLES Canvas toolkit
33 Group:      Development/Libs
34 Requires:   %{name} = %{version}-%{release}
35 Requires:   boost-devel
36
37 %description devel
38 Application development package for the OpenGLES Canvas toolkit
39
40 ##############################
41 # Preparation
42 ##############################
43 %prep
44 %setup -q
45 %define dali_data_rw_dir            /opt/usr/share/dali/
46 %define dali_data_ro_dir            /usr/share/dali/
47 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
48 #%define dev_include_path %{_includedir}/dali/internal
49 %define dev_include_path %{_includedir}
50
51 ##############################
52 # Build
53 ##############################
54 %build
55 PREFIX="/usr"
56 CXXFLAGS+=" -Wall -g -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
57 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections "
58
59 %if 0%{?tizen_build_binary_release_type_eng}
60 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
61 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
62 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
63 %endif
64
65 libtoolize --force
66 cd %{_builddir}/dali-toolkit-%{version}/build/slp && autoreconf --install
67 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
68
69 make %{?jobs:-j%jobs}
70
71 ##############################
72 # Installation
73 ##############################
74 %install
75 rm -rf %{buildroot}
76 cd build/slp
77 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
78
79 # LICENSE
80 mkdir -p %{buildroot}/usr/share/license
81 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
82
83 ##############################
84 # Post Install
85 ##############################
86 %post
87 /sbin/ldconfig
88 exit 0
89
90 ##############################
91 # Post Uninstall
92 ##############################
93 %postun
94 /sbin/ldconfig
95 exit 0
96
97 ##############################
98 # Files in Binary Packages
99 ##############################
100 %files
101 %manifest dali-toolkit.manifest
102 %defattr(-,root,root,-)
103 %{_libdir}/lib%{name}.so*
104 %{dali_toolkit_image_files}/*
105 %{_datadir}/license/%{name}
106
107 %files devel
108 %defattr(-,root,root,-)
109 %{dev_include_path}/%{name}/*
110 %{_libdir}/pkgconfig/*.pc