update for beta universally
authorYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 03:53:31 +0000 (11:53 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 03:53:31 +0000 (11:53 +0800)
packaging/capi-system-sensor.spec

index 588d8670628f7c180f8023e6f430ec782e5ec1a1..66c7a0a72dd27a59b4c1e0622505274cb03032fe 100644 (file)
@@ -1,9 +1,9 @@
 Name:       capi-system-sensor
 Summary:    A Sensor library in TIZEN C API
-Version:    0.0.1
+Version:    0.1.0
 Release:    1
 Group:      TO_BE/FILLED_IN
-License:    TO BE FILLED IN
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
@@ -29,7 +29,9 @@ Requires: %{name} = %{version}-%{release}
 
 
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=/usr
+FULLVER=%{version}
+MAJORVER=`echo ${FULLVER} | cut -d '.' -f 1`
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
 
 
 make %{?jobs:-j%jobs}
@@ -44,7 +46,7 @@ rm -rf %{buildroot}
 
 
 %files
-%{_libdir}/libcapi-system-sensor.so
+%{_libdir}/libcapi-system-sensor.so*
 
 %files devel
 %{_includedir}/system/sensors.h