1 # Auto-generated from csapi-tizenfx.spec.in by makespec.sh
3 %define TIZEN_NET_API_VERSION 11
4 %define TIZEN_NET_RPM_VERSION 11.0.0.17888+nui22230
5 %define TIZEN_NET_NUGET_VERSION 11.0.0.17888
7 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
8 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
9 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
10 %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools
11 %define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload
12 %define DOTNET_NUGET_SOURCE /nuget
14 %define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0:6.5.0:7.0.0
15 %define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS tizen11.0:tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
17 %define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
20 Summary: Assemblies of Tizen .NET
21 Version: %{TIZEN_NET_RPM_VERSION}
23 Group: Development/Libraries
24 License: Apache-2.0 and MIT
25 URL: https://www.tizen.org
26 Source0: %{name}-%{version}.tar.gz
27 Source1: %{name}.manifest
32 BuildRequires: dotnet-build-tools
33 BuildRequires: pkgconfig(dali2-csharp-binder)
34 Requires(post): /usr/bin/vconftool
36 # BuildRequires for StructValidator
37 %if %{defined enable_struct_test}
39 BuildRequires: pkgconfig(elementary)
40 BuildRequires: pkgconfig(efl-extension)
41 BuildRequires: pkgconfig(capi-media-camera)
42 BuildRequires: pkgconfig(rua)
43 BuildRequires: pkgconfig(component-based-core-base)
44 BuildRequires: pkgconfig(notification)
45 BuildRequires: pkgconfig(capi-appfw-service-application)
46 BuildRequires: pkgconfig(capi-appfw-application)
47 BuildRequires: pkgconfig(capi-appfw-widget-application)
48 BuildRequires: pkgconfig(data-control)
49 BuildRequires: pkgconfig(capi-location-manager)
50 BuildRequires: pkgconfig(capi-media-vision)
51 BuildRequires: pkgconfig(capi-network-bluetooth)
52 BuildRequires: pkgconfig(capi-network-wifi-direct)
53 BuildRequires: pkgconfig(key-manager)
54 BuildRequires: pkgconfig(capi-system-sensor)
55 BuildRequires: pkgconfig(capi-system-runtime-info)
56 BuildRequires: pkgconfig(capi-ui-inputmethod)
57 BuildRequires: pkgconfig(stt-engine)
58 BuildRequires: pkgconfig(tts-engine)
59 BuildRequires: pkgconfig(chromium-efl)
60 BuildRequires: pkgconfig(libsessiond)
61 %if "%{profile}" == "tv"
62 BuildRequires: pkgconfig(trustzone-nwd)
64 BuildRequires: pkgconfig(capi-appfw-watch-application)
65 BuildRequires: pkgconfig(capi-telephony)
66 BuildRequires: pkgconfig(tef-libteec)
74 Summary: NuGet package for %{name}
75 Group: Development/Libraries
79 NuGet package for %{name}
82 Summary: Tools for TizenFX
83 Group: Development/Libraries
90 Summary: not used package
91 Group: Development/Libraries
98 Summary: All Tizen .NET assemblies
99 Group: Development/Libraries
100 Requires: %{name} = %{version}-%{release}
104 All Tizen .NET assemblies
107 Summary: All .pdb files of Tizen .NET
108 Group: Development/Libraries
112 All .pdb files of Tizen .NET
115 Summary: Tizen .NET assemblies for Mobile profile
116 Group: Development/Libraries
117 Requires: %{name} = %{version}-%{release}
121 Tizen .NET assemblies for Mobile profile
124 Summary: Tizen .NET assemblies for TV profile
125 Group: Development/Libraries
126 Requires: %{name} = %{version}-%{release}
130 Tizen .NET assemblies for TV profile
133 Summary: Tizen .NET assemblies for Wearable profile
134 Group: Development/Libraries
135 Requires: %{name} = %{version}-%{release}
138 %description wearable
139 Tizen .NET assemblies for Wearable profile
148 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
151 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
152 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
154 # build full assemblies
155 %if %{defined profile}
156 %{build_cmd} --full /p:BuildProfile=%{profile}
162 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
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 #######################################################
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}
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}
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}
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}
199 # Install Dummy Assemblies
200 install -p -m 644 Artifacts/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
203 install -p -m 644 Artifacts/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH}
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}
210 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
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}
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
226 %attr(0755,root,root) %{UPGRADE_SCRIPT_PATH}/500.tizenfx_upgrade.sh
229 %{DOTNET_NUGET_SOURCE}/*.nupkg
232 %manifest %{name}.manifest
233 %{DOTNET_TOOLS_PATH}/*
238 %manifest %{name}.manifest
239 %defattr(644,root,root,755)
240 %{DOTNET_ASSEMBLY_PATH}/*.dll
241 %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
242 %{DOTNET_ASSEMBLY_RES_PATH}/*
243 %{DOTNET_PRELOAD_PATH}/*
246 %manifest %{name}.manifest
247 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
249 %files mobile -f Artifacts/mobile.filelist
250 %manifest %{name}.manifest
252 %files tv -f Artifacts/tv.filelist
253 %manifest %{name}.manifest
255 %files wearable -f Artifacts/wearable.filelist
256 %manifest %{name}.manifest