From: Philippe Coval Date: Fri, 8 Aug 2014 13:33:44 +0000 (+0200) Subject: packaging: pkgconfig should mention version and cleanup X-Git-Tag: accepted/tizen/common/20141124.160850^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F25714%2F2;p=platform%2Fcore%2Fapi%2Fsensor.git packaging: pkgconfig should mention version and cleanup efl looks for it Change-Id: Ice9c3d6cd18ca628256f3ce8743fb71aba50150f Signed-off-by: Philippe Coval --- diff --git a/packaging/capi-system-sensor.spec b/packaging/capi-system-sensor.spec index 5cb956e..ec13df6 100644 --- a/packaging/capi-system-sensor.spec +++ b/packaging/capi-system-sensor.spec @@ -1,18 +1,18 @@ 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) @@ -20,7 +20,7 @@ Group: framework/system Requires: %{name} = %{version}-%{release} %description devel - +%{summary} %prep @@ -30,18 +30,15 @@ cp %{SOURCE1001} . %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 @@ -49,11 +46,12 @@ cp LICENSE %{buildroot}/usr/share/license/%{name} %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}