2 # This packaging spec file is for developer testing only.
3 # For Tizen release, the spec.in file should be used.
5 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
6 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
7 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
8 %define DOTNET_NUGET_SOURCE /nuget
10 %define _tizenfx_bin_path Artifacts
12 %define TIZEN_NET_API_VERSION 5
13 %define TIZEN_NET_NUGET_VERSION 5.0.0-preview1
14 %define TIZEN_NET_INTERNAL_NUGET_VERSION 5.0.0.999
17 Summary: Assemblies of Tizen .NET
20 Group: Development/Libraries
22 URL: https://www.tizen.org
23 Source0: %{name}-%{version}.tar.gz
24 Source1: %{name}.manifest
26 BuildRequires: dotnet-build-tools
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
139 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
142 GetFileList common > common.filelist
143 GetFileList mobile > mobile.filelist
144 GetFileList mobile-emul > mobile-emul.filelist
145 GetFileList tv > tv.filelist
146 GetFileList ivi > ivi.filelist
147 GetFileList wearable > wearable.filelist
149 rm -fr %{_tizenfx_bin_path}
150 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
153 ./build.sh --pack %{TIZEN_NET_NUGET_VERSION} %{TIZEN_NET_INTERNAL_NUGET_VERSION}
156 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
157 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
158 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
159 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
161 # Install Runtime Assemblies
162 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
163 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
165 # Install Debug Symbols
166 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
167 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
169 # Install Resource files
170 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
171 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
172 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
173 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
175 # Install Dummy Assemblies
176 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
178 # Install NuGet Packages
179 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
182 vconftool set -t int "db/dotnet/tizen_api_version" %{TIZEN_NET_API_VERSION} -f
189 %{DOTNET_NUGET_SOURCE}/*.nupkg
192 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
195 %manifest %{name}.manifest
196 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
197 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
200 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
202 %files common -f common.filelist
203 %manifest %{name}.manifest
205 %files mobile -f mobile.filelist
206 %manifest %{name}.manifest
208 %files mobile-emul -f mobile-emul.filelist
209 %manifest %{name}.manifest
211 %files tv -f tv.filelist
212 %manifest %{name}.manifest
214 %files ivi -f ivi.filelist
215 %manifest %{name}.manifest
217 %files wearable -f wearable.filelist
218 %manifest %{name}.manifest