1 # Auto-generated from csapi-tizenfx.spec.in by makespec.sh
3 %define TIZEN_NET_API_VERSION 4
4 %define TIZEN_NET_RPM_VERSION 4.0.1.38+nui69
5 %define TIZEN_NET_NUGET_VERSION 4.0.1-preview1-00038
6 %define TIZEN_NET_INTERNAL_NUGET_VERSION 4.0.1.38
7 %define NATIVE_DALI_VERSION 1.2.69
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 BuildRequires: dali = %{NATIVE_DALI_VERSION}
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
135 %define _tizenfx_bin_path Artifacts
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 /usr/bin/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