From: Chanwoo Choi Date: Mon, 23 Jul 2018 01:46:26 +0000 (+0900) Subject: packaging: Add pass-haltests package X-Git-Tag: submit/tizen/20180724.000537~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c0f72a99d29c21aab1b79fd787c2de372bf7df0;p=platform%2Fcore%2Fsystem%2Fpass.git packaging: Add pass-haltests package Add pass-haltests-* package contains 'pass_hal_gtest' command binary which tests the HAL(Hardware Abstract Layer) interface. Change-Id: I29687b0021c8a6cfd1d1b97560a25fbb3be70e89 Signed-off-by: Chanwoo Choi --- diff --git a/packaging/pass.spec b/packaging/pass.spec index 8f64774..56c78d2 100644 --- a/packaging/pass.spec +++ b/packaging/pass.spec @@ -2,6 +2,7 @@ %define _unpackaged_files_terminate_build 0 %define daemon_name pass %define hal_name pass-hal-devel +%define haltest_name pass-haltests Name: %{daemon_name} Summary: Power Aware System Service @@ -19,6 +20,7 @@ BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gmock) BuildRequires: pkgconfig(libudev) %description @@ -39,6 +41,14 @@ Requires: pass = %{version}-%{release} %description -n %{hal_name} Header files required to build pass-hal packages for specific boards. +%package -n %{haltest_name} +Summary: PASS HAL test package with gtest +Group: Development/Tools +Requires: pass = %{version}-%{release} + +%description -n %{haltest_name} +PASS HAL test package with gtest + %prep %setup -q @@ -90,3 +100,7 @@ systemctl daemon-reload %{_includedir}/%{daemon_name}/hal.h %{_includedir}/%{daemon_name}/hal-log.h %{_libdir}/pkgconfig/%{hal_name}.pc + +%files -n %{haltest_name} +%defattr(-,root,root,-) +%{_bindir}/pass_hal_gtest