1 Name: capi-network-tethering
2 Summary: Tethering Framework
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(capi-system-info)
16 BuildRequires: pkgconfig(libtzplatform-config)
17 BuildRequires: pkgconfig(gmock)
23 Requires(post): /sbin/ldconfig
24 Requires(postun): /sbin/ldconfig
27 Tethering framework library for CAPI
30 Summary: Development package for Tethering framework library
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
34 Development package for Tethering framework library
37 Summary: Test application for Tethering
39 Test application for Tethering
43 Summary: Tethering Library(gcov)
44 Group: Network/Testing
46 gcov objects for coverage test
55 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
56 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
57 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
58 export LDFLAGS+=" -lgcov"
61 %if "%{?tizen_profile_name}" == "tv"
62 export CFLAGS+=" -DTIZEN_TV_EXT"
63 export CXXFLAGS+=" -DTIZEN_TV_EXT"
66 %cmake -DBUILD_GTESTS=%{?gcov:1}%{!?gcov:0} \
74 find .. -name '*.gcno' | tar cf %{name}-gcov.tar -T -
75 install -d -m 755 %{buildroot}%{_datadir}/gcov/obj
76 tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj
85 lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info
86 genhtml %{name}.info -o out --legend --show-details
89 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %manifest capi-network-tethering.manifest
95 %defattr(-,root,root,-)
100 %defattr(-,root,root,-)
101 %{_includedir}/network/*.h
102 %{_libdir}/pkgconfig/*.pc
107 %{_bindir}/tethering_test
111 %{_datadir}/gcov/obj/*