packaging: pkgconfig should mention version and cleanup 14/25714/2 tizen_3.0_ivi accepted/tizen/common/20141124.160850 accepted/tizen/ivi/20141203.010010 submit/tizen_common/20141124.152017 submit/tizen_ivi/20141201.000000 submit/tizen_ivi/20141201.014922 submit/tizen_ivi/20141202.062010 tizen_3.0_ivi_release
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 8 Aug 2014 13:33:44 +0000 (15:33 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 12 Aug 2014 12:11:15 +0000 (14:11 +0200)
efl looks for it

Change-Id: Ice9c3d6cd18ca628256f3ce8743fb71aba50150f
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/capi-system-sensor.spec

index 5cb956e..ec13df6 100644 (file)
@@ -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}