2 %define TIZEN_NET_API_VERSION @api_version@
3 %define TIZEN_NET_RPM_VERSION @rpm_version@
4 %define TIZEN_NET_NUGET_VERSION @nuget_version@
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_NUGET_SOURCE /nuget
13 %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@
16 Summary: Assemblies of Tizen .NET
17 Version: %{TIZEN_NET_RPM_VERSION}
19 Group: Development/Libraries
20 License: Apache-2.0 and MIT
21 URL: https://www.tizen.org
22 Source0: %{name}-%{version}.tar.gz
23 Source1: %{name}.manifest
29 BuildRequires: dotnet-build-tools
30 Requires(post): /usr/bin/vconftool
32 # BuildRequires for StructValidator
33 %if %{defined enable_struct_test}
35 BuildRequires: pkgconfig(elementary)
36 BuildRequires: pkgconfig(efl-extension)
37 BuildRequires: pkgconfig(capi-media-camera)
38 BuildRequires: pkgconfig(rua)
39 BuildRequires: pkgconfig(component-based-core-base)
40 BuildRequires: pkgconfig(notification)
41 BuildRequires: pkgconfig(capi-appfw-service-application)
42 BuildRequires: pkgconfig(capi-appfw-application)
43 BuildRequires: pkgconfig(capi-appfw-widget-application)
44 BuildRequires: pkgconfig(data-control)
45 BuildRequires: pkgconfig(capi-location-manager)
46 BuildRequires: pkgconfig(capi-media-vision)
47 BuildRequires: pkgconfig(capi-network-bluetooth)
48 BuildRequires: pkgconfig(capi-network-wifi-direct)
49 BuildRequires: pkgconfig(key-manager)
50 BuildRequires: pkgconfig(capi-system-sensor)
51 BuildRequires: pkgconfig(capi-system-runtime-info)
52 BuildRequires: pkgconfig(capi-ui-inputmethod)
53 BuildRequires: pkgconfig(stt-engine)
54 BuildRequires: pkgconfig(tts-engine)
55 BuildRequires: pkgconfig(chromium-efl)
56 %if "%{profile}" == "tv"
57 BuildRequires: pkgconfig(trustzone-nwd)
59 BuildRequires: pkgconfig(capi-appfw-watch-application)
60 BuildRequires: pkgconfig(capi-telephony)
61 BuildRequires: pkgconfig(tef-libteec)
69 Summary: NuGet package for %{name}
70 Group: Development/Libraries
74 NuGet package for %{name}
77 Summary: Tools for TizenFX
78 Group: Development/Libraries
85 Summary: All Tizen .NET assemblies
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
91 All Tizen .NET assemblies
94 Summary: All .pdb files of Tizen .NET
95 Group: Development/Libraries
99 All .pdb files of Tizen .NET
102 Summary: Tizen .NET assemblies for Mobile profile
103 Group: Development/Libraries
104 Requires: %{name} = %{version}-%{release}
108 Tizen .NET assemblies for Mobile profile
111 Summary: Tizen .NET assemblies for TV profile
112 Group: Development/Libraries
113 Requires: %{name} = %{version}-%{release}
117 Tizen .NET assemblies for TV profile
120 Summary: Tizen .NET assemblies for Wearable profile
121 Group: Development/Libraries
122 Requires: %{name} = %{version}-%{release}
125 %description wearable
126 Tizen .NET assemblies for Wearable profile
135 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
138 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
139 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
141 # build full assemblies
142 %if %{defined profile}
143 %{build_cmd} --full /p:BuildProfile=%{profile}
149 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
151 # check validation of struct size
152 %if %{defined enable_struct_test}
153 dotnet validate-struct Artifacts/bin/public || echo "
154 #######################################################
155 ##################### W A R N I N G ###################
156 #######################################################
157 # The sturct size mismatches MUST BE FIXED. #
158 # It will make building errors later #
159 #######################################################
165 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
166 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
167 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
168 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
169 mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH}
170 mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH}
172 # Install Runtime Assemblies
173 install -p -m 644 Artifacts/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
174 install -p -m 644 Artifacts/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
176 # Install Debug Symbols
177 install -p -m 644 Artifacts/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
178 install -p -m 644 Artifacts/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
180 # Install Resource files
181 [ -d Artifacts/bin/public/res ] \
182 && cp -fr Artifacts/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
183 [ -d Artifacts/bin/internal/res ] \
184 && cp -fr Artifacts/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
186 # Install Dummy Assemblies
187 install -p -m 644 Artifacts/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
190 install -p -m 644 Artifacts/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH}
192 # Install NuGet Packages
193 install -p -m 644 Artifacts/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
194 install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
197 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
201 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
202 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
203 /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
210 %{DOTNET_NUGET_SOURCE}/*.nupkg
213 %manifest %{name}.manifest
214 %{DOTNET_TOOLS_PATH}/*
217 %manifest %{name}.manifest
218 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
219 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
220 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
221 %attr(644,root,root) %{DOTNET_PRELOAD_PATH}/*
224 %manifest %{name}.manifest
225 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
227 %files mobile -f Artifacts/mobile.filelist
228 %manifest %{name}.manifest
230 %files tv -f Artifacts/tv.filelist
231 %manifest %{name}.manifest
233 %files wearable -f Artifacts/wearable.filelist
234 %manifest %{name}.manifest