spec file cosmetic: replace chown/chmod with %attr
authorYan Yin <yan.yin@intel.com>
Wed, 13 Jun 2012 12:28:37 +0000 (20:28 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 13 Jun 2012 12:28:37 +0000 (20:28 +0800)
packaging/org.tizen.quickpanel.changes [new file with mode: 0644]
packaging/org.tizen.quickpanel.spec

diff --git a/packaging/org.tizen.quickpanel.changes b/packaging/org.tizen.quickpanel.changes
new file mode 100644 (file)
index 0000000..3523805
--- /dev/null
@@ -0,0 +1,2 @@
+* Wed June 13 2012 Yan Yin <yan.yin@intel.com> - 0.1.1
+- spec file cosmetic: replace chown/chmod with %attr
index c260218e6ae5246215ca7f994ebf61c7e33f2bc3..9814ef5efe643a210cb81c58b2421179dd9bce60 100644 (file)
@@ -59,20 +59,6 @@ rm -rf %{buildroot}
 rm -rf %{buildroot}
 
 %post
-INHOUSE_ID="5000"
-
-change_dir_permission()
-{
-    chown $INHOUSE_ID:$INHOUSE_ID $@ 2>/dev/null
-    if [ $? -ne 0 ]; then
-        echo "Failed to change the owner of $@"
-    fi  
-    chmod 775 $@ 2>/dev/null
-    if [ $? -ne 0 ]; then
-        echo "Failed to change the perms of $@"
-    fi  
-}
-
 change_file_executable()
 {
     chmod +x $@ 2>/dev/null
@@ -81,7 +67,6 @@ change_file_executable()
     fi  
 }
 
-change_dir_permission %{DATADIR}
 change_file_executable /etc/init.d/quickpanel
 mkdir -p /etc/rc.d/rc5.d/
 mkdir -p /etc/rc.d/rc3.d/
@@ -96,6 +81,7 @@ rm -f /etc/rc.d/rc3.d/S51quickpanel
 %files
 %manifest org.tizen.quickpanel.manifest
 %defattr(-,root,root,-)
+%attr(775,app,app) /opt/apps/org.tizen.quickpanel/data
 /etc/init.d/quickpanel
 /opt/apps/org.tizen.quickpanel/bin/*
 /opt/apps/org.tizen.quickpanel/res/*