From: Aditya Date: Wed, 17 Aug 2016 12:07:01 +0000 (+0530) Subject: Updated package name in spec file X-Git-Tag: submit/tizen/20161214.063015~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1d7674e7148866a6ba3e1cfbfc485014995e5f8;p=platform%2Fcore%2Fcsapi%2Fsensor.git Updated package name in spec file Change-Id: I632095be4218fb916d607d80471be89307963e84 Signed-off-by: Aditya --- diff --git a/Tizen.System.Sensor/Tizen.System.Sensor.csproj b/Tizen.System.Sensor/Tizen.System.Sensor.csproj index e677ffe..d1a78aa 100644 --- a/Tizen.System.Sensor/Tizen.System.Sensor.csproj +++ b/Tizen.System.Sensor/Tizen.System.Sensor.csproj @@ -1,121 +1,121 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {CB655C6A-F73B-448E-913C-CA4DCBC5E401} - Library - Tizen.System.Sensor - Tizen.System.Sensor - v4.5 - - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - false - - - none - false - bin\Release - prompt - 4 - false - false - - - true - - - Tizen.System.Sensor.snk - - - - - - - - ..\..\tizen\Tizen.Internals\bin\Debug\Tizen.Internals.dll - - - ..\..\tizen\Tizen\bin\Debug\Tizen.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {CB655C6A-F73B-448E-913C-CA4DCBC5E401} + Library + Tizen.System.Sensor + Tizen.System.Sensor + v4.5 + + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + false + + + none + false + bin\Release + prompt + 4 + false + false + + + true + + + Tizen.System.Sensor.snk + + + + + + + + ..\..\tizen\Tizen.Internals\bin\Debug\Tizen.Internals.dll + + + ..\..\tizen\Tizen\bin\Debug\Tizen.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/csapi-system-sensor.manifest b/packaging/csapi-system-sensor.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/csapi-system-sensor.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/csapi-system-sensor.spec b/packaging/csapi-system-sensor.spec new file mode 100644 index 0000000..8351ef5 --- /dev/null +++ b/packaging/csapi-system-sensor.spec @@ -0,0 +1,64 @@ +%{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly} +%{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref} + +%if 0%{?tizen_build_devel_mode} +%define BUILDCONF Debug +%else +%define BUILDCONF Release +%endif + +Name: csapi-system-sensor +Summary: Tizen Sensor API for C# +Version: 1.0.0 +Release: 1 +Group: Development/Libraries +License: Apache-2.0 +URL: https://www.tizen.org +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest + +# Mono +BuildRequires: mono-compiler +BuildRequires: mono-devel + +# .NETCore +%if 0%{?_with_corefx} +AutoReqProv: no +BuildRequires: corefx-managed-32b-ref +%endif + +# C# API Requires +BuildRequires: csapi-tizen + +%description +Tizen Sensor API for C# + +%prep +%setup -q +cp %{SOURCE1} . + +%define Assemblies Tizen.System.Sensor + +%build +for ASM in %{Assemblies}; do +xbuild $ASM/$ASM.csproj \ +%if 0%{?_with_corefx} + /p:NoStdLib=True \ + /p:TargetFrameworkVersion=v5.0 \ + /p:AddAdditionalExplicitAssemblyReferences=False \ + /p:CoreFxPath=%{dotnet_core_path} \ +%endif + /p:Configuration=%{BUILDCONF} \ + /p:ReferencePath=%{dotnet_assembly_path} +done + +%install +mkdir -p %{buildroot}%{dotnet_assembly_path} +for ASM in %{Assemblies}; do +install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path} +done + +%files +%manifest %{name}.manifest +%license LICENSE +%attr(644,root,root) %{dotnet_assembly_path}/*.dll diff --git a/packaging/csapi-system.sensor.manifest b/packaging/csapi-system.sensor.manifest deleted file mode 100755 index 75b0fa5..0000000 --- a/packaging/csapi-system.sensor.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/csapi-system.sensor.spec b/packaging/csapi-system.sensor.spec deleted file mode 100644 index 3479840..0000000 --- a/packaging/csapi-system.sensor.spec +++ /dev/null @@ -1,64 +0,0 @@ -%{!?dotnet_assembly_path: %define dotnet_assembly_path %{_datadir}/assembly} -%{!?dotnet_core_path: %define dotnet_core_path %{_datadir}/tizen.net/ref} - -%if 0%{?tizen_build_devel_mode} -%define BUILDCONF Debug -%else -%define BUILDCONF Release -%endif - -Name: csapi-system.sensor -Summary: Tizen Sensor API for C# -Version: 1.0.0 -Release: 1 -Group: Development/Libraries -License: Apache-2.0 -URL: https://www.tizen.org -Source0: %{name}-%{version}.tar.gz -Source1: %{name}.manifest - -# Mono -BuildRequires: mono-compiler -BuildRequires: mono-devel - -# .NETCore -%if 0%{?_with_corefx} -AutoReqProv: no -BuildRequires: corefx-managed-32b-ref -%endif - -# C# API Requires -BuildRequires: csapi-tizen - -%description -Tizen Sensor API for C# - -%prep -%setup -q -cp %{SOURCE1} . - -%define Assemblies Tizen.System.Sensor - -%build -for ASM in %{Assemblies}; do -xbuild $ASM/$ASM.csproj \ -%if 0%{?_with_corefx} - /p:NoStdLib=True \ - /p:TargetFrameworkVersion=v5.0 \ - /p:AddAdditionalExplicitAssemblyReferences=False \ - /p:CoreFxPath=%{dotnet_core_path} \ -%endif - /p:Configuration=%{BUILDCONF} \ - /p:ReferencePath=%{dotnet_assembly_path} -done - -%install -mkdir -p %{buildroot}%{dotnet_assembly_path} -for ASM in %{Assemblies}; do -install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path} -done - -%files -%manifest %{name}.manifest -%license LICENSE -%attr(644,root,root) %{dotnet_assembly_path}/*.dll