1 # Auto-generated from csapi-tizenfx.spec.in by makespec.sh
3 %define TIZEN_NET_API_VERSION 6
4 %define TIZEN_NET_RPM_VERSION 6.0.0.14848+nui550
5 %define TIZEN_NET_NUGET_VERSION 6.0.0.14848
7 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
8 %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
9 %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
10 %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools
11 %define DOTNET_NUGET_SOURCE /nuget
14 Summary: Assemblies of Tizen .NET
15 Version: %{TIZEN_NET_RPM_VERSION}
17 Group: Development/Libraries
18 License: Apache-2.0 and MIT
19 URL: https://www.tizen.org
20 Source0: %{name}-%{version}.tar.gz
21 Source1: %{name}.manifest
27 BuildRequires: dotnet-build-tools
28 Requires(post): /usr/bin/vconftool
34 Summary: NuGet package for %{name}
35 Group: Development/Libraries
39 NuGet package for %{name}
42 Summary: Tools for TizenFX
43 Group: Development/Libraries
50 Summary: not used package
51 Group: Development/Libraries
58 Summary: All Tizen .NET assemblies
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
64 All Tizen .NET assemblies
67 Summary: All .pdb files of Tizen .NET
68 Group: Development/Libraries
72 All .pdb files of Tizen .NET
75 Summary: Tizen .NET assemblies for Common profile
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
81 Tizen .NET assemblies for Common profile
84 Summary: Tizen .NET assemblies for Mobile profile
85 Group: Development/Libraries
86 Requires: %{name} = %{version}-%{release}
90 Tizen .NET assemblies for Mobile profile
93 Summary: Tizen .NET assemblies for Emulator of Mobile profile
94 Group: Development/Libraries
95 Requires: %{name} = %{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}
108 Tizen .NET assemblies for TV profile
111 Summary: Tizen .NET assemblies for Wearable profile
112 Group: Development/Libraries
113 Requires: %{name} = %{version}-%{release}
116 %description wearable
117 Tizen .NET assemblies for Wearable profile
124 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
126 %define _tizenfx_bin_path Artifacts
128 rm -fr %{_tizenfx_bin_path}
129 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
131 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
134 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
138 cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
139 for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do
140 if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then
141 echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f"
146 GetFileList common > common.filelist
147 GetFileList mobile > mobile.filelist
148 GetFileList mobile-emul > mobile-emul.filelist
149 GetFileList tv > tv.filelist
150 GetFileList wearable > wearable.filelist
153 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
154 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
155 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
156 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
157 mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH}
159 # Install Runtime Assemblies
160 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
161 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
163 # Install Debug Symbols
164 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
165 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
167 # Install Resource files
168 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
169 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
170 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
171 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
173 # Install Dummy Assemblies
174 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
176 # Install NuGet Packages
177 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
178 install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
181 install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
184 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
185 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
191 %{DOTNET_NUGET_SOURCE}/*.nupkg
194 %manifest %{name}.manifest
195 %{DOTNET_TOOLS_PATH}/*
200 %manifest %{name}.manifest
201 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
202 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
203 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
206 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
208 %files common -f common.filelist
209 %manifest %{name}.manifest
211 %files mobile -f mobile.filelist
212 %manifest %{name}.manifest
214 %files mobile-emul -f mobile-emul.filelist
215 %manifest %{name}.manifest
217 %files tv -f tv.filelist
218 %manifest %{name}.manifest
220 %files wearable -f wearable.filelist
221 %manifest %{name}.manifest