summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2016-09-01 11:05:17 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2016-09-01 11:05:17 +0900
commit276710a3ca64fa49a93c833a0739bb1200c921e5 (patch)
tree94a40ae346a54806ec47dd78463417a4db385dff /packaging
parent718c6784ff381b4acd5b2ce44c134de326964158 (diff)
downloadelm-sharp-276710a3ca64fa49a93c833a0739bb1200c921e5.tar.gz
elm-sharp-276710a3ca64fa49a93c833a0739bb1200c921e5.tar.bz2
elm-sharp-276710a3ca64fa49a93c833a0739bb1200c921e5.zip
Introduce ElmSharp project
Change-Id: Ifcd5eab2fce0ca2caafff0b0de506b31b1aa996d
Diffstat (limited to 'packaging')
-rw-r--r--packaging/elm-sharp.manifest5
-rw-r--r--packaging/elm-sharp.spec82
2 files changed, 87 insertions, 0 deletions
diff --git a/packaging/elm-sharp.manifest b/packaging/elm-sharp.manifest
new file mode 100644
index 0000000..75b0fa5
--- /dev/null
+++ b/packaging/elm-sharp.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec
new file mode 100644
index 0000000..36add48
--- /dev/null
+++ b/packaging/elm-sharp.spec
@@ -0,0 +1,82 @@
+%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
+%{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref}
+
+%if 0%{?tizen_build_devel_mode}
+%define BUILDCONF Debug
+%else
+%define BUILDCONF Release
+%endif
+
+Name: elm-sharp
+Summary: C# Binding for Elementary
+Version: 1.0.0
+Release: 1
+Group: Development/Libraries
+License: Apache-2.0
+URL: https://www.tizen.org
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.manifest
+
+# .NETCore
+%if 0%{?_with_corefx}
+AutoReqProv: no
+BuildRequires: corefx-managed-32b-ref
+%endif
+
+BuildRequires: dotnet-build-tools
+
+%description
+C# Binding for Elementary
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+
+%define Assemblies ElmSharp
+
+%build
+dotnet-gbs build %{Assemblies} \
+%if 0%{?_with_corefx}
+ --CoreFxPath=%{dotnet_core_path} \
+%endif
+ --Configuration=%{BUILDCONF} \
+ --DotnetAssemblyPath=%{dotnet_assembly_path}
+
+dotnet-gbs pack %{Assemblies} --PackageVersion=%{version}
+
+%install
+mkdir -p %{buildroot}%{dotnet_assembly_path}
+dotnet-gbs install %{Assemblies} \
+ --Configuration=%{BUILDCONF} \
+ --InstallPath=%{buildroot}%{dotnet_assembly_path}
+
+mkdir -p %{buildroot}/nuget
+install -p -m 644 .nuget/*.nupkg %{buildroot}/nuget
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%attr(644,root,root) %{dotnet_assembly_path}/*.dll
+
+%package devel
+Summary: Development package for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+AutoReqProv: no
+
+%description devel
+Development package for %{name}
+
+%files devel
+%{dotnet_assembly_path}/devel/*
+
+%package nuget
+Summary: NuGet package for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description nuget
+NuGet package for %{name}
+
+%files nuget
+/nuget/*.nupkg