6 License: TO_BE_FILLED_IN
7 Source0: %{name}-%{version}.tar.gz
11 #BuildRequires: ruby-devel
13 #BuildRequires: mono-core
14 #BuildRequires: mono-compat
15 #BuildRequires: mono-data
16 #BuildRequires: mono-compiler
17 #BuildRequires: mono-wcf
18 #BuildRequires: mono-web
20 BuildRequires: pkgconfig
22 BuildRequires: pkgconfig(glib-2.0)
23 BuildRequires: pkgconfig(dali-core)
24 BuildRequires: pkgconfig(dali-adaptor)
25 BuildRequires: pkgconfig(dali-toolkit)
27 BuildRequires: dali-devel
28 BuildRequires: dali-integration-devel
29 BuildRequires: dali-adaptor-devel
30 BuildRequires: dali-adaptor-integration-devel
31 BuildRequires: dali-toolkit-devel
39 Summary: Development dali-wrapper
40 Group: Development/Libraries/Other
41 Requires: %{name} = %{version}
43 %description dali-wrapper
44 Development .so for dali wrapper
45 %define daliSwigDir %{_builddir}/%{name}-%{version}/build/tizen
46 %define daliToolkitDir %{_builddir}/dali-toolkit-%{version}/build/tizen
47 %define daliPluginsDir %{_builddir}/%{name}-%{version}/build/tizen/plugins/csharp
49 #############################
51 #############################
54 %define dali_toolkit_profile MOBILE
56 %define dali_style_folder 720x1280
57 # dali_style to be provided by build system as with dali_toolkit_profile or by passing --define 'dali_style 470x800' to the rpm build command
60 %define dali_style_folder %{dali_style}
63 # Further resource locations profiles can be provided here otherwise MOBILE will be used
64 %if "%{tizen_profile_name}" == "mobile"
65 %define dali_toolkit_profile MOBILE
69 The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
70 user interface functionality.
72 ##############################
74 ##############################
78 #Use TZ_PATH when tizen version is 3.x
80 %if "%{tizen_version_major}" == "2"
81 %define ndali_data_rw_dir /opt/usr/share/dali/
82 %define ndali_data_ro_dir /usr/share/dali/
84 %define ndali_data_rw_dir %TZ_SYS_SHARE/dali/
85 %define ndali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
87 ##############################
89 ##############################
91 echo "----------------" %{_builddir}
92 echo "----------------" %{daliSwigDir}
93 echo "----------------" %{_libdir}
94 echo "----------------" %{daliPluginsDir}
97 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
98 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
100 %if 0%{?enable_coverage}
101 CXXFLAGS+=" --coverage "
102 LDFLAGS+=" --coverage "
106 ##############################
108 ##############################
113 NDALI_DATA_RW_DIR="%{ndali_data_rw_dir}" ; export NDALI_DATA_RW_DIR
114 NDALI_DATA_RO_DIR="%{ndali_data_ro_dir}" ; export NDALI_DATA_RO_DIR
115 %configure --enable-profile=%{dali_toolkit_profile} \
116 --with-style=%{dali_style_folder} \
117 --enable-csharp=yes \
118 %if 0%{?enable_debug}
125 ##############################
127 ##############################
128 echo "----------------" %{_buildrootdir}
130 cd "%{daliPluginsDir}"
131 make DESTDIR=%{_buildrootdir}/%{name}-%{version}-%{release}.arm/usr/lib/ gbs-install
133 #mv %{_builddir}/%{name}-%{version}/plugins/dali-swig/NDali.dll %{_buildrootdir}/%{name}-%{version}-%{release}.arm/usr/lib/
135 ##############################
137 ##############################
141 ##############################
142 # Files in Binary Packages
143 ##############################
145 %manifest dali-csharp-wrapper.manifest
146 %defattr(-,root,root,-)