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
10 Summary: C# Binding for Elementary
13 Group: Development/Libraries
15 URL: https://www.tizen.org
16 Source0: %{name}-%{version}.tar.gz
17 Source1: %{name}.manifest
21 BuildRequires: mono-compiler
22 BuildRequires: mono-devel
24 BuildRequires: dotnet-build-tools
25 BuildRequires: edje-tools
28 C# Binding for Elementary
34 %define Assemblies ElmSharp
37 for ASM in %{Assemblies}; do
39 find $ASM/*.project.json -exec nuget restore {} \;
41 find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
43 nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
46 edje_cc -id ElmSharp/theme/%{profile}/HD/images/ \
47 -id ElmSharp/theme/%{profile}/HD/images/User_Input_Elements \
48 ElmSharp/theme/%{profile}/elm-sharp-theme-%{profile}.edc ElmSharp/theme/elm-sharp-theme.edj
52 mkdir -p %{buildroot}%{dotnet_assembly_path}
53 for ASM in %{Assemblies}; do
55 install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
57 install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
61 mkdir -p %{buildroot}/nuget
62 install -p -m 644 *.nupkg %{buildroot}/nuget
64 mkdir %{buildroot}%{_datadir}/edje/elm-sharp -p
65 install -m 644 ElmSharp/theme/elm-sharp-theme.edj %{buildroot}%{_datadir}/edje/elm-sharp/
68 %manifest %{name}.manifest
70 %attr(644,root,root) %{dotnet_assembly_path}/*.dll
71 %attr(644,root,root) %{_datadir}/edje/elm-sharp/*.edj
74 Summary: NuGet package for %{name}
75 Group: Development/Libraries
78 NuGet package for %{name}