[NUI] Support RootTranslationOnly option for motion capture data
[platform/core/csapi/tizenfx.git] / packaging / csapi-tizenfx.spec.in
1
2 %define TIZEN_NET_API_VERSION @api_version@
3 %define TIZEN_NET_RPM_VERSION @rpm_version@
4 %define TIZEN_NET_NUGET_VERSION @nuget_version@
5
6 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
7 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
8 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
9 %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools
10 %define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload
11 %define DOTNET_LIBRARY_PATH /usr/share/dotnet.tizen/lib
12 %define DOTNET_NUGET_SOURCE /nuget
13
14 %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@
15 %define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS @tfm_support@
16 %define DOTNET_CORE_RUNTIME_VERSION 6.0
17
18 %define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
19
20 Name:       csapi-tizenfx
21 Summary:    Assemblies of Tizen .NET
22 Version:    %{TIZEN_NET_RPM_VERSION}
23 Release:    1
24 Group:      Development/Libraries
25 License:    Apache-2.0 and MIT
26 URL:        https://www.tizen.org
27 Source0:    %{name}-%{version}.tar.gz
28 Source1:    %{name}.manifest
29
30 BuildArch:   noarch
31 AutoReqProv: no
32
33 BuildRequires: dotnet-build-tools
34 BuildRequires: pkgconfig(dali2-csharp-binder)
35 Requires(post): /usr/bin/vconftool
36
37 # BuildRequires for StructValidator
38 %if %{defined enable_struct_test}
39 BuildRequires: coregl
40 BuildRequires: pkgconfig(elementary)
41 BuildRequires: pkgconfig(efl-extension)
42 BuildRequires: pkgconfig(capi-media-camera)
43 BuildRequires: pkgconfig(rua)
44 BuildRequires: pkgconfig(component-based-core-base)
45 BuildRequires: pkgconfig(notification)
46 BuildRequires: pkgconfig(capi-appfw-service-application)
47 BuildRequires: pkgconfig(capi-appfw-application)
48 BuildRequires: pkgconfig(capi-appfw-widget-application)
49 BuildRequires: pkgconfig(data-control)
50 BuildRequires: pkgconfig(capi-location-manager)
51 BuildRequires: pkgconfig(capi-media-vision)
52 BuildRequires: pkgconfig(capi-network-bluetooth)
53 BuildRequires: pkgconfig(capi-network-wifi-direct)
54 BuildRequires: pkgconfig(key-manager)
55 BuildRequires: pkgconfig(capi-system-sensor)
56 BuildRequires: pkgconfig(capi-system-runtime-info)
57 BuildRequires: pkgconfig(capi-ui-inputmethod)
58 BuildRequires: pkgconfig(stt-engine)
59 BuildRequires: pkgconfig(tts-engine)
60 BuildRequires: pkgconfig(chromium-efl)
61 %if "%{profile}" == "tv"
62 BuildRequires: pkgconfig(trustzone-nwd)
63 %else
64 BuildRequires: pkgconfig(capi-appfw-watch-application)
65 BuildRequires: pkgconfig(capi-telephony)
66 BuildRequires: pkgconfig(tef-libteec)
67 %endif
68 %endif
69
70 %description
71 %{summary}
72
73 %package nuget
74 Summary:   NuGet package for %{name}
75 Group:     Development/Libraries
76 AutoReqProv: no
77
78 %description nuget
79 NuGet package for %{name}
80
81 %package tools
82 Summary:   Tools for TizenFX
83 Group:     Development/Libraries
84 AutoReqProv: no
85
86 %description tools
87 Tools for TizenFX
88
89 %package dummy
90 Summary:   not used package
91 Group:     Development/Libraries
92 AutoReqProv: no
93
94 %description dummy
95 not used package
96
97 %package full
98 Summary:   All Tizen .NET assemblies
99 Group:     Development/Libraries
100 Requires:  %{name} = %{version}-%{release}
101 AutoReqProv: no
102
103 %description full
104 All Tizen .NET assemblies
105
106 %package debug
107 Summary:   All .pdb files of Tizen .NET
108 Group:     Development/Libraries
109 AutoReqProv: no
110
111 %description debug
112 All .pdb files of Tizen .NET
113
114 %package mobile
115 Summary:   Tizen .NET assemblies for Mobile profile
116 Group:     Development/Libraries
117 Requires:  %{name} = %{version}-%{release}
118 AutoReqProv: no
119
120 %description mobile
121 Tizen .NET assemblies for Mobile profile
122
123 %package tv
124 Summary:   Tizen .NET assemblies for TV profile
125 Group:     Development/Libraries
126 Requires:  %{name} = %{version}-%{release}
127 AutoReqProv: no
128
129 %description tv
130 Tizen .NET assemblies for TV profile
131
132 %package wearable
133 Summary:   Tizen .NET assemblies for Wearable profile
134 Group:     Development/Libraries
135 Requires:  %{name} = %{version}-%{release}
136 AutoReqProv: no
137
138 %description wearable
139 Tizen .NET assemblies for Wearable profile
140
141 %prep
142 %setup -q
143 cp %{SOURCE1} .
144
145 %build
146
147 # configure for ASAN
148 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
149
150 # prepare for build
151 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
152 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
153
154 # build full assemblies
155 %if %{defined profile}
156 %{build_cmd} --full /p:BuildProfile=%{profile}
157 %else
158 %{build_cmd} --full
159 %endif
160
161 # pack nuget package
162 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
163
164 # check validation of struct size
165 %if %{defined enable_struct_test}
166 dotnet validate-struct Artifacts/bin/public || echo "
167     #######################################################
168     ##################### W A R N I N G ###################
169     #######################################################
170     # The sturct size mismatches MUST BE FIXED.           #
171     # It will make building errors later                  #
172     #######################################################
173 "
174 %endif
175
176
177 %install
178 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
179 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
180 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
181 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
182 mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH}
183 mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH}
184
185 # Install Runtime Assemblies
186 install -p -m 644 Artifacts/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
187 install -p -m 644 Artifacts/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
188
189 # Install Debug Symbols
190 install -p -m 644 Artifacts/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
191 install -p -m 644 Artifacts/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
192
193 # Install Resource files
194 [ -d Artifacts/bin/public/res ] \
195   && cp -fr Artifacts/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
196 [ -d Artifacts/bin/internal/res ] \
197   && cp -fr Artifacts/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
198
199 # Install Dummy Assemblies
200 install -p -m 644 Artifacts/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
201
202 # Install Preload
203 install -p -m 644 Artifacts/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH}
204
205 # Install NuGet Packages
206 install -p -m 644 Artifacts/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
207 install -p -m 644 packaging/depends/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
208
209 # Install Tools
210 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
211
212
213 # Install Upgrade Script
214 mkdir -p %{buildroot}%{UPGRADE_SCRIPT_PATH}
215 install -p -m 755 packaging/500.tizenfx_upgrade.sh %{buildroot}%{UPGRADE_SCRIPT_PATH}
216
217 %post
218 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
219 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
220 /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
221 /usr/bin/vconftool set -t string db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS} -f
222 /usr/bin/vconftool set -t string db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION} -f
223 mkdir -p %{DOTNET_LIBRARY_PATH}
224 touch %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
225 echo "db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS}" > %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
226 echo "db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
227 echo "db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
228
229 %files
230 %license LICENSE
231 %license LICENSE.MIT
232 %attr(0755,root,root) %{UPGRADE_SCRIPT_PATH}/500.tizenfx_upgrade.sh
233
234 %files nuget
235 %{DOTNET_NUGET_SOURCE}/*.nupkg
236
237 %files tools
238 %manifest %{name}.manifest
239 %{DOTNET_TOOLS_PATH}/*
240
241 %files dummy
242
243 %files full
244 %manifest %{name}.manifest
245 %defattr(644,root,root,755)
246 %{DOTNET_ASSEMBLY_PATH}/*.dll
247 %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
248 %{DOTNET_ASSEMBLY_RES_PATH}/*
249 %{DOTNET_PRELOAD_PATH}/*
250
251 %files debug
252 %manifest %{name}.manifest
253 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
254
255 %files mobile -f Artifacts/mobile.filelist
256 %manifest %{name}.manifest
257
258 %files tv -f Artifacts/tv.filelist
259 %manifest %{name}.manifest
260
261 %files wearable -f Artifacts/wearable.filelist
262 %manifest %{name}.manifest