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 %cmake -DBUILD_GTESTS=%{?gcov:1}%{!?gcov:0} \
69 find .. -name '*.gcno' | tar cf %{name}-gcov.tar -T -
70 install -d -m 755 %{buildroot}%{_datadir}/gcov/obj
71 tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj
80 lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info
81 genhtml %{name}.info -o out --legend --show-details
84 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %manifest capi-network-tethering.manifest
90 %defattr(-,root,root,-)
95 %defattr(-,root,root,-)
96 %{_includedir}/network/*.h
97 %{_libdir}/pkgconfig/*.pc
102 %{_bindir}/tethering_test
106 %{_datadir}/gcov/obj/*