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.14666+nui505
5 %define TIZEN_NET_NUGET_VERSION 6.0.0.14666
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_NUGET_SOURCE /nuget
13 Summary: Assemblies of Tizen .NET
14 Version: %{TIZEN_NET_RPM_VERSION}
16 Group: Development/Libraries
17 License: Apache-2.0 and MIT
18 URL: https://www.tizen.org
19 Source0: %{name}-%{version}.tar.gz
20 Source1: %{name}.manifest
26 BuildRequires: dotnet-build-tools
27 Requires(post): /usr/bin/vconftool
33 Summary: NuGet package for %{name}
34 Group: Development/Libraries
38 NuGet package for %{name}
41 Summary: not used package
42 Group: Development/Libraries
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}
72 Tizen .NET assemblies for Common profile
75 Summary: Tizen .NET assemblies for Mobile profile
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
81 Tizen .NET assemblies for Mobile profile
84 Summary: Tizen .NET assemblies for Emulator of Mobile profile
85 Group: Development/Libraries
86 Requires: %{name} = %{version}-%{release}
89 %description mobile-emul
90 Tizen .NET assemblies for Emulator of Mobile profile
93 Summary: Tizen .NET assemblies for TV profile
94 Group: Development/Libraries
95 Requires: %{name} = %{version}-%{release}
99 Tizen .NET assemblies for TV profile
102 Summary: Tizen .NET assemblies for Wearable profile
103 Group: Development/Libraries
104 Requires: %{name} = %{version}-%{release}
107 %description wearable
108 Tizen .NET assemblies for Wearable profile
115 %{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}
117 %define _tizenfx_bin_path Artifacts
119 rm -fr %{_tizenfx_bin_path}
120 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
122 %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
125 %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
129 cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
130 for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do
131 if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then
132 echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f"
137 GetFileList common > common.filelist
138 GetFileList mobile > mobile.filelist
139 GetFileList mobile-emul > mobile-emul.filelist
140 GetFileList tv > tv.filelist
141 GetFileList wearable > wearable.filelist
144 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
145 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
146 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
147 mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE}
149 # Install Runtime Assemblies
150 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
151 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
153 # Install Debug Symbols
154 install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
155 install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH}
157 # Install Resource files
158 [ -d %{_tizenfx_bin_path}/bin/public/res ] \
159 && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
160 [ -d %{_tizenfx_bin_path}/bin/internal/res ] \
161 && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH}
163 # Install Dummy Assemblies
164 install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
166 # Install NuGet Packages
167 install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
168 install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
171 /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
172 /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
178 %{DOTNET_NUGET_SOURCE}/*.nupkg
183 %manifest %{name}.manifest
184 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
185 %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
186 %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
189 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb
191 %files common -f common.filelist
192 %manifest %{name}.manifest
194 %files mobile -f mobile.filelist
195 %manifest %{name}.manifest
197 %files mobile-emul -f mobile-emul.filelist
198 %manifest %{name}.manifest
200 %files tv -f tv.filelist
201 %manifest %{name}.manifest
203 %files wearable -f wearable.filelist
204 %manifest %{name}.manifest