%define XF_VERSION 2.3.4 %define XF_RELEASE 214 # Increase this XF_TIZEN_VERSION when any public APIs are changed. %define XF_DEV_VERSION 001 Name: xamarin-forms-extension Summary: Tizen Extensions for Xamarin.Forms Version: %{XF_VERSION} Release: 0 License: MIT Group: Graphics & UI Framework/Libraries Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest %define NUPKG_VERSION %{XF_VERSION}-r%{XF_RELEASE}-%{XF_DEV_VERSION} AutoReqProv: no ExcludeArch: aarch64 BuildRequires: referenceassemblies-pcl BuildRequires: dotnet-build-tools # C# API Requires BuildRequires: csapi-tizen-nuget BuildRequires: csapi-application-nuget BuildRequires: elm-sharp-nuget BuildRequires: xamarin-forms-tizen-nuget BuildRequires: csapi-multimedia-nuget %description %{summary} %dotnet_import_sub_packages %prep %setup -q cp %{SOURCE1} . %define Project Tizen.Xamarin.Forms.Extension %define Renderer Tizen.Xamarin.Forms.Extension.Renderer %define Solution %{Project}.sln %build SOURCES="/nuget;$(readlink -f .nuget)" # Build %dotnet_restore %{Project}/packages.config "-SolutionDirectory ." "-Source $SOURCES" %dotnet_restore %{Renderer} "-Source $SOURCES" %dotnet_build %{Solution} # Pack %dotnet_pack %{Project}.nuspec %{NUPKG_VERSION} %install %dotnet_install_assembly %{Project} %dotnet_install_assembly %{Renderer} %dotnet_install_nuget %{Project} %files %manifest %{name}.manifest %license LICENSE %attr(644,root,root) %{dotnet_assembly_files}