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
36 Summary: NuGet package for %{name}
37 Group: Development/Libraries
41 NuGet package for %{name}
44 Summary: Tools for TizenFX
45 Group: Development/Libraries
52 Summary: not used package
53 Group: Development/Libraries
60 Summary: All Tizen .NET assemblies
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
66 All Tizen .NET assemblies
69 Summary: All .pdb files of Tizen .NET
70 Group: Development/Libraries
74 All .pdb files of Tizen .NET
77 Summary: Tizen .NET assemblies for Common profile
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
83 Tizen .NET assemblies for Common profile
86 Summary: Tizen .NET assemblies for Mobile profile
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
92 Tizen .NET assemblies for Mobile profile
95 Summary: Tizen .NET assemblies for Emulator of Mobile profile
96 Group: Development/Libraries
97 Requires: %{name} = %{version}-%{release}
100 %description mobile-emul
101 Tizen .NET assemblies for Emulator of Mobile profile
104 Summary: Tizen .NET assemblies for TV profile
105 Group: Development/Libraries
106 Requires: %{name} = %{version}-%{release}
110 Tizen .NET assemblies for TV profile
113 Summary: Tizen .NET assemblies for Wearable profile
114 Group: Development/Libraries
115 Requires: %{name} = %{version}-%{release}
118 %description wearable
119 Tizen .NET assemblies for Wearable profile
126 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
128 %define _tizenfx_bin_path Artifacts
130 rm -fr %{_tizenfx_bin_path}
131 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
133 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
135 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
139 cat packaging/PlatformFileList.txt | grep -v "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
140 for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$|\.preload" | cut -d# -f1); do
141 if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then
142 echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f"
145 for f in $(cat packaging/PlatformFileList.txt | grep "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do
146 if [ -f packaging/preload/$f ]; then
147 echo "%{DOTNET_PRELOAD_PATH}/$f"
152 GetFileList common > common.filelist
153 GetFileList mobile > mobile.filelist
154 GetFileList mobile-emul > mobile-emul.filelist
155 GetFileList tv > tv.filelist
156 GetFileList wearable > wearable.filelist
159 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
160 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
161 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
162 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
163 mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH}
164 mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH}
166 # Install Runtime Assemblies
167 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
168 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
170 # Install Debug Symbols
171 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
172 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
174 # Install Resource files
175 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
176 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
177 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
178 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
180 # Install Dummy Assemblies
181 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
183 # Install NuGet Packages
184 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
185 install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
188 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
191 install -p -m 644 packaging/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH}
194 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
195 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
196 /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
203 %{DOTNET_NUGET_SOURCE}/*.nupkg
206 %manifest %{name}.manifest
207 %{DOTNET_TOOLS_PATH}/*
212 %manifest %{name}.manifest
213 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
214 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
215 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
218 %manifest %{name}.manifest
219 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
221 %files common -f common.filelist
222 %manifest %{name}.manifest
224 %files mobile -f mobile.filelist
225 %manifest %{name}.manifest
227 %files mobile-emul -f mobile-emul.filelist
228 %manifest %{name}.manifest
230 %files tv -f tv.filelist
231 %manifest %{name}.manifest
233 %files wearable -f wearable.filelist
234 %manifest %{name}.manifest