Preferable way to build rpm is not as root.
In this case setting files owner/group in install part is out of question, it should be done using %attr.
Permissions on the other hand I prefer to set in the %install part.
Valery
From: Eran Ben Natan <eranb@xxxxxxxxxxxx>
To: rpm-list@xxxxxxxxxxxxx
Sent: Monday, November 26, 2012 8:55 AM
Subject: A best-practice question
Hello,From your experience, is it better to set files owner and mode in the install part, using the install command, or in the files part with %attr?Eran.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list