summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-08-24 09:16:58 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-08-24 09:17:02 -0400
commit734e5dd07ec4854e6f5569edfea574b9c1702861 (patch)
treece3bbfb9ed464cd4a2b163dcb7798999dbb90dd6
parent40e56972eb45a55cfb9fe9ec89c10df5b9b2c312 (diff)
downloadapp-svc-734e5dd07ec4854e6f5569edfea574b9c1702861.tar.gz
app-svc-734e5dd07ec4854e6f5569edfea574b9c1702861.tar.bz2
app-svc-734e5dd07ec4854e6f5569edfea574b9c1702861.zip
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>
-rw-r--r--packaging/app-svc.spec11
1 files 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