update for beta universally
authorYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 04:02:59 +0000 (12:02 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 14 Mar 2012 04:02:59 +0000 (12:02 +0800)
packaging/capi-network-bluetooth.spec

index b99a09afd36d70ad28771dd559011c9686f5f88b..0fcef6aa81f1da2c7085676883c20814140762ff 100644 (file)
@@ -3,7 +3,7 @@ Summary:    Network Bluetooth Framework
 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
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -32,7 +32,9 @@ Network Bluetooth Framework (DEV).
 %setup -q
 
 %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}
 
@@ -46,7 +48,7 @@ rm -rf %{buildroot}
 %postun -p /sbin/ldconfig
 
 %files
-/usr/lib/*.so
+/usr/lib/*.so*
 
 %files devel
 /usr/include/*