1 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
2 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
3 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
4 %define DOTNET_NUGET_SOURCE /nuget
6 %define _tizenfx_bin_path Artifacts
8 %define TIZEN_NET_API_VERSION 5
9 %define TIZEN_NET_NUGET_VERSION 5.0.0-preview1-00366
10 %define TIZEN_NET_INTERNAL_NUGET_VERSION 5.0.0.366
13 Summary: Assemblies of Tizen .NET
14 Version: 5.0.0.366+nui61.1
16 Group: Development/Libraries
18 URL: https://www.tizen.org
19 Source0: %{name}-%{version}.tar.gz
20 Source1: %{name}.manifest
22 BuildRequires: dotnet-build-tools
35 Summary: NuGet package for %{name}
36 Group: Development/Libraries
40 NuGet package for %{name}
43 Summary: Dummy assemblies of Tizen .NET
44 Group: Development/Libraries
48 Dummy assemblies of Tizen .NET
51 Summary: All Tizen .NET assemblies
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
57 All Tizen .NET assemblies
60 Summary: All .pdb files of Tizen .NET
61 Group: Development/Libraries
65 All .pdb files of Tizen .NET
68 Summary: Tizen .NET assemblies for Common profile
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
71 Requires: csapi-tizenfx-dummy = %{version}-%{release}
75 Tizen .NET assemblies for Common profile
78 Summary: Tizen .NET assemblies for Mobile profile
79 Group: Development/Libraries
80 Requires: %{name} = %{version}-%{release}
81 Requires: csapi-tizenfx-dummy = %{version}-%{release}
85 Tizen .NET assemblies for Mobile profile
88 Summary: Tizen .NET assemblies for Emulator of Mobile profile
89 Group: Development/Libraries
90 Requires: %{name} = %{version}-%{release}
91 Requires: csapi-tizenfx-dummy = %{version}-%{release}
94 %description mobile-emul
95 Tizen .NET assemblies for Emulator of Mobile profile
98 Summary: Tizen .NET assemblies for TV profile
99 Group: Development/Libraries
100 Requires: %{name} = %{version}-%{release}
101 Requires: csapi-tizenfx-dummy = %{version}-%{release}
105 Tizen .NET assemblies for TV profile
108 Summary: Tizen .NET assemblies for IVI profile
109 Group: Development/Libraries
110 Requires: %{name} = %{version}-%{release}
111 Requires: csapi-tizenfx-dummy = %{version}-%{release}
115 Tizen .NET assemblies for IVI profile
118 Summary: Tizen .NET assemblies for Wearable profile
119 Group: Development/Libraries
120 Requires: %{name} = %{version}-%{release}
121 Requires: csapi-tizenfx-dummy = %{version}-%{release}
124 %description wearable
125 Tizen .NET assemblies for Wearable profile
135 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
138 GetFileList common > common.filelist
139 GetFileList mobile > mobile.filelist
140 GetFileList mobile-emul > mobile-emul.filelist
141 GetFileList tv > tv.filelist
142 GetFileList ivi > ivi.filelist
143 GetFileList wearable > wearable.filelist
145 rm -fr %{_tizenfx_bin_path}
146 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
149 ./build.sh --pack %{TIZEN_NET_NUGET_VERSION} %{TIZEN_NET_INTERNAL_NUGET_VERSION}
152 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
153 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
154 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
155 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
157 # Install Runtime Assemblies
158 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
159 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
161 # Install Debug Symbols
162 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
163 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
165 # Install Resource files
166 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
167 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
168 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
169 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
171 # Install Dummy Assemblies
172 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
174 # Install NuGet Packages
175 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
178 vconftool set -t int "db/dotnet/tizen_api_version" %{TIZEN_NET_API_VERSION} -f
185 %{DOTNET_NUGET_SOURCE}/*.nupkg
188 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
191 %manifest %{name}.manifest
192 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
193 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
196 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
198 %files common -f common.filelist
199 %manifest %{name}.manifest
201 %files mobile -f mobile.filelist
202 %manifest %{name}.manifest
204 %files mobile-emul -f mobile-emul.filelist
205 %manifest %{name}.manifest
207 %files tv -f tv.filelist
208 %manifest %{name}.manifest
210 %files ivi -f ivi.filelist
211 %manifest %{name}.manifest
213 %files wearable -f wearable.filelist
214 %manifest %{name}.manifest