summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-03-24 11:40:36 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:31 +0900
commit68f2d605a310a4eb5279adcaccd89a04a359fe14 (patch)
tree9524857003515d8b53fc4f30892b38b13d2fa7cc /packaging
parent5e81f6a57a2a4f5c64d499866e0261913c0cec79 (diff)
downloadxamarin-forms-68f2d605a310a4eb5279adcaccd89a04a359fe14.tar.gz
xamarin-forms-68f2d605a310a4eb5279adcaccd89a04a359fe14.tar.bz2
xamarin-forms-68f2d605a310a4eb5279adcaccd89a04a359fe14.zip
Provide xamarin-forms-tizen-nuget-private package
Change-Id: I3b2c44860ef6b0b8da53ec58c0fc7ba72a543613
Diffstat (limited to 'packaging')
-rw-r--r--packaging/xamarin-forms-tizen.spec41
1 files changed, 34 insertions, 7 deletions
diff --git a/packaging/xamarin-forms-tizen.spec b/packaging/xamarin-forms-tizen.spec
index c53e141d..4a309f21 100644
--- a/packaging/xamarin-forms-tizen.spec
+++ b/packaging/xamarin-forms-tizen.spec
@@ -1,7 +1,8 @@
%define XF_VERSION 2.3.4
+%define XF_RELEASE 192
-# Increase this XF_TIZEN_VERSION when any public APIs of Xamarin.Forms.Platform.Tizen are changed.
-%define XF_TIZEN_VERSION r192-006
+# Increase this XF_DEV_VERSION when any public APIs of Xamarin.Forms.Platform.Tizen are changed.
+%define XF_DEV_VERSION 007
Name: xamarin-forms-tizen
Summary: Xamarin.Forms for Tizen platform
@@ -12,7 +13,7 @@ Group: Graphics & UI Framework/Libraries
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
-%define NUPKG_VERSION %{XF_VERSION}-%{XF_TIZEN_VERSION}
+%define NUPKG_VERSION %{XF_VERSION}-r%{XF_RELEASE}-%{XF_DEV_VERSION}
AutoReqProv: no
ExcludeArch: aarch64
@@ -37,7 +38,20 @@ Allows one to use portable controls subsets that are mapped to native
controls of Android, iOS, Windows Phone, and Tizen.
# make -nuget sub package
-%_nuget_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
@@ -49,11 +63,15 @@ cp %{SOURCE1} .
%dotnet_restore Xamarin.Forms.Maps.Tizen
# Build
-%dotnet_build Xamarin.Forms.Tizen.sln /p:PackageSources=/nuget
+PKGSRC="$(readlink -f .nuget/packages)"
+%dotnet_build Xamarin.Forms.Tizen.sln "/p:PackageSources=$PKGSRC"
# Create NuGet Packages
-%dotnet_pack .nuspec/Xamarin.Forms.Platform.Tizen.nuspec %{NUPKG_VERSION} "-BasePath ./.nuspec"
-%dotnet_pack .nuspec/Xamarin.Forms.Maps.Tizen.nuspec %{NUPKG_VERSION} "-BasePath ./.nuspec"
+%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
+%dotnet_pack .nuspec/Xamarin.Forms.Tizen.nuspec %{XF_VERSION}.%{XF_RELEASE}-tizen-%{XF_DEV_VERSION} "-BasePath ./.nuspec"
%install
function install_asm()
@@ -77,3 +95,12 @@ install -p -m 644 *.nupkg %{buildroot}/nuget
%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.%{XF_VERSION}.%{XF_RELEASE}-tizen-%{XF_DEV_VERSION}.nupkg
+
+
+