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_NUGET_SOURCE /nuget
12 Summary: Assemblies of Tizen .NET
13 Version: %{TIZEN_NET_RPM_VERSION}
15 Group: Development/Libraries
16 License: Apache-2.0 and MIT
17 URL: https://www.tizen.org
18 Source0: %{name}-%{version}.tar.gz
19 Source1: %{name}.manifest
25 BuildRequires: dotnet-build-tools
26 Requires(post): /usr/bin/vconftool
32 Summary: NuGet package for %{name}
33 Group: Development/Libraries
37 NuGet package for %{name}
40 Summary: Dummy assemblies of Tizen .NET
41 Group: Development/Libraries
45 Dummy assemblies of Tizen .NET
48 Summary: All Tizen .NET assemblies
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
54 All Tizen .NET assemblies
57 Summary: All .pdb files of Tizen .NET
58 Group: Development/Libraries
62 All .pdb files of Tizen .NET
65 Summary: Tizen .NET assemblies for Common profile
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 Requires: csapi-tizenfx-dummy = %{version}-%{release}
72 Tizen .NET assemblies for Common profile
75 Summary: Tizen .NET assemblies for Mobile profile
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
78 Requires: csapi-tizenfx-dummy = %{version}-%{release}
82 Tizen .NET assemblies for Mobile profile
85 Summary: Tizen .NET assemblies for Emulator of Mobile profile
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
88 Requires: csapi-tizenfx-dummy = %{version}-%{release}
91 %description mobile-emul
92 Tizen .NET assemblies for Emulator of Mobile profile
95 Summary: Tizen .NET assemblies for TV profile
96 Group: Development/Libraries
97 Requires: %{name} = %{version}-%{release}
98 Requires: csapi-tizenfx-dummy = %{version}-%{release}
102 Tizen .NET assemblies for TV profile
105 Summary: Tizen .NET assemblies for Wearable profile
106 Group: Development/Libraries
107 Requires: %{name} = %{version}-%{release}
108 Requires: csapi-tizenfx-dummy = %{version}-%{release}
111 %description wearable
112 Tizen .NET assemblies for Wearable profile
119 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
121 %define _tizenfx_bin_path Artifacts
125 cat PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
128 GetFileList common > common.filelist
129 GetFileList mobile > mobile.filelist
130 GetFileList mobile-emul > mobile-emul.filelist
131 GetFileList tv > tv.filelist
132 GetFileList wearable > wearable.filelist
134 rm -fr %{_tizenfx_bin_path}
135 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
137 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
140 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
143 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
144 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
145 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
146 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
148 # Install Runtime Assemblies
149 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
150 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
152 # Install Debug Symbols
153 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
154 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
156 # Install Resource files
157 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
158 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
159 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
160 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
162 # Install Dummy Assemblies
163 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
165 # Install NuGet Packages
166 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
169 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
176 %{DOTNET_NUGET_SOURCE}/*.nupkg
179 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
182 %manifest %{name}.manifest
183 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
184 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
187 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
189 %files common -f common.filelist
190 %manifest %{name}.manifest
192 %files mobile -f mobile.filelist
193 %manifest %{name}.manifest
195 %files mobile-emul -f mobile-emul.filelist
196 %manifest %{name}.manifest
198 %files tv -f tv.filelist
199 %manifest %{name}.manifest
201 %files wearable -f wearable.filelist
202 %manifest %{name}.manifest