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.spec69
1 files changed, 43 insertions, 26 deletions
diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec
index 4a87075..298c472 100644
--- a/packaging/capi-network-connection.spec
+++ b/packaging/capi-network-connection.spec
@@ -1,55 +1,72 @@
-#sbs-git:api/connection
-
-Name: capi-network-connection
-Summary: Network Connection library in TIZEN C API
-Version: 0.1.1_9
-Release: 1
-Group: System/Network
-License: Apache License Version 2.0
-Source0: %{name}-%{version}.tar.gz
-BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(capi-base-common)
-BuildRequires: pkgconfig(network)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
+Name: capi-network-connection
+Summary: Network Connection library in TIZEN C API
+Version: 1.0.58
+Release: 1
+Group: System/Network
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(network)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(capi-base-common)
+BuildRequires: pkgconfig(capi-system-info)
+BuildRequires: model-build-features
+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)
-Group: System/Network
-Requires: %{name} = %{version}-%{release}
+Summary: Network Connection library in Tizen C API (Development)
+Group: System/Network
+Requires: %{name} = %{version}-%{release}
%description devel
Network Connection library in Tizen C API (Development)
-
%prep
%setup -q
%build
+export CFLAGS+=' -Wno-unused-local-typedefs'
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
-
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+%if 0%{?model_build_feature_network_dsds} == 1
+ -DTIZEN_DUALSIM_ENABLE=1 \
+%endif
+%if "%{?tizen_profile_name}" == "wearable"
+ -DTIZEN_WEARABLE=1 \
+%else
+%if "%{?tizen_profile_name}" == "mobile"
+ -DTIZEN_MOBILE=1 \
+%endif
+%endif
+ .
+
+make %{?_smp_mflags}
-make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
+#License
+mkdir -p %{buildroot}%{_datadir}/license
+cp LICENSE %{buildroot}%{_datadir}/license/capi-network-connection
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%{_libdir}/libcapi-network-connection.so.*
+%manifest capi-network-connection.manifest
+%attr(644,-,-) %{_libdir}/libcapi-network-connection.so.*
+%{_datadir}/license/capi-network-connection
+%{_bindir}/connection_test
%files devel
%{_includedir}/network/*.h