Add test RPM package
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 23 Apr 2021 06:15:37 +0000 (15:15 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Fri, 23 Apr 2021 06:31:35 +0000 (15:31 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
packaging/rpk-installer.spec

index 6e2f8147412379885864bd582a5f38cfad2ef6d0..3d1929ddd5f962fc42052b12b963a82cdae0e4b7 100755 (executable)
@@ -33,6 +33,13 @@ Requires:   %{name} = %{version}
 %description devel
 This package contains header files of rpk-installer library
 
+%package -n rpk-installer-tests
+Summary: Unit tests for rpk-installer
+Requires: rpk-installer = %{version}
+
+%description -n rpk-installer-tests
+Unit tests for rpk-installer
+
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -83,16 +90,17 @@ install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
 %manifest %{name}.manifest
 %license LICENSE
 %defattr(-,root,root,-)
-%{_libdir}/*
-%{_bindir}/*
 %{_sysconfdir}/package-manager/backendlib/librpk.so
+%{_libdir}/librpk-installer.so*
 
-#%files -n rpk-installer-devel
 %files devel
 %{_includedir}/app-installers/rpk/*.h
 %{_includedir}/app-installers/rpk/*/*/*.h
 %{_libdir}/pkgconfig/rpk-installer.pc
 
+%files -n rpk-installer-tests
+%{_bindir}/rpk-installer-unit-test
+
 
 #################################################
 # rpk-installer-gcov