1 # Auto-generated from csapi-tizenfx.spec.in by makespec.sh
3 %define TIZEN_NET_API_VERSION 5
4 %define TIZEN_NET_RPM_VERSION 5.0.0.14615+nui505
5 %define TIZEN_NET_NUGET_VERSION 5.0.0.14615
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_NUGET_SOURCE /nuget
13 Summary: Assemblies of Tizen .NET
14 Version: %{TIZEN_NET_RPM_VERSION}
16 Group: Development/Libraries
17 License: Apache-2.0 and MIT
18 URL: https://www.tizen.org
19 Source0: %{name}-%{version}.tar.gz
20 Source1: %{name}.manifest
26 BuildRequires: dotnet-build-tools
27 Requires(post): /usr/bin/vconftool
33 Summary: NuGet package for %{name}
34 Group: Development/Libraries
38 NuGet package for %{name}
41 Summary: Dummy assemblies of Tizen .NET
42 Group: Development/Libraries
46 Dummy assemblies of Tizen .NET
49 Summary: All Tizen .NET assemblies
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
55 All Tizen .NET assemblies
58 Summary: All .pdb files of Tizen .NET
59 Group: Development/Libraries
63 All .pdb files of Tizen .NET
66 Summary: Tizen .NET assemblies for Common profile
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: csapi-tizenfx-dummy = %{version}-%{release}
73 Tizen .NET assemblies for Common profile
76 Summary: Tizen .NET assemblies for Mobile profile
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: csapi-tizenfx-dummy = %{version}-%{release}
83 Tizen .NET assemblies for Mobile profile
86 Summary: Tizen .NET assemblies for Emulator of Mobile profile
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
89 Requires: csapi-tizenfx-dummy = %{version}-%{release}
92 %description mobile-emul
93 Tizen .NET assemblies for Emulator of Mobile profile
96 Summary: Tizen .NET assemblies for TV profile
97 Group: Development/Libraries
98 Requires: %{name} = %{version}-%{release}
99 Requires: csapi-tizenfx-dummy = %{version}-%{release}
103 Tizen .NET assemblies for TV profile
106 Summary: Tizen .NET assemblies for IVI profile
107 Group: Development/Libraries
108 Requires: %{name} = %{version}-%{release}
109 Requires: csapi-tizenfx-dummy = %{version}-%{release}
113 Tizen .NET assemblies for IVI profile
116 Summary: Tizen .NET assemblies for Wearable profile
117 Group: Development/Libraries
118 Requires: %{name} = %{version}-%{release}
119 Requires: csapi-tizenfx-dummy = %{version}-%{release}
122 %description wearable
123 Tizen .NET assemblies for Wearable profile
130 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
132 %define _tizenfx_bin_path Artifacts
136 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
139 GetFileList common > common.filelist
140 GetFileList mobile > mobile.filelist
141 GetFileList mobile-emul > mobile-emul.filelist
142 GetFileList tv > tv.filelist
143 GetFileList ivi > ivi.filelist
144 GetFileList wearable > wearable.filelist
146 rm -fr %{_tizenfx_bin_path}
147 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
149 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
152 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
155 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
156 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
157 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
158 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
160 # Install Runtime Assemblies
161 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
162 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
164 # Install Debug Symbols
165 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
166 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
168 # Install Resource files
169 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
170 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
171 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
172 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
174 # Install Dummy Assemblies
175 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
177 # Install NuGet Packages
178 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
181 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
188 %{DOTNET_NUGET_SOURCE}/*.nupkg
191 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
194 %manifest %{name}.manifest
195 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
196 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
199 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
201 %files common -f common.filelist
202 %manifest %{name}.manifest
204 %files mobile -f mobile.filelist
205 %manifest %{name}.manifest
207 %files mobile-emul -f mobile-emul.filelist
208 %manifest %{name}.manifest
210 %files tv -f tv.filelist
211 %manifest %{name}.manifest
213 %files ivi -f ivi.filelist
214 %manifest %{name}.manifest
216 %files wearable -f wearable.filelist
217 %manifest %{name}.manifest