Name: capi-system-sensor
Summary: A Sensor library in TIZEN C API
Version: 0.1.17
-Release: 1
+Release: 0
Group: framework/system
-License: Apache 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: capi-system-sensor.manifest
+Source1001: capi-system-sensor.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(sensor)
BuildRequires: pkgconfig(capi-base-common)
%description
-
+%{summary}
%package devel
Summary: A Sensor library in TIZEN C API (Development)
Requires: %{name} = %{version}-%{release}
%description devel
-
+%{summary}
%prep
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DVERSION="%{version}"
+
+%__make %{?jobs:-j%jobs}
-make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
+%license LICENSE
%{_libdir}/libcapi-system-sensor.so.*
%files devel
%manifest %{name}.manifest
+%license LICENSE
%{_includedir}/system/sensors.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcapi-system-sensor.so
-/usr/share/license/%{name}