blob: 21336e4475fd74ecb41f0bb35553c36e5d6a1701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
%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}
|