diff options
-rw-r--r-- | meta/classes/package_rpm.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 3df66cc16..d8e86c5cd 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -484,6 +484,7 @@ python write_specfile () { else: bb.note("Creating RPM package for %s" % splitname) spec_files_top.append('%files') + spec_files_top.append('%defattr(-,-,-,-)') if file_list: spec_files_top.extend(file_list) spec_files_top.append('') @@ -570,6 +571,7 @@ python write_specfile () { else: bb.note("Creating RPM package for %s" % splitname) spec_files_bottom.append('%%files -n %s' % splitname) + spec_files_bottom.append('%defattr(-,-,-,-)') if file_list: spec_files_bottom.extend(file_list) spec_files_bottom.append('') |