2 Summary: DALi module for Node.JS
5 Group: Development/Libraries
6 License: Apache License, Version 2.0
7 URL: https://review.tizen.org/gerrit/#/q/project:platform/core/uifw/dali-toolkit
9 Source0: %{name}-%{version}.tar.gz
11 BuildRequires: pkgconfig
12 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(dali-core)
15 BuildRequires: pkgconfig(dali-toolkit)
16 BuildRequires: nodejs-devel
18 # DALi JS applications using dali-addon always run on dali-adaptor-uv.
19 BuildRequires: pkgconfig(dali-adaptor-uv)
25 ##############################
26 # Define directory locations
27 # Currently the addon is part of toolkit repository
28 ##############################
29 # addonDir = node-addon directory inside BUILD directory
30 %define addonDir %{_builddir}/dali-addon-%{version}/node-addon
32 # addonBuildDir = node-addon build directory inside BUILD directory
33 %define addonBuildDir %{addonDir}/build/tizen
35 # installPath = the directory the node-addon is installed into
36 # we use /usr/lib/node so the developer can do var dali = require('dali');
37 %define installPath /usr/lib/node
39 # full install path, for GBS were are installing into a BUILDROOT
40 %define installDir %{buildroot}%{installPath}
42 ##############################
44 ##############################
47 # setup = cd build area, decompresses source, sets all file permisions to be owned by root ( q = quiet )
50 ##############################
52 ##############################
55 echo "----------------Build directory = " %{addonBuildDir}
57 CXXFLAGS+=" -std=c++11 -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
58 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
61 cmake -DCMAKE_INSTALL_PREFIX=%{installPath} -DGBSBuild:BOOL=1 .
64 ##############################
66 ##############################
72 cp -R %{addonDir}/examples %{installDir}/examples
78 ##############################
80 ##############################
85 ##############################
87 ##############################
90 ##############################
91 # Files in Binary Packages
92 ##############################
94 %manifest dali-addon.manifest
95 %defattr(-,root,root,-)