%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 Name: csapi-tizenfx Summary: Assemblies of Tizen .NET Version: 4.0.0.50 Release: 1 Group: Development/Libraries License: Apache-2.0 URL: https://www.tizen.org Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest BuildArch: noarch AutoReqProv: no %description %{summary} %package nuget Summary: NuGet package for %{name} Group: Development/Libraries AutoReqProv: no %description nuget NuGet package for %{name} %package dummy Summary: Dummy assemblies of Tizen .NET Group: Development/Libraries AutoReqProv: no %description dummy Dummy assemblies of Tizen .NET %package tv Summary: Tizen .NET assemblies for TV profile Group: Development/Libraries Requires: csapi-tizenfx-dummy AutoReqProv: no %description tv Tizen .NET assemblies for TV profile %prep %setup -q cp %{SOURCE1} . %build %install mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} install -p -m 644 binaries/frameworks/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} install -p -m 644 binaries/frameworks/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} install -p -m 644 binaries/frameworks_dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} install -p -m 644 binaries/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} %files %manifest %{name}.manifest %license LICENSE %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/* %files nuget %{DOTNET_NUGET_SOURCE}/*.nupkg %files dummy %attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll %files tv -f csapi-tizenfx-tv.files %manifest %{name}.manifest %license LICENSE