summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-04-06 22:31:29 (GMT)
committerWonYoung Choi <wy80.choi@samsung.com>2017-04-06 22:31:29 (GMT)
commiteab0454b71a3e963b0013874e697186ff4cde850 (patch)
treeefe983e0d1fd9120c5e1792a40e6bffce5e69d90
parentcc1dc96e0b0e5e7ddcaa6d30854aaaaa6ae29cfb (diff)
downloadsmartcard-eab0454b71a3e963b0013874e697186ff4cde850.zip
smartcard-eab0454b71a3e963b0013874e697186ff4cde850.tar.gz
smartcard-eab0454b71a3e963b0013874e697186ff4cde850.tar.bz2
Change-Id: I68bd2e465ee1bd6b9049a9e0c95d34d27d7736c0 Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
-rw-r--r--packaging/csapi-network-smartcard.spec52
1 files changed, 10 insertions, 42 deletions
diff --git a/packaging/csapi-network-smartcard.spec b/packaging/csapi-network-smartcard.spec
index 2bf1fbe..b2278da 100644
--- a/packaging/csapi-network-smartcard.spec
+++ b/packaging/csapi-network-smartcard.spec
@@ -1,14 +1,6 @@
-%{!?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-network-smartcard
Summary: Tizen Smartcard API for C#
-Version: 1.0.4
+Version: 1.0.5
Release: 1
Group: Development/Libraries
License: Apache-2.0
@@ -19,58 +11,34 @@ Source1: %{name}.manifest
AutoReqProv: no
ExcludeArch: aarch64
-BuildRequires: mono-compiler
-BuildRequires: mono-devel
-
BuildRequires: dotnet-build-tools
# C# API Requries
BuildRequires: csapi-tizen-nuget
+%define Assemblies Tizen.Network.Smartcard
+
%description
-Tizen Smartcard API for C#
+%{summary}
+
+%dotnet_import_sub_packages
%prep
%setup -q
cp %{SOURCE1} .
-%define Assemblies Tizen.Network.Smartcard
-
%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}