-%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
-
-%if 0%{?tizen_build_devel_mode}
-%define BUILDCONF Debug
-%else
-%define BUILDCONF Release
-%endif
-
%define XF_VERSION 2.3.3.175
## %define XF_PRETAG pre3
Allows one to use portable controls subsets that are mapped to native
controls of Android, iOS, Windows Phone, and Tizen.
+%dotnet_import_sub_packages
+
%prep
%setup -q
cp %{SOURCE1} .
%build
# Restore NuGet Dependencies
-find . -name *.Tizen.project.json -print0 | xargs -n1 -0 nuget restore
+%dotnet_restore Xamarin.Forms.Platform.Tizen
+%dotnet_restore Xamarin.Forms.Maps.Tizen
# Build
-xbuild Xamarin.Forms.Tizen.sln \
- /p:Configuration=%{BUILDCONF} \
- /p:PackageSources=/nuget
+%dotnet_build Xamarin.Forms.Tizen.sln /p:PackageSources=/nuget
# Create NuGet Packages
-nuget pack .nuspec/Xamarin.Forms.Platform.Tizen.nuspec \
- -BasePath ./.nuspec -Version %{NUPKG_VERSION} \
- -Properties "Configuration=%{BUILDCONF}"
+%dotnet_pack .nuspec/Xamarin.Forms.Platform.Tizen.nuspec %{NUPKG_VERSION} "-BasePath ./.nuspec"
%install
function install_asm()
{
mkdir -p %{buildroot}%{dotnet_assembly_path}
- install -p -m 644 $1/bin/%{BUILDCONF}/$1.dll %{buildroot}%{dotnet_assembly_path}
+ install -p -m 644 $1/bin/%{_dotnet_build_conf}/$1.dll %{buildroot}%{dotnet_assembly_path}
}
install_asm Xamarin.Forms.Core
%files
%manifest %{name}.manifest
%license LICENSE
-%attr(644,root,root) %{dotnet_assembly_path}/*.dll
-
-%package nuget
-Summary: NuGet package for %{name}
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description nuget
-NuGet package for %{name}
+%attr(644,root,root) %{dotnet_assembly_files}
-%files nuget
-/nuget/*.nupkg