From 734e5dd07ec4854e6f5569edfea574b9c1702861 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 24 Aug 2013 09:16:58 -0400 Subject: [PATCH] Do not use UID, use usernames 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 --- packaging/app-svc.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packaging/app-svc.spec b/packaging/app-svc.spec index 349ffaf..5c51157 100644 --- a/packaging/app-svc.spec +++ b/packaging/app-svc.spec @@ -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 -- 2.7.4