1 %{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
3 %if 0%{?tizen_build_devel_mode}
4 %define BUILDCONF Debug
6 %define BUILDCONF Release
9 %define DEV_VERSION beta-002
12 Summary: C# Binding for Elementary
15 Group: Development/Libraries
17 URL: https://www.tizen.org
18 Source0: %{name}-%{version}.tar.gz
19 Source1: %{name}.manifest
22 ExcludeArch: aarch64 %ix86
24 BuildRequires: mono-compiler
25 BuildRequires: mono-devel
27 BuildRequires: dotnet-build-tools
28 BuildRequires: edje-tools
31 C# Binding for Elementary
37 %define Assemblies ElmSharp
40 for ASM in %{Assemblies}; do
42 find $ASM/*.project.json -exec nuget restore {} \;
44 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
46 nuget pack $ASM/$ASM.nuspec -Version %{version}%{?DEV_VERSION:-%{DEV_VERSION}} -Properties Configuration=%{BUILDCONF}
49 edje_cc -id ElmSharp/theme/%{profile}/HD/images/ \
50 -id ElmSharp/theme/%{profile}/HD/images/User_Input_Elements \
51 ElmSharp/theme/%{profile}/elm-sharp-theme-%{profile}.edc ElmSharp/theme/elm-sharp-theme.edj
55 mkdir -p %{buildroot}%{dotnet_assembly_path}
56 for ASM in %{Assemblies}; do
58 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
60 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
64 mkdir -p %{buildroot}/nuget
65 install -p -m 644 *.nupkg %{buildroot}/nuget
67 mkdir %{buildroot}%{_datadir}/edje/elm-sharp -p
68 install -m 644 ElmSharp/theme/elm-sharp-theme.edj %{buildroot}%{_datadir}/edje/elm-sharp/
71 %manifest %{name}.manifest
73 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
74 %attr(644,root,root) %{_datadir}/edje/elm-sharp/*.edj
77 Summary: NuGet package for %{name}
78 Group: Development/Libraries
81 NuGet package for %{name}