2 %define TIZEN_NET_API_VERSION @api_version@
3 %define TIZEN_NET_RPM_VERSION @rpm_version@
4 %define TIZEN_NET_NUGET_VERSION @nuget_version@
5 %define TIZEN_NET_INTERNAL_NUGET_VERSION @internal_nuget_version@
6 %define NATIVE_DALI_VERSION @dali_version@
7 %define CHECK_NATIVE_DEPS @check_native_deps@
9 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
10 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
11 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
12 %define DOTNET_NUGET_SOURCE /nuget
15 Summary: Assemblies of Tizen .NET
16 Version: %{TIZEN_NET_RPM_VERSION}
18 Group: Development/Libraries
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
31 %if 0%{CHECK_NATIVE_DEPS}
32 BuildRequires: dali = %{NATIVE_DALI_VERSION}
39 Summary: NuGet package for %{name}
40 Group: Development/Libraries
44 NuGet package for %{name}
47 Summary: Dummy assemblies of Tizen .NET
48 Group: Development/Libraries
52 Dummy assemblies of Tizen .NET
55 Summary: All Tizen .NET assemblies
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
61 All Tizen .NET assemblies
64 Summary: All .pdb files of Tizen .NET
65 Group: Development/Libraries
69 All .pdb files of Tizen .NET
72 Summary: Tizen .NET assemblies for Common profile
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 Requires: csapi-tizenfx-dummy = %{version}-%{release}
79 Tizen .NET assemblies for Common profile
82 Summary: Tizen .NET assemblies for Mobile profile
83 Group: Development/Libraries
84 Requires: %{name} = %{version}-%{release}
85 Requires: csapi-tizenfx-dummy = %{version}-%{release}
89 Tizen .NET assemblies for Mobile profile
92 Summary: Tizen .NET assemblies for Emulator of Mobile profile
93 Group: Development/Libraries
94 Requires: %{name} = %{version}-%{release}
95 Requires: csapi-tizenfx-dummy = %{version}-%{release}
98 %description mobile-emul
99 Tizen .NET assemblies for Emulator of Mobile profile
102 Summary: Tizen .NET assemblies for TV profile
103 Group: Development/Libraries
104 Requires: %{name} = %{version}-%{release}
105 Requires: csapi-tizenfx-dummy = %{version}-%{release}
109 Tizen .NET assemblies for TV profile
112 Summary: Tizen .NET assemblies for IVI profile
113 Group: Development/Libraries
114 Requires: %{name} = %{version}-%{release}
115 Requires: csapi-tizenfx-dummy = %{version}-%{release}
119 Tizen .NET assemblies for IVI profile
122 Summary: Tizen .NET assemblies for Wearable profile
123 Group: Development/Libraries
124 Requires: %{name} = %{version}-%{release}
125 Requires: csapi-tizenfx-dummy = %{version}-%{release}
128 %description wearable
129 Tizen .NET assemblies for Wearable profile
137 %define _tizenfx_bin_path Artifacts
141 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
144 GetFileList common > common.filelist
145 GetFileList mobile > mobile.filelist
146 GetFileList mobile-emul > mobile-emul.filelist
147 GetFileList tv > tv.filelist
148 GetFileList ivi > ivi.filelist
149 GetFileList wearable > wearable.filelist
151 rm -fr %{_tizenfx_bin_path}
152 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
155 ./build.sh --pack %{TIZEN_NET_NUGET_VERSION} %{TIZEN_NET_INTERNAL_NUGET_VERSION}
158 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
159 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
160 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
161 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
163 # Install Runtime Assemblies
164 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
165 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
167 # Install Debug Symbols
168 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
169 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
171 # Install Resource files
172 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
173 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
174 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
175 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
177 # Install Dummy Assemblies
178 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
180 # Install NuGet Packages
181 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
184 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
191 %{DOTNET_NUGET_SOURCE}/*.nupkg
194 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
197 %manifest %{name}.manifest
198 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
199 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
202 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
204 %files common -f common.filelist
205 %manifest %{name}.manifest
207 %files mobile -f mobile.filelist
208 %manifest %{name}.manifest
210 %files mobile-emul -f mobile-emul.filelist
211 %manifest %{name}.manifest
213 %files tv -f tv.filelist
214 %manifest %{name}.manifest
216 %files ivi -f ivi.filelist
217 %manifest %{name}.manifest
219 %files wearable -f wearable.filelist
220 %manifest %{name}.manifest