2 # This packaging spec file is for developer testing only.
3 # For Tizen release, the spec file in the tizen branch 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 DOTNET_TIZEN_API_VERSION 4
12 %define _tizenfx_bin_path Artifacts
15 Summary: Assemblies of Tizen .NET
18 Group: Development/Libraries
20 URL: https://www.tizen.org
21 Source0: %{name}-%{version}.tar.gz
22 Source1: %{name}.manifest
24 BuildRequires: dotnet-build-tools
37 Summary: NuGet package for %{name}
38 Group: Development/Libraries
42 NuGet package for %{name}
45 Summary: Dummy assemblies of Tizen .NET
46 Group: Development/Libraries
50 Dummy assemblies of Tizen .NET
53 Summary: All Tizen .NET assemblies
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
59 All Tizen .NET assemblies
62 Summary: All .pdb files of Tizen .NET
63 Group: Development/Libraries
67 All .pdb files of Tizen .NET
70 Summary: Tizen .NET assemblies for Common profile
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
73 Requires: csapi-tizenfx-dummy = %{version}-%{release}
77 Tizen .NET assemblies for Common profile
80 Summary: Tizen .NET assemblies for Mobile profile
81 Group: Development/Libraries
82 Requires: %{name} = %{version}-%{release}
83 Requires: csapi-tizenfx-dummy = %{version}-%{release}
87 Tizen .NET assemblies for Mobile profile
90 Summary: Tizen .NET assemblies for Emulator of Mobile profile
91 Group: Development/Libraries
92 Requires: %{name} = %{version}-%{release}
93 Requires: csapi-tizenfx-dummy = %{version}-%{release}
96 %description mobile-emul
97 Tizen .NET assemblies for Emulator of Mobile profile
100 Summary: Tizen .NET assemblies for TV profile
101 Group: Development/Libraries
102 Requires: %{name} = %{version}-%{release}
103 Requires: csapi-tizenfx-dummy = %{version}-%{release}
107 Tizen .NET assemblies for TV profile
110 Summary: Tizen .NET assemblies for IVI profile
111 Group: Development/Libraries
112 Requires: %{name} = %{version}-%{release}
113 Requires: csapi-tizenfx-dummy = %{version}-%{release}
117 Tizen .NET assemblies for IVI profile
120 Summary: Tizen .NET assemblies for Wearable profile
121 Group: Development/Libraries
122 Requires: %{name} = %{version}-%{release}
123 Requires: csapi-tizenfx-dummy = %{version}-%{release}
126 %description wearable
127 Tizen .NET assemblies for Wearable profile
137 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
140 GetFileList common > common.filelist
141 GetFileList mobile > mobile.filelist
142 GetFileList mobile-emul > mobile-emul.filelist
143 GetFileList tv > tv.filelist
144 GetFileList ivi > ivi.filelist
145 GetFileList wearable > wearable.filelist
147 rm -fr %{_tizenfx_bin_path}
148 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
154 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
155 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
156 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
157 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
159 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
160 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
161 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
162 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
163 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
164 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
165 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
168 vconftool set -t int "db/dotnet/tizen_api_version" %{DOTNET_TIZEN_API_VERSION} -f
175 %{DOTNET_NUGET_SOURCE}/*.nupkg
178 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
181 %manifest %{name}.manifest
182 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
183 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
186 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
188 %files common -f common.filelist
189 %manifest %{name}.manifest
191 %files mobile -f mobile.filelist
192 %manifest %{name}.manifest
194 %files mobile-emul -f mobile-emul.filelist
195 %manifest %{name}.manifest
197 %files tv -f tv.filelist
198 %manifest %{name}.manifest
200 %files ivi -f ivi.filelist
201 %manifest %{name}.manifest
203 %files wearable -f wearable.filelist
204 %manifest %{name}.manifest