summaryrefslogtreecommitdiff
path: root/packaging/capi-network-connection.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/capi-network-connection.spec')
-rw-r--r--packaging/capi-network-connection.spec26
1 files changed, 13 insertions, 13 deletions
diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec
index f31e896..f26a06a 100644
--- a/packaging/capi-network-connection.spec
+++ b/packaging/capi-network-connection.spec
@@ -1,28 +1,30 @@
+#sbs-git:api/connection
+
Name: capi-network-connection
Summary: Network Connection library in TIZEN C API
Version: 0.1.0
-Release: 1
-Group: TO_BE/FILLED_IN
-License: Apache-2.0
+Release: 19
+Group: System/Network
+License: Apache License Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(capi-base-common)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
-
+Network Connection library in Tizen C API
%package devel
-Summary: Network Connection library in TIZEN C API (Development)
+Summary: Network Connection library in Tizen C API (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description devel
-
+Network Connection library in Tizen C API (Development)
%prep
@@ -30,9 +32,8 @@ Requires: %{name} = %{version}-%{release}
%build
-FULLVER=%{version}
-MAJORVER=`echo ${FULLVER} | cut -d '.' -f 1`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
@@ -47,10 +48,9 @@ rm -rf %{buildroot}
%files
-%{_libdir}/libcapi-network-connection.so*
+%{_libdir}/libcapi-network-connection.so.*
%files devel
%{_includedir}/network/*.h
%{_libdir}/pkgconfig/*.pc
-
-
+%{_libdir}/libcapi-network-connection.so \ No newline at end of file