2 Summary: String key-val dictionary ADT
5 Group: System/Libraries
7 Source0: bundle-%{version}.tar.gz
8 Source1001: bundle.manifest
10 BuildRequires: pkgconfig(glib-2.0)
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(capi-base-common)
13 BuildRequires: pkgconfig(json-glib-1.0)
14 BuildRequires: pkgconfig(gmock)
22 Simple string key-val dictionary ADT
25 Summary: String key-val dictionary ADT (devel)
26 Group: Development/Libraries
27 Requires: %{name} = %{version}-%{release}
30 Simple string key-val dictionary ADT (devel)
32 #################################################
34 #################################################
36 Summary: GTest for bundle
37 Group: Development/Libraries
39 %description unittests
42 #################################################
44 #################################################
47 Summary: Simple string key-val dictionary ADT (gcov)
48 Group: Application Framework/Testing
51 Simple string key-val dictionary ADT gcov objects
55 %setup -q -n %{name}-%{version}
60 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
61 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
62 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
63 export LDFLAGS+=" -lgcov"
66 %cmake -DVERSION=%{version} .
67 %__make %{?_smp_mflags}
71 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
75 ctest --verbose %{?_smp_mflags}
77 lcov -c --ignore-errors graph --no-external -q -d . -o bundle.info
78 genhtml bundle.info -o bundle.out
79 zip -r bundle.zip bundle.out bundle.info
80 install -m 0644 bundle.zip %{buildroot}%{_datadir}/gcov/
87 mkdir -p %{buildroot}%{_datadir}/gcov/obj
88 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
91 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
97 %{_bindir}/bundle_unittests
101 %manifest %{name}.manifest
102 %defattr(-,root,root,-)
103 %{_libdir}/libbundle.so.*
107 %manifest %{name}.manifest
108 %defattr(-,root,root,-)
110 %{_libdir}/pkgconfig/bundle.pc
111 %{_libdir}/libbundle.so
113 #################################################
115 #################################################
117 %{_bindir}/bundle_unittests
119 #################################################
121 #################################################