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-001
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
23 BuildRequires: mono-compiler
24 BuildRequires: mono-devel
26 BuildRequires: dotnet-build-tools
27 BuildRequires: edje-tools
30 C# Binding for Elementary
36 %define Assemblies ElmSharp
39 for ASM in %{Assemblies}; do
41 find $ASM/*.project.json -exec nuget restore {} \;
43 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
45 nuget pack $ASM/$ASM.nuspec -Version %{version}%{?DEV_VERSION:-%{DEV_VERSION}} -Properties Configuration=%{BUILDCONF}
48 edje_cc -id ElmSharp/theme/%{profile}/HD/images/ \
49 -id ElmSharp/theme/%{profile}/HD/images/User_Input_Elements \
50 ElmSharp/theme/%{profile}/elm-sharp-theme-%{profile}.edc ElmSharp/theme/elm-sharp-theme.edj
54 mkdir -p %{buildroot}%{dotnet_assembly_path}
55 for ASM in %{Assemblies}; do
57 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
59 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
63 mkdir -p %{buildroot}/nuget
64 install -p -m 644 *.nupkg %{buildroot}/nuget
66 mkdir %{buildroot}%{_datadir}/edje/elm-sharp -p
67 install -m 644 ElmSharp/theme/elm-sharp-theme.edj %{buildroot}%{_datadir}/edje/elm-sharp/
70 %manifest %{name}.manifest
72 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
73 %attr(644,root,root) %{_datadir}/edje/elm-sharp/*.edj
76 Summary: NuGet package for %{name}
77 Group: Development/Libraries
80 NuGet package for %{name}