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_NUGET_SOURCE /nuget
12 %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@
15 Summary: Assemblies of Tizen .NET
16 Version: %{TIZEN_NET_RPM_VERSION}
18 Group: Development/Libraries
19 License: Apache-2.0 and MIT
20 URL: https://www.tizen.org
21 Source0: %{name}-%{version}.tar.gz
22 Source1: %{name}.manifest
28 BuildRequires: dotnet-build-tools
29 Requires(post): /usr/bin/vconftool
35 Summary: NuGet package for %{name}
36 Group: Development/Libraries
40 NuGet package for %{name}
43 Summary: Tools for TizenFX
44 Group: Development/Libraries
51 Summary: not used package
52 Group: Development/Libraries
59 Summary: All Tizen .NET assemblies
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
65 All Tizen .NET assemblies
68 Summary: All .pdb files of Tizen .NET
69 Group: Development/Libraries
73 All .pdb files of Tizen .NET
76 Summary: Tizen .NET assemblies for Common profile
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
82 Tizen .NET assemblies for Common profile
85 Summary: Tizen .NET assemblies for Mobile profile
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
91 Tizen .NET assemblies for Mobile profile
94 Summary: Tizen .NET assemblies for Emulator of Mobile profile
95 Group: Development/Libraries
96 Requires: %{name} = %{version}-%{release}
99 %description mobile-emul
100 Tizen .NET assemblies for Emulator of Mobile profile
103 Summary: Tizen .NET assemblies for TV profile
104 Group: Development/Libraries
105 Requires: %{name} = %{version}-%{release}
109 Tizen .NET assemblies for TV profile
112 Summary: Tizen .NET assemblies for Wearable profile
113 Group: Development/Libraries
114 Requires: %{name} = %{version}-%{release}
117 %description wearable
118 Tizen .NET assemblies for Wearable profile
125 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
127 %define _tizenfx_bin_path Artifacts
129 rm -fr %{_tizenfx_bin_path}
130 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
132 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
134 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
138 cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
139 for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do
140 if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then
141 echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f"
146 GetFileList common > common.filelist
147 GetFileList mobile > mobile.filelist
148 GetFileList mobile-emul > mobile-emul.filelist
149 GetFileList tv > tv.filelist
150 GetFileList wearable > wearable.filelist
153 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
154 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
155 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
156 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
157 mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH}
159 # Install Runtime Assemblies
160 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
161 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
163 # Install Debug Symbols
164 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
165 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
167 # Install Resource files
168 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
169 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
170 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
171 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
173 # Install Dummy Assemblies
174 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
176 # Install NuGet Packages
177 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
178 install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
181 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
184 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
185 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
186 /usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
193 %{DOTNET_NUGET_SOURCE}/*.nupkg
196 %manifest %{name}.manifest
197 %{DOTNET_TOOLS_PATH}/*
202 %manifest %{name}.manifest
203 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
204 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
205 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
208 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
210 %files common -f common.filelist
211 %manifest %{name}.manifest
213 %files mobile -f mobile.filelist
214 %manifest %{name}.manifest
216 %files mobile-emul -f mobile-emul.filelist
217 %manifest %{name}.manifest
219 %files tv -f tv.filelist
220 %manifest %{name}.manifest
222 %files wearable -f wearable.filelist
223 %manifest %{name}.manifest