Do not use UID, use usernames 78/8578/1 accepted/tizen/ivi/genivi tizen_ivi_genivi accepted/tizen/20130912.081844 accepted/tizen/20130912.084826 accepted/tizen/20130912.093736 accepted/tizen/ivi/genivi/20140131.055945 ivi_oct_m2 submit/tizen/20130912.075545 submit/tizen_ivi_genivi/20140131.060225
authorAnas Nashif <anas.nashif@intel.com>
Sat, 24 Aug 2013 13:16:58 +0000 (09:16 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 24 Aug 2013 13:17:02 +0000 (09:17 -0400)
Using 0 and 5000 in spec files is completely wrong. RPM will fallback to
root in those cases. We need to specify the exact usernames and groups
in the spec file.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
packaging/app-svc.spec

index 349ffaf..5c51157 100644 (file)
@@ -57,21 +57,20 @@ sqlite3 %{buildroot}/opt/dbspace/.appsvc.db < data/appsvc_db.sql
 %postun -p /sbin/ldconfig
 
 %files
+%defattr(-,root,root,-)
 %manifest %{name}.manifest
 %license LICENSE
-%manifest app-svc.manifest
-%defattr(-,root,root,-)
-%config(noreplace) %verify(not md5 mtime size) %attr(664,0,5000) /opt/dbspace/.appsvc.db
-%config(noreplace) %verify(not md5 mtime size) %attr(664,0,5000) /opt/dbspace/.appsvc.db-journal
+%config(noreplace) %verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db
+%config(noreplace) %verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db-journal
 /usr/bin/appsvc_test
 %{_libdir}/libappsvc.so.0
 %{_libdir}/libappsvc.so.0.1.0
 
 %files devel
-%manifest %{name}.manifest
 %defattr(-,root,root,-)
+%manifest %{name}.manifest
 %{_libdir}/pkgconfig/appsvc.pc
 %{_libdir}/libappsvc.so
-/usr/include/appsvc/appsvc.h
+%{_includedir}/appsvc/appsvc.h