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

index 0d80d06..3f66b29 100755 (executable)
@@ -3,7 +3,7 @@ Summary:    A NFC library in Tizen Native API
 Version:    0.0.1
 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)
@@ -31,7 +31,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}
@@ -46,7 +48,7 @@ rm -rf %{buildroot}
 
 
 %files
-%{_libdir}/libcapi-network-nfc.so
+%{_libdir}/libcapi-network-nfc.so*
 
 %files devel
 %{_includedir}/network/*.h