Add new API : connection_set_default_cellular_service_profile_async()
[platform/core/api/connection.git] / packaging / capi-network-connection.spec
1 Name:       capi-network-connection
2 Summary:    Network Connection library in TIZEN C API
3 Version:    0.1.3_13
4 Release:    1
5 Group:      System/Network
6 License:    Apache License Version 2.0
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires:  cmake
9 BuildRequires:  pkgconfig(dlog)
10 BuildRequires:  pkgconfig(glib-2.0)
11 BuildRequires:  pkgconfig(vconf)
12 BuildRequires:  pkgconfig(capi-base-common)
13 BuildRequires:  pkgconfig(network)
14
15 %description
16 Network Connection library in Tizen C API
17
18 %package devel
19 Summary:  Network Connection library in Tizen C API (Development)
20 Group:    System/Network
21 Requires: %{name} = %{version}-%{release}
22
23 %description devel
24 Network Connection library in Tizen C API (Development)
25
26 %prep
27 %setup -q
28
29
30 %build
31 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
32 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
33
34 make %{?_smp_mflags}
35
36
37 %install
38 %make_install
39
40 #License
41 mkdir -p %{buildroot}%{_datadir}/license
42 cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/capi-network-connection
43
44 %post -p /sbin/ldconfig
45
46 %postun -p /sbin/ldconfig
47
48
49 %files
50 %manifest capi-network-connection.manifest
51 %attr(644,-,-) %{_libdir}/libcapi-network-connection.so.*
52 %{_datadir}/license/capi-network-connection
53
54 %files devel
55 %{_includedir}/network/*.h
56 %{_libdir}/pkgconfig/*.pc
57 %{_libdir}/libcapi-network-connection.so