spec file cosmetic: replace chown/chmod with %attr 1.0_post
authorYan Yin <yan.yin@intel.com>
Wed, 13 Jun 2012 11:58:11 +0000 (19:58 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 13 Jun 2012 11:58:11 +0000 (19:58 +0800)
packaging/libslp-db-util.changes [new file with mode: 0644]
packaging/libslp-db-util.spec

diff --git a/packaging/libslp-db-util.changes b/packaging/libslp-db-util.changes
new file mode 100644 (file)
index 0000000..c82f8f6
--- /dev/null
@@ -0,0 +1,2 @@
+* Wed June 13 2012 Yan Yin <yan.yin@intel.com> - 0.1.0
+- spec file cosmetic: replace chown/chmod with %attr
index bfaae6e85a007deb5ab97c28f58f6655c83be62c..80c2294ce8a371ba3969b6379102fe479b414aca 100644 (file)
@@ -40,18 +40,14 @@ if [ ! -d %{buildroot}/opt/dbspace ]; then
         mkdir -p %{buildroot}/opt/dbspace
 fi
 
-%post
-/sbin/ldconfig
-
-chown :5000 /opt/dbspace
-chmod 775 /opt/dbspace
+%post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
 %manifest libslp-db-util.manifest
 %defattr(-,root,root,-)
-/opt/dbspace
+%attr(775,root,app) /opt/dbspace
 %{_libdir}/libSLP-db-util.so.0
 %{_libdir}/libSLP-db-util.so.0.1.0