# Auto-generated from csapi-tizenfx.spec.in by makespec.sh
%define TIZEN_NET_API_VERSION 6
-%define TIZEN_NET_RPM_VERSION 6.0.0.999+nui505
-%define TIZEN_NET_NUGET_VERSION 6.0.0.99999
+%define TIZEN_NET_RPM_VERSION 6.0.0.14679+nui505
+%define TIZEN_NET_NUGET_VERSION 6.0.0.14679
%define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
%define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref
NuGet package for %{name}
%package dummy
-Summary: Dummy assemblies of Tizen .NET
+Summary: not used package
Group: Development/Libraries
AutoReqProv: no
%description dummy
-Dummy assemblies of Tizen .NET
+not used package
%package full
Summary: All Tizen .NET assemblies
Summary: Tizen .NET assemblies for Common profile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description common
Summary: Tizen .NET assemblies for Mobile profile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description mobile
Summary: Tizen .NET assemblies for Emulator of Mobile profile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description mobile-emul
Summary: Tizen .NET assemblies for TV profile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description tv
Tizen .NET assemblies for TV profile
-%package ivi
-Summary: Tizen .NET assemblies for IVI profile
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
-AutoReqProv: no
-
-%description ivi
-Tizen .NET assemblies for IVI profile
-
%package wearable
Summary: Tizen .NET assemblies for Wearable profile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description wearable
%define _tizenfx_bin_path Artifacts
+rm -fr %{_tizenfx_bin_path}
+export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+
+%define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
+%{build_cmd} --full
+%{build_cmd} --dummy
+%{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
+
GetFileList() {
PROFILE=$1
- cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
+ cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#"
+ for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do
+ if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then
+ echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f"
+ fi
+ done
}
GetFileList common > common.filelist
GetFileList mobile > mobile.filelist
GetFileList mobile-emul > mobile-emul.filelist
GetFileList tv > tv.filelist
-GetFileList ivi > ivi.filelist
GetFileList wearable > wearable.filelist
-rm -fr %{_tizenfx_bin_path}
-export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
-
-%define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh
-%{build_cmd} --full
-%{build_cmd} --dummy
-%{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION}
-
%install
mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
# Install NuGet Packages
install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
+install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
%post
/usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
-
+/usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
%files
%license LICENSE
%{DOTNET_NUGET_SOURCE}/*.nupkg
%files dummy
-%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
%files full
%manifest %{name}.manifest
%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
+%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
%attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
%files debug
%files tv -f tv.filelist
%manifest %{name}.manifest
-%files ivi -f ivi.filelist
-%manifest %{name}.manifest
-
%files wearable -f wearable.filelist
%manifest %{name}.manifest