projects
/
platform
/
core
/
uifw
/
libtbm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "tizen: Add additional unit for "unified" user session"
[platform/core/uifw/libtbm.git]
/
packaging
/
libtbm.spec
diff --git
a/packaging/libtbm.spec
b/packaging/libtbm.spec
index
bc28567
..
5f10ce3
100644
(file)
--- a/
packaging/libtbm.spec
+++ b/
packaging/libtbm.spec
@@
-1,10
+1,14
@@
%bcond_with x
%bcond_with wayland
%define HALTESTS_PACKAGE 1
%bcond_with x
%bcond_with wayland
%define HALTESTS_PACKAGE 1
+%if 0%{?gcov:1}
+%define HALTESTS_GCOV 1
+%else
%define HALTESTS_GCOV 0
%define HALTESTS_GCOV 0
+%endif
Name: libtbm
Name: libtbm
-Version:
2.13.2
+Version:
3.2.5
Release: 1
License: MIT
Summary: The library for Tizen Buffer Manager
Release: 1
License: MIT
Summary: The library for Tizen Buffer Manager
@@
-35,6
+39,15
@@
The library for Tizen Buffer Manager.
Development Files.
Development Files.
+%if 0%{?gcov:1}
+%package gcov
+Summary: Tizen Buffer Manager gcov data package
+Group: Development/Libraries
+
+%description gcov
+Tizen Buffer Manager gcno data for gcov
+%endif
+
%if "%{HALTESTS_PACKAGE}" == "1"
%package haltests
Summary: Tizen Buffer Manager unit tests package
%if "%{HALTESTS_PACKAGE}" == "1"
%package haltests
Summary: Tizen Buffer Manager unit tests package
@@
-73,6
+86,12
@@
LDFLAGS+=" -lgcov"
make %{?_smp_mflags}
make %{?_smp_mflags}
+%if 0%{?gcov:1}
+mkdir -p gcov-obj
+find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
+rm gcov-obj/tbm_haltests-tc*
+%endif
+
%install
rm -rf %{buildroot}
%make_install
%install
rm -rf %{buildroot}
%make_install
@@
-81,6
+100,11
@@
rm -rf %{buildroot}
install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
+%if 0%{?gcov:1}
+mkdir -p %{buildroot}%{_datadir}/gcov/obj
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
%clean
rm -rf %{buildroot}
%clean
rm -rf %{buildroot}
@@
-113,3
+137,8
@@
rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path
%defattr(-,root,root,-)
%{_bindir}/tbm-haltests
%endif
%defattr(-,root,root,-)
%{_bindir}/tbm-haltests
%endif
+
+%if 0%{?gcov:1}
+%files gcov
+%{_datadir}/gcov/obj/*
+%endif