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 DOTNET_TIZEN_API_VERSION 4
8 %define _tizenfx_bin_path Artifacts
11 Summary: Assemblies of Tizen .NET
14 Group: Development/Libraries
16 URL: https://www.tizen.org
17 Source0: %{name}-%{version}.tar.gz
18 Source1: %{name}.manifest
20 BuildRequires: dotnet-build-tools
33 Summary: NuGet package for %{name}
34 Group: Development/Libraries
38 NuGet package for %{name}
41 Summary: Dummy assemblies of Tizen .NET
42 Group: Development/Libraries
46 Dummy assemblies of Tizen .NET
49 Summary: All Tizen .NET assemblies
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
55 All Tizen .NET assemblies
58 Summary: All .pdb files of Tizen .NET
59 Group: Development/Libraries
63 All .pdb files of Tizen .NET
66 Summary: Tizen .NET assemblies for Common profile
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: csapi-tizenfx-dummy = %{version}-%{release}
73 Tizen .NET assemblies for Common profile
76 Summary: Tizen .NET assemblies for Mobile profile
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: csapi-tizenfx-dummy = %{version}-%{release}
83 Tizen .NET assemblies for Mobile profile
86 Summary: Tizen .NET assemblies for Emulator of Mobile profile
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
89 Requires: csapi-tizenfx-dummy = %{version}-%{release}
92 %description mobile-emul
93 Tizen .NET assemblies for Emulator of Mobile profile
96 Summary: Tizen .NET assemblies for TV profile
97 Group: Development/Libraries
98 Requires: %{name} = %{version}-%{release}
99 Requires: csapi-tizenfx-dummy = %{version}-%{release}
103 Tizen .NET assemblies for TV profile
106 Summary: Tizen .NET assemblies for IVI profile
107 Group: Development/Libraries
108 Requires: %{name} = %{version}-%{release}
109 Requires: csapi-tizenfx-dummy = %{version}-%{release}
113 Tizen .NET assemblies for IVI profile
116 Summary: Tizen .NET assemblies for Wearable profile
117 Group: Development/Libraries
118 Requires: %{name} = %{version}-%{release}
119 Requires: csapi-tizenfx-dummy = %{version}-%{release}
122 %description wearable
123 Tizen .NET assemblies for Wearable profile
133 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
136 GetFileList common > common.filelist
137 GetFileList mobile > mobile.filelist
138 GetFileList mobile-emul > mobile-emul.filelist
139 GetFileList tv > tv.filelist
140 GetFileList ivi > ivi.filelist
141 GetFileList wearable > wearable.filelist
143 rm -fr %{_tizenfx_bin_path}
144 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
147 ./build.sh --pack 4.0.0-preview1-00249
150 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
151 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
152 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
153 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
155 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
156 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
157 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
158 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
159 install -p -m 644 %{_tizenfx_bin_path}/bin/platform/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
160 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
161 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
164 vconftool set -t int "db/dotnet/tizen_api_version" %{DOTNET_TIZEN_API_VERSION} -f
171 %{DOTNET_NUGET_SOURCE}/*.nupkg
174 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
177 %manifest %{name}.manifest
178 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
179 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
182 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
184 %files common -f common.filelist
185 %manifest %{name}.manifest
187 %files mobile -f mobile.filelist
188 %manifest %{name}.manifest
190 %files mobile-emul -f mobile-emul.filelist
191 %manifest %{name}.manifest
193 %files tv -f tv.filelist
194 %manifest %{name}.manifest
196 %files ivi -f ivi.filelist
197 %manifest %{name}.manifest
199 %files wearable -f wearable.filelist
200 %manifest %{name}.manifest