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
9 Summary: Assemblies of Tizen .NET
12 Group: Development/Libraries
14 URL: https://www.tizen.org
15 Source0: %{name}-%{version}.tar.gz
16 Source1: %{name}.manifest
18 BuildRequires: dotnet-build-tools
28 Summary: NuGet package for %{name}
29 Group: Development/Libraries
33 NuGet package for %{name}
36 Summary: Dummy assemblies of Tizen .NET
37 Group: Development/Libraries
41 Dummy assemblies of Tizen .NET
44 Summary: All Tizen .NET assemblies
45 Group: Development/Libraries
49 All Tizen .NET assemblies
52 Summary: All .pdb files of Tizen .NET
53 Group: Development/Libraries
57 All .pdb files of Tizen .NET
60 Summary: Tizen .NET assemblies for Common profile
61 Group: Development/Libraries
62 Requires: csapi-tizenfx-dummy
66 Tizen .NET assemblies for Common profile
69 Summary: Tizen .NET assemblies for Mobile profile
70 Group: Development/Libraries
71 Requires: csapi-tizenfx-dummy
75 Tizen .NET assemblies for Mobile profile
78 Summary: Tizen .NET assemblies for Emulator of Mobile profile
79 Group: Development/Libraries
80 Requires: csapi-tizenfx-dummy
83 %description mobile-emul
84 Tizen .NET assemblies for Emulator of Mobile profile
87 Summary: Tizen .NET assemblies for TV profile
88 Group: Development/Libraries
89 Requires: csapi-tizenfx-dummy
93 Tizen .NET assemblies for TV profile
96 Summary: Tizen .NET assemblies for IVI profile
97 Group: Development/Libraries
98 Requires: csapi-tizenfx-dummy
102 Tizen .NET assemblies for IVI profile
105 Summary: Tizen .NET assemblies for Wearable profile
106 Group: Development/Libraries
107 Requires: csapi-tizenfx-dummy
110 %description wearable
111 Tizen .NET assemblies for Wearable profile
121 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
124 GetFileList common > common.filelist
125 GetFileList mobile > mobile.filelist
126 GetFileList mobile-emul > mobile-emul.filelist
127 GetFileList tv > tv.filelist
128 GetFileList ivi > ivi.filelist
129 GetFileList wearable > wearable.filelist
131 rm -fr %{_tizenfx_bin_path}
132 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
135 ./build.sh --pack 4.0.0-preview1-00235
138 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
139 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
140 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
141 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
143 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
144 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
145 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
146 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
147 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
148 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
149 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
152 %{DOTNET_NUGET_SOURCE}/*.nupkg
155 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
158 %manifest %{name}.manifest
160 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
161 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
164 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
166 %files common -f common.filelist
167 %manifest %{name}.manifest
170 %files mobile -f mobile.filelist
171 %manifest %{name}.manifest
174 %files mobile-emul -f mobile-emul.filelist
175 %manifest %{name}.manifest
178 %files tv -f tv.filelist
179 %manifest %{name}.manifest
182 %files ivi -f ivi.filelist
183 %manifest %{name}.manifest
186 %files wearable -f wearable.filelist
187 %manifest %{name}.manifest