Changed the path of license by using '%license' macro
[platform/core/api/tethering.git] / packaging / capi-network-tethering.spec
1 Name:           capi-network-tethering
2 Summary:        Tethering Framework
3 Version:        1.0.45
4 Release:        1
5 Group:          System/Network
6 License:        Apache-2.0
7 Source0:        %{name}-%{version}.tar.gz
8 BuildRequires:  pkgconfig(dlog)
9 BuildRequires:  pkgconfig(dbus-1)
10 BuildRequires:  pkgconfig(capi-base-common)
11 BuildRequires:  pkgconfig(glib-2.0)
12 BuildRequires:  pkgconfig(gio-2.0)
13 BuildRequires:  pkgconfig(vconf)
14 BuildRequires:  pkgconfig(key-manager)
15 BuildRequires:  pkgconfig(libssl)
16 BuildRequires:  pkgconfig(capi-system-info)
17 BuildRequires:  pkgconfig(libtzplatform-config)
18 BuildRequires:  cmake
19 Requires(post):         /sbin/ldconfig
20 Requires(postun):       /sbin/ldconfig
21
22 %description
23 Tethering framework library for CAPI
24
25 %package devel
26 Summary:        Development package for Tethering framework library
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29 %description devel
30 Development package for Tethering framework library
31
32 %prep
33 %setup -q
34
35
36 %build
37 %if "%{TIZEN_PROFILE_TV}" == "1"
38 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DTIZEN_TV_EXT"
39 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE -DTIZEN_TV_EXT"
40 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE -DTIZEN_TV_EXT"
41 %else
42 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
43 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
44 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
45 %endif
46
47 %cmake -DCMAKE_BUILD_TYPE="Private" \
48 %ifarch %{arm}
49         -DCMAKE_BUILD_TYPE="Private" -DARCH=arm \
50 %else
51 %if 0%{?simulator}
52         -DCMAKE_BUILD_TYPE="Private" -DARCH=emul \
53 %else
54         -DCMAKE_BUILD_TYPE="Private" -DARCH=i586 \
55 %endif
56 %endif
57         .
58
59 make %{?_smp_mflags}
60
61
62 %install
63 %make_install
64
65 %post -p /sbin/ldconfig
66
67 %postun -p /sbin/ldconfig
68
69 %files
70 %manifest capi-network-tethering.manifest
71 %defattr(-,root,root,-)
72 %{_libdir}/*.so.*
73 %{_bindir}/tethering_test
74 %license LICENSE.APLv2.0
75 %ifarch %{arm}
76 /etc/config/connectivity/sysinfo-tethering.xml
77 %else
78 %if 0%{?simulator}
79 # Noop
80 %else
81 /etc/config/connectivity/sysinfo-tethering.xml
82 %endif
83 %endif
84
85 %files devel
86 %defattr(-,root,root,-)
87 %{_includedir}/network/*.h
88 %{_libdir}/pkgconfig/*.pc
89 %{_libdir}/*.so
90 %license LICENSE.APLv2.0
91