X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fcsapi-tizenfx.spec;h=7bcd47bae0cd581c8dc2e656cce2c00bcfb377b7;hb=a2f1a1b645351336e93cfa1ec838ede8c193902b;hp=39c514e4ab66e3a99819f62a3d927431be3272f8;hpb=c7a397cb5df4e2e9cfe8bae2c38e87389526862c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 39c514e..7bcd47b 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -1,15 +1,18 @@ +# Auto-generated from csapi-tizenfx.spec.in by makespec.sh + +%define TIZEN_NET_API_VERSION 4 +%define TIZEN_NET_RPM_VERSION 4.0.1.24+nui61.3 +%define TIZEN_NET_NUGET_VERSION 4.0.1-preview1-00024 +%define TIZEN_NET_INTERNAL_NUGET_VERSION 4.0.1.24 + %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_NUGET_SOURCE /nuget -%define DOTNET_TIZEN_API_VERSION 4 - -%define _tizenfx_bin_path Artifacts - Name: csapi-tizenfx Summary: Assemblies of Tizen .NET -Version: 4.0.0.r12+nui61 +Version: %{TIZEN_NET_RPM_VERSION} Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -17,15 +20,13 @@ URL: https://www.tizen.org Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest -BuildRequires: dotnet-build-tools - -BuildArch: noarch +BuildArch: noarch ExcludeArch: aarch64 AutoReqProv: no +BuildRequires: dotnet-build-tools Requires(post): vconf - %description %{summary} @@ -128,6 +129,8 @@ cp %{SOURCE1} . %build +%define _tizenfx_bin_path Artifacts + GetFileList() { PROFILE=$1 cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" @@ -144,7 +147,7 @@ rm -fr %{_tizenfx_bin_path} export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true ./build.sh --full ./build.sh --dummy -./build.sh --pack 4.0.0 +./build.sh --pack %{TIZEN_NET_NUGET_VERSION} %{TIZEN_NET_INTERNAL_NUGET_VERSION} %install mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -152,16 +155,28 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} +# Install Runtime Assemblies install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} + +# Install Debug Symbols install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/platform/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} + +# Install Resource files +[ -d %{_tizenfx_bin_path}/bin/public/res ] \ + && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} +[ -d %{_tizenfx_bin_path}/bin/internal/res ] \ + && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} + +# Install Dummy Assemblies install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} + +# Install NuGet Packages install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} %post -vconftool set -t int "db/dotnet/tizen_api_version" %{DOTNET_TIZEN_API_VERSION} -f +vconftool set -t int "db/dotnet/tizen_api_version" %{TIZEN_NET_API_VERSION} -f %files