Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-beta-2
-
Component/s: rpm
-
Labels:None
-
Patch Submitted:Yes
Description
This patch adds support for the %defattr macro in the %files section of the spec file. The patch introduces 4 new properties to RPMMojo:
- defaultFilemode
- defaultDirmode
- defaultUsername
- defaultGroupname
These properties are used for creating the %defattr macro at the beginning of the %files section. If none of the properties are specified, the %defattr macro will be omitted. To be of any use, the patch also modifies the Mapping class to omit the %attr macro when none of the properties (filemode, username, groupname) are specified. This patch can be used to workaround MOJO-931.
Updated patch to make code style consistent with existing code.