summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-04-07 07:51:03 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:32 +0900
commit80093625cfbd2979d5d914780860642d95037e57 (patch)
tree05af97da6ade3e704756d5671c200cc955bf3013 /packaging
parent3962e104bf666a5d3d2bf4e202dc4499a343c13d (diff)
downloadxamarin-forms-80093625cfbd2979d5d914780860642d95037e57.tar.gz
xamarin-forms-80093625cfbd2979d5d914780860642d95037e57.tar.bz2
xamarin-forms-80093625cfbd2979d5d914780860642d95037e57.zip
Change project files to new csproj format
Change-Id: I5abe43d6738680c5c93341497769c9ecf748f76c
Diffstat (limited to 'packaging')
-rw-r--r--packaging/xamarin-forms-tizen.spec53
1 files changed, 23 insertions, 30 deletions
diff --git a/packaging/xamarin-forms-tizen.spec b/packaging/xamarin-forms-tizen.spec
index 09c0a30d..05a96b15 100644
--- a/packaging/xamarin-forms-tizen.spec
+++ b/packaging/xamarin-forms-tizen.spec
@@ -18,19 +18,15 @@ Source1: %{name}.manifest
AutoReqProv: no
ExcludeArch: aarch64
-BuildRequires: mono-compiler
-BuildRequires: mono-devel
-BuildRequires: referenceassemblies-pcl
-
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: elm-sharp-nuget
BuildRequires: csapi-webview-nuget
%description
@@ -46,11 +42,11 @@ Group: Development/Libraries
NuGet package for %{name}
# for private nuget package
-%package nugetpriv
+%package nuget-private
Summary: Xamarin Forms Private NuGet
Group: Development/Libraries
-%description nugetpriv
+%description nuget-private
Xamarin Forms Private NuGet for internal uses
%prep
@@ -58,37 +54,34 @@ Xamarin Forms Private NuGet for internal uses
cp %{SOURCE1} .
%build
-# Restore NuGet Dependencies
-%dotnet_restore Xamarin.Forms.Platform.Tizen
-%dotnet_restore Xamarin.Forms.Maps.Tizen
-
-# Build
+# Build Xamarin.Forms.Build.Tasks
PKGSRC="$(readlink -f .nuget/packages)"
-%dotnet_build Xamarin.Forms.Tizen.sln "/p:PackageSources=$PKGSRC"
+%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} "-BasePath ./.nuspec"
%dotnet_pack Xamarin.Forms.Maps.Tizen/Xamarin.Forms.Maps.Tizen.nuspec %{NUPKG_VERSION} "-BasePath ./.nuspec"
-# Xamarin.Forms NuGet Package for private uses
+# Xamarin.Forms for internal usage
%dotnet_pack .nuspec/Xamarin.Forms.Tizen.nuspec %{XF_VERSION}.%{XF_RELEASE}-tizen-%{XF_DEV_VERSION} "-BasePath ./.nuspec"
%install
-function install_asm()
-{
- mkdir -p %{buildroot}%{_dotnet_assembly_path}
- install -p -m 644 $1/bin/%{_dotnet_build_conf}/$1.dll %{buildroot}%{_dotnet_assembly_path}
-}
-
-install_asm Xamarin.Forms.Core
-install_asm Xamarin.Forms.Xaml
-install_asm Xamarin.Forms.Platform
-install_asm Xamarin.Forms.Platform.Tizen
-install_asm Xamarin.Forms.Maps
-install_asm Xamarin.Forms.Maps.Tizen
-
-mkdir -p %{buildroot}/nuget
-install -p -m 644 *.nupkg %{buildroot}/nuget
+%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
@@ -99,7 +92,7 @@ install -p -m 644 *.nupkg %{buildroot}/nuget
/nuget/Xamarin.Forms.Platform.Tizen.%{NUPKG_VERSION}.nupkg
/nuget/Xamarin.Forms.Maps.Tizen.%{NUPKG_VERSION}.nupkg
-%files nugetpriv
+%files nuget-private
/nuget/Xamarin.Forms.%{XF_VERSION}.%{XF_RELEASE}-tizen-%{XF_DEV_VERSION}.nupkg