summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2016-12-19 18:57:17 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2016-12-19 20:59:05 +0900
commitb85a1965e23f3d256d105ec7495ebb519f568204 (patch)
treed18b562c15086348a520e0a1d1a2a59fbbb0f4db
parent176204f03050073be0c3480e13eaada45f51f976 (diff)
downloadmedia-content-b85a1965e23f3d256d105ec7495ebb519f568204.tar.gz
media-content-b85a1965e23f3d256d105ec7495ebb519f568204.tar.bz2
media-content-b85a1965e23f3d256d105ec7495ebb519f568204.zip
Change-Id: I9daa96f4c9d4e75783805583b0f98691be65875c Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
-rwxr-xr-xpackaging/csapi-media-content.spec52
1 files changed, 10 insertions, 42 deletions
diff --git a/packaging/csapi-media-content.spec b/packaging/csapi-media-content.spec
index 4660bfb..64562de 100755
--- a/packaging/csapi-media-content.spec
+++ b/packaging/csapi-media-content.spec
@@ -1,11 +1,3 @@
-%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework}
-
-%if 0%{?tizen_build_devel_mode}
-%define BUILDCONF Debug
-%else
-%define BUILDCONF Release
-%endif
-
Name: csapi-media-content
Summary: Tizen Media Content API for C#
Version: 1.0.5
@@ -17,60 +9,36 @@ Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
AutoReqProv: no
-ExcludeArch: %{ix86} aarch64
-
-BuildRequires: mono-compiler
-BuildRequires: mono-devel
+ExcludeArch: aarch64 %ix86
BuildRequires: dotnet-build-tools
# C# API Requires
BuildRequires: csapi-tizen-nuget
+%define Assemblies Tizen.Content.MediaContent
+
%description
-Tizen Media Content API for C#
+%{summary}
+
+%dotnet_import_sub_packages
%prep
%setup -q
cp %{SOURCE1} .
-%define Assemblies Tizen.Content.MediaContent
-
%build
for ASM in %{Assemblies}; do
-# NuGet Restore
-find $ASM/*.project.json -exec nuget restore {} \;
-# Build
-find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \;
-# NuGet Pack
-nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF}
+%dotnet_build $ASM
+%dotnet_pack $ASM/$ASM.nuspec %{version}
done
%install
-# Runtime Binary
-mkdir -p %{buildroot}%{dotnet_assembly_path}
for ASM in %{Assemblies}; do
-%if 0%{?_with_corefx}
- install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path}
-%else
- install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path}
-%endif
+%dotnet_install $ASM
done
-# NuGet
-mkdir -p %{buildroot}/nuget
-install -p -m 644 *.nupkg %{buildroot}/nuget
%files
%manifest %{name}.manifest
%license LICENSE
-%attr(644,root,root) %{dotnet_assembly_path}/*.dll
-
-%package nuget
-Summary: NuGet package for %{name}
-Group: Development/Libraries
-
-%description nuget
-NuGet package for %{name}
-
-%files nuget
-/nuget/*.nupkg
+%attr(644,root,root) %{dotnet_assembly_files} \ No newline at end of file