%define XF_VERSION 2.3.5 %define XF_RELEASE 233 # Increase this XF_DEV_VERSION when any public APIs of Xamarin.Forms.Platform.Tizen are changed. %define XF_DEV_VERSION 004 Name: xamarin-forms-tizen Summary: Xamarin.Forms for Tizen platform 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: dotnet-build-tools # C# API Requires BuildRequires: elm-sharp-nuget BuildRequires: csapi-tizen-nuget BuildRequires: csapi-application-nuget BuildRequires: csapi-information-nuget BuildRequires: csapi-location-nuget BuildRequires: csapi-maps-nuget BuildRequires: csapi-webview-nuget %description Allows one to use portable controls subsets that are mapped to native controls of Android, iOS, Windows Phone, and Tizen. # make -nuget sub package %package nuget Summary: NuGet package for %{name} Group: Development/Libraries %description nuget NuGet package for %{name} # for private nuget package %package nuget-private Summary: Xamarin Forms Private NuGet Group: Development/Libraries %description nuget-private Xamarin Forms Private NuGet for internal uses %prep %setup -q cp %{SOURCE1} . %build # Build Xamarin.Forms.Build.Tasks PKGSRC="$(readlink -f .nuget/packages)" %dotnet_build Xamarin.Forms.Build.Tasks "/p:PackageSources=$PKGSRC" # Build Xamarin.Forms.Tizen.sln %dotnet_build Xamarin.Forms.Tizen.sln # Create NuGet Packages %dotnet_pack Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.nuspec %{NUPKG_VERSION} %dotnet_pack Xamarin.Forms.Maps.Tizen/Xamarin.Forms.Maps.Tizen.nuspec %{NUPKG_VERSION} # Xamarin.Forms for internal usage %dotnet_pack .nuspec/Xamarin.Forms.Tizen.nuspec %{NUPKG_VERSION} "-BasePath ./.nuspec" %install %dotnet_install_assembly Xamarin.Forms.Core %dotnet_install_assembly Xamarin.Forms.Core %dotnet_install_assembly Xamarin.Forms.Xaml %dotnet_install_assembly Xamarin.Forms.Platform %dotnet_install_assembly Xamarin.Forms.Platform.Tizen %dotnet_install_assembly Xamarin.Forms.Maps %dotnet_install_assembly Xamarin.Forms.Maps.Tizen %dotnet_install_nuget Xamarin.Forms.Platform.Tizen %dotnet_install_nuget Xamarin.Forms.Maps.Tizen # Xamarin.Forms for internal usage %dotnet_install_nuget Xamarin.Forms %files %manifest %{name}.manifest %license LICENSE %attr(644,root,root) %{dotnet_assembly_files} %files nuget /nuget/Xamarin.Forms.Platform.Tizen.%{NUPKG_VERSION}.nupkg /nuget/Xamarin.Forms.Maps.Tizen.%{NUPKG_VERSION}.nupkg %files nuget-private /nuget/Xamarin.Forms.%{NUPKG_VERSION}.nupkg