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

index b1aeff0aa6a9c1b692be89c6eaed75f125452a2d..f31e896ec03716ff69451fd5bd36c1bcbe695b1a 100644 (file)
@@ -1,13 +1,14 @@
 Name:       capi-network-connection
 Summary:    Network Connection 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)
-BuildRequires:  pkgconfig(dnet)
+BuildRequires:  pkgconfig(vconf)
+BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(capi-base-common)
 Requires(post): /sbin/ldconfig  
 Requires(postun): /sbin/ldconfig
@@ -29,7 +30,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 +47,7 @@ rm -rf %{buildroot}
 
 
 %files
-%{_libdir}/libcapi-network-connection.so
+%{_libdir}/libcapi-network-connection.so*
 
 %files devel
 %{_includedir}/network/*.h